Skip to content

Commit 6b482ba

Browse files
committed
cleanup
1 parent 4bd9347 commit 6b482ba

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/label_and_milesone_checker.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,12 @@ on:
99
- unlabeled
1010
- milestoned
1111
- demilestoned
12-
issues:
13-
types:
14-
- milestoned
15-
- demilestoned
1612
merge_group: # to be prepared on merge queue
1713
types: [checks_requested]
1814

1915
jobs:
2016
check_labels_and_milestone:
21-
if: (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ready to merge')) ||
22-
(github.event_name == 'issues' && github.event.issue.pull_request != null && contains(github.event.issue.labels.*.name, 'ready to merge'))
17+
if: (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ready to merge'))
2318
name: Check labels and milestone
2419
runs-on: ubuntu-latest
2520
steps:
@@ -30,7 +25,7 @@ jobs:
3025
repo_token: ${{ secrets.GITHUB_TOKEN }}
3126

3227
- name: Check milestone
33-
if: github.event.pull_request.milestone == null && github.event.issue.milestone == null
28+
if: github.event.pull_request.milestone == null
3429
run: |
3530
echo "Please add a milestone to this PR"
3631
exit 1

0 commit comments

Comments
 (0)