Skip to content

Commit 517aecc

Browse files
authored
Merge pull request #2132 from Kobzol/no-capacity-tracking-label
Allow opting out of workqueue tracking with a label
2 parents 93f61b3 + e648026 commit 517aecc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/handlers/pr_tracking.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,17 @@ fn waits_for_a_review(
324324
let is_rollup = labels.iter().any(|l| l.name == "rollup");
325325
let is_waiting_for_reviewer = labels.iter().any(|l| l.name == "S-waiting-on-review");
326326
let is_assigned_to_author = assignees.contains(author);
327+
let has_capacity_tracking_opt_out = labels
328+
.iter()
329+
.any(|l| l.name == "S-no-work-capacity-tracking");
327330

328331
is_open
329332
&& !is_draft
330333
&& !is_blocked
331334
&& !is_rollup
332335
&& is_waiting_for_reviewer
333336
&& !is_assigned_to_author
337+
&& !has_capacity_tracking_opt_out
334338
}
335339

336340
#[cfg(test)]

0 commit comments

Comments
 (0)