瀏覽代碼

Merge pull request #599 from spastorino/fix-prioritization-tagging-issue

break out the outer loop
Mark Rousskov 4 年之前
父節點
當前提交
448c68b8a9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/handlers/prioritize.rs

+ 2 - 2
src/handlers/prioritize.rs

@@ -47,7 +47,7 @@ impl Handler for PrioritizeHandler {
                         if config.prioritize_on.iter().any(|l| l == applied_label) {
                             let mut prioritize = false;
 
-                            for label in event.issue().unwrap().labels() {
+                            'outer: for label in event.issue().unwrap().labels() {
                                 for exclude_label in &config.exclude_labels {
                                     match glob::Pattern::new(exclude_label) {
                                         Ok(exclude_glob) => {
@@ -59,7 +59,7 @@ impl Handler for PrioritizeHandler {
                                     }
 
                                     if !prioritize {
-                                        break;
+                                        break 'outer;
                                     }
                                 }
                             }