Skip to content

Commit 448c68b

Browse files
Merge pull request #599 from spastorino/fix-prioritization-tagging-issue
break out the outer loop
2 parents dac987f + 170c279 commit 448c68b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/handlers/prioritize.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl Handler for PrioritizeHandler {
4747
if config.prioritize_on.iter().any(|l| l == applied_label) {
4848
let mut prioritize = false;
4949

50-
for label in event.issue().unwrap().labels() {
50+
'outer: for label in event.issue().unwrap().labels() {
5151
for exclude_label in &config.exclude_labels {
5252
match glob::Pattern::new(exclude_label) {
5353
Ok(exclude_glob) => {
@@ -59,7 +59,7 @@ impl Handler for PrioritizeHandler {
5959
}
6060

6161
if !prioritize {
62-
break;
62+
break 'outer;
6363
}
6464
}
6565
}

0 commit comments

Comments
 (0)