Skip to content

Commit b90c3b7

Browse files
author
Sophia Marie Terry
committed
Draft semantic commit check
1 parent d363c0f commit b90c3b7

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Semantic Commit Check
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, edited]
6+
7+
jobs:
8+
semantic-commit:
9+
runs-on: ubuntu-latest
10+
name: Check Semantic Commits
11+
steps:
12+
- name: Check PR title
13+
uses: amannn/action-semantic-pull-request@v5
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
with:
17+
types: |
18+
feat
19+
fix
20+
docs
21+
style
22+
refactor
23+
perf
24+
test
25+
build
26+
ci
27+
chore
28+
revert
29+
scopes: |
30+
ipa
31+
prod
32+
requireScope: false
33+
subjectPattern: "^[A-Z].+[^.]$"
34+
subjectPatternError: |
35+
The subject "{subject}" found in the pull request title "{title}"
36+
didn't match the configured pattern. Please ensure that the subject
37+
starts with an uppercase letter and doesn't end with a period.
38+
validateSingleCommit: false

0 commit comments

Comments
 (0)