Skip to content

Commit 3917b0e

Browse files
committed
Enforce backport label
If no backport is needed, we'll need to apply skip-backport to pass CI.
1 parent b5b89ab commit 3917b0e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled, opened, reopened, synchronize]
6+
7+
permissions:
8+
pull-requests: "read"
9+
10+
jobs:
11+
check-backport-label:
12+
name: backport label
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: "Check backport label"
17+
if: "!contains(github.event.pull_request.labels.*.name, 'backport')"
18+
run: |
19+
echo "Please apply a backport label, or `skip-backport` if not backport is needed
20+
false

0 commit comments

Comments
 (0)