-
Notifications
You must be signed in to change notification settings - Fork 362
32 lines (28 loc) · 1.06 KB
/
MSecD-RequireWriterReview.yml
File metadata and controls
32 lines (28 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Require Writer Review
permissions:
pull-requests: write
contents: read
on:
pull_request_target:
types: [opened, synchronize, reopened, labeled]
issue_comment:
types:
- created
- edited
concurrency:
group: require-writer-review-${{ github.event.pull_request.number || github.event.issue.number }}
cancel-in-progress: true
jobs:
require-writer-review:
# Skip noise from unrelated label events. Only react to labeled events when
# the label is one this workflow actually gates on. All other event types
# (opened, synchronize, reopened, issue_comment) always proceed.
if: >-
(github.repository_owner == 'MicrosoftDocs' || github.repository_owner == 'microsoftgraph')
&& (
github.event.action != 'labeled'
|| github.event.label.name == 'qualifies-for-auto-merge'
|| github.event.label.name == 'blocked-qualifies-for-auto-merge'
)
uses: MicrosoftDocs/defender-docs/.github/workflows/MSecD-Shared-RequireWriterReview.yml@workflows-test
secrets: inherit