Skip to content

Commit

Permalink
Backport PR #2518 on branch 1.9.x (Check PRs for milestones) (#2523)
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp A <[email protected]>
  • Loading branch information
meeseeksmachine and flying-sheep committed Jun 22, 2023
1 parent ec78ca9 commit af11c8f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Pull Request Validation

on:
pull_request:
branches:
- main
- master
types:
# milestone changes
- milestoned
- demilestoned
# label changes for “no milestone”
- labeled
- unlabeled
# initial check
- opened
- edited
- reopened
# code change (e.g. this workflow)
- synchronize

env:
LABELS: ${{ join( github.event.pull_request.labels.*.name, '|' ) }}

jobs:
check-milestone:
name: Check Milestone
runs-on: ubuntu-latest
steps:
- if: github.event.pull_request.milestone == null && contains( env.LABELS, 'no milestone' ) == false
run: exit 1

0 comments on commit af11c8f

Please sign in to comment.