Skip to content

Commit e653648

Browse files
committed
ci: add commitlint workflow (not enforced yet)
Signed-off-by: Sergei Lukianov <[email protected]>
1 parent f86dbd4 commit e653648

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/commitlint.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Make sure commit subject and description follow the Conventional Commits spec.
2+
# See https://www.conventionalcommits.org/
3+
4+
name: "commitlint"
5+
6+
on:
7+
pull_request: {}
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
pull-requests: read
15+
16+
jobs:
17+
commitlint:
18+
runs-on: lab
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: "actions/checkout@v4"
23+
with:
24+
fetch-depth: 0
25+
persist-credentials: "false"
26+
27+
- name: Run commitlint on Pull Request's commits
28+
uses: opensource-nepal/commitlint@v1
29+
with:
30+
verbose: true
31+
32+
- name: Block Merge Commits
33+
if: ${{ always() }}
34+
uses: Morishiri/[email protected]
35+
with:
36+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)