File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed
tools/agenda-generator/src Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -509,20 +509,12 @@ impl GithubQuery {
509
509
let issues = github_api ( & endpoint) ?;
510
510
let issues = generator. dedup ( issues) ;
511
511
512
- let excluded_labels: BTreeSet < _ > = self
513
- . excluded_labels
514
- . iter ( )
515
- . flat_map ( |labels| labels. iter ( ) )
516
- . map ( |s| s. to_string ( ) )
517
- . collect ( ) ;
518
512
let issues = issues. filter ( |issue| {
519
- for excluded_label in & excluded_labels {
520
- if issue. labels . contains ( & excluded_label) {
521
- return false ;
522
- }
523
- }
524
-
525
- true
513
+ !self . excluded_labels . iter ( ) . any ( |labels| {
514
+ labels
515
+ . iter ( )
516
+ . all ( |& label| issue. labels . iter ( ) . any ( |x| x == label) )
517
+ } )
526
518
} ) ;
527
519
528
520
let issues: Vec < _ > = if let Some ( count) = self . count {
You can’t perform that action at this time.
0 commit comments