Skip to content

Commit 54af28f

Browse files
authored
Update caller workflow to reduce cancellation noise
1 parent a683824 commit 54af28f

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/MSecD-RequireWriterReview.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ concurrency:
1818

1919
jobs:
2020
require-writer-review:
21-
if: github.repository_owner == 'MicrosoftDocs' || github.repository_owner == 'microsoftgraph'
21+
# Skip noise from unrelated label events. Only react to labeled events when
22+
# the label is one this workflow actually gates on. All other event types
23+
# (opened, synchronize, reopened, issue_comment) always proceed.
24+
if: >-
25+
(github.repository_owner == 'MicrosoftDocs' || github.repository_owner == 'microsoftgraph')
26+
&& (
27+
github.event.action != 'labeled'
28+
|| github.event.label.name == 'qualifies-for-auto-merge'
29+
|| github.event.label.name == 'blocked-qualifies-for-auto-merge'
30+
)
2231
uses: MicrosoftDocs/defender-docs/.github/workflows/MSecD-Shared-RequireWriterReview.yml@workflows-test
23-
secrets: inherit
32+
secrets: inherit

0 commit comments

Comments
 (0)