Skip to content

Commit 6964d34

Browse files
committed
chore(ci): add Conventional Commits GitHub Action
Longhorn 8824 Signed-off-by: Derek Su <[email protected]>
1 parent 92451e3 commit 6964d34

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

conventional_commits.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Conventional Commits
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- reopened
10+
11+
permissions:
12+
pull-requests: read
13+
14+
jobs:
15+
commit-lint:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Lint Commits
22+
uses: wagoid/commitlint-github-action@v6
23+
- name: Lint Pull Request
24+
uses: amannn/[email protected]
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
27+
with:
28+
types: |
29+
feat
30+
fix
31+
docs
32+
style
33+
refactor
34+
perf
35+
test
36+
chore
37+
vendor
38+
build
39+
ci
40+
revert
41+
BREAKING

0 commit comments

Comments
 (0)