Skip to content

Commit 0644ffe

Browse files
committed
✨ Add PR label and title check
1 parent 21e5e72 commit 0644ffe

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/pr-labels.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: PR labels
2+
3+
# yamllint disable-line rule:truthy
4+
on:
5+
pull_request_target:
6+
types:
7+
- opened
8+
- labeled
9+
- unlabeled
10+
- synchronize
11+
workflow_call:
12+
13+
jobs:
14+
pr_labels:
15+
name: ✔️ Verify label
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: 🏷️ Enforce category label
19+
uses: jesusvasquez333/[email protected]
20+
with:
21+
pull-request-number: "${{ github.event.pull_request.number }}"
22+
github-token: "${{ secrets.GITHUB_TOKEN }}"
23+
valid-labels: >-
24+
breaking-change, bugfix, documentation, enhancement, refactor,
25+
new-feature, maintenance, dependencies
26+
# Let the job create a review on the PR
27+
disable-reviews: false

.github/workflows/pr-title.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: PR title
2+
3+
# yamllint disable-line rule:truthy
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- labeled
9+
- unlabeled
10+
- synchronize
11+
workflow_call:
12+
13+
jobs:
14+
gitmoji-pr-title:
15+
name: ✔️ Verify title
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: 🏷️ Enforce gitmoji PR title
19+
uses: georgepstaylor/[email protected]
20+
with:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)