Browse Source

Merge pull request #1565 from camelid/patch-1

Remove hard-coded `I-prioritize` remove-on-close code
Mark Rousskov 3 years ago
parent
commit
7e93f0bc72
1 changed files with 0 additions and 11 deletions
  1. 0 11
      src/handlers/autolabel.rs

+ 0 - 11
src/handlers/autolabel.rs

@@ -96,17 +96,6 @@ pub(super) async fn parse_input(
             }
         }
     }
-    if event.action == IssuesAction::Closed {
-        let labels = event.issue.labels();
-        if labels.iter().any(|x| x.name == "I-prioritize") {
-            return Ok(Some(AutolabelInput {
-                add: vec![],
-                remove: vec![Label {
-                    name: "I-prioritize".to_owned(),
-                }],
-            }));
-        }
-    }
     Ok(None)
 }