10000
We read every piece of feedback, and take your input very seriously.
1 parent 574ec0e commit 5e5c5faCopy full SHA for 5e5c5fa
.github/workflows/require-pr-label.yml
@@ -9,15 +9,53 @@ permissions:
9
pull-requests: write
10
11
jobs:
12
- label:
13
- name: DO-NOT-MERGE / unresolved review
+ label-dnm:
+ name: DO-NOT-MERGE
14
if: github.repository_owner == 'python'
15
runs-on: ubuntu-latest
16
timeout-minutes: 10
17
18
steps:
19
- - uses: mheap/github-action-required-labels@v5
+ - name: Check there's no DO-NOT-MERGE
20
+ uses: mheap/github-action-required-labels@v5
21
with:
22
mode: exactly
23
count: 0
- labels: "DO-NOT-MERGE, awaiting changes, awaiting change review"
24
+ labels: |
25
+ DO-NOT-MERGE
26
+
27
+ label-reviews:
28
+ name: Unresolved review
29
+ if: github.repository_owner == 'python'
30
+ runs-on: ubuntu-latest
31
+ timeout-minutes: 10
32
33
+ steps:
34
+ # Check that the PR is not awaiting changes from the author due to previous review.
35
+ - name: Check there's no required changes
36
37
+ with:
38
+ mode: exactly
39
+ count: 0
40
41
+ awaiting changes
42
+ awaiting change review
43
+ - id: is-feature
44
+ name: Check whether this PR is a feature (contains a "type-feature" label)
45
46
47
48
+ count: 1
49
50
+ type-feature
51
+ exit_type: success # don't fail the check if the PR is not a feature, just record the result
52
+ # In case of a feature PR, check for a complete review (contains an "awaiting merge" label).
53
+ - id: awaiting-merge
54
+ if: steps.is-feature.outputs.status == 'success'
55
+ name: Check for complete review
56
57
58
59
60
61
+ awaiting merge