Skip to content

Commit 1b44619

Browse files
authored
ci: add action to enforce semantic PR titles (#158)
Signed-off-by: Adem Baccara <71262172+Adembc@users.noreply.github.com>
1 parent df313b7 commit 1b44619

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Semantic PRs
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- edited
7+
- opened
8+
- reopened
9+
- synchronize
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
validate_title:
17+
name: Validate Title
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: amannn/action-semantic-pull-request@v5.5.3
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
with:
24+
types: |
25+
fix
26+
feat
27+
improve
28+
refactor
29+
revert
30+
test
31+
ci
32+
docs
33+
chore
34+
35+
scopes: |
36+
nb
37+
pvc
38+
tb
39+
ws
40+
requireScope: false

0 commit comments

Comments
 (0)