Skip to content

Commit 2dfc6fb

Browse files
authored
require a semver label for all new PR's
1 parent ee6a12b commit 2dfc6fb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Require Semver Label
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, labeled, unlabeled, ready_for_review, synchronize]
6+
7+
jobs:
8+
check_pr_labels:
9+
runs-on: ubuntu-latest
10+
name: Verify that the PR has a valid label
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Verify PR label action
15+
uses: jesusvasquez333/[email protected]
16+
with:
17+
github-token: "${{ secrets.GITHUB_TOKEN }}"
18+
valid-labels: 'Semver-Major, Semver-Minor, Semver-Patch'
19+
pull-request-number: '${{ github.event.pull_request.number }}'

0 commit comments

Comments
 (0)