Skip to content

Commit 58511d4

Browse files
authored
Merge pull request #15 from wherobots/add-semantic-title-check
ci: add semantic PR title check
2 parents 0c78d59 + af02a29 commit 58511d4

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Semantic Title Check
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
semantic-title-check:
8+
runs-on: depot-ubuntu-24.04-small
9+
steps:
10+
- uses: amannn/action-semantic-pull-request@v5
11+
with:
12+
types: |
13+
feat
14+
fix
15+
chore
16+
refactor
17+
perf
18+
test
19+
ci
20+
docs
21+
build
22+
style
23+
revert
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
repos:
3+
- repo: https://github.com/compilerla/conventional-pre-commit
4+
rev: v4.0.0
5+
hooks:
6+
- id: conventional-pre-commit
7+
stages: [commit-msg]
8+
args:
9+
- feat
10+
- fix
11+
- chore
12+
- refactor
13+
- perf
14+
- test
15+
- ci
16+
- docs
17+
- build
18+
- style
19+
- revert

0 commit comments

Comments
 (0)