Skip to content

Commit b119d73

Browse files
chore(ci): Require conventional commit scopes (#220)
1 parent c513e8c commit b119d73

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/checks.yaml

+28-1
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,36 @@ jobs:
2424
permissions:
2525
pull-requests: read
2626
steps:
27-
- uses: amannn/action-semantic-pull-request@e9fabac35e210fea40ca5b14c0da95a099eff26f
27+
- name: Conventional Commits Check
28+
if: contains(fromJSON('["pull_request", "pull_request_target"]'), github.event_name)
29+
id: conventional-commits
30+
uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017
2831
env:
2932
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
# Types include:
35+
# - fix: fixes
36+
# - feat: features and enhancements
37+
# - chore: non-feature or enhancement (i.e. docs, ci, linting, automated, etc)
38+
types: |
39+
fix
40+
feat
41+
chore
42+
revert
43+
# Scopes include:
44+
# - ci: anything related to ci
45+
# - cmdline: changes to @opentdf/ctl
46+
# - docs: anything related solely to documentation
47+
# - main: bot generated commits
48+
# - sdk: changes to @opentdf/sdk (was lib)
49+
# - tests: test only changes
50+
scopes: |
51+
ci
52+
cmdline
53+
docs
54+
main
55+
sdk
56+
tests
3057
3158
mavenverify:
3259
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)