1- name : PR Semantics
1+ name : Pull Request Semantics
22
33on :
44 pull_request :
5- types : [opened, edited, reopened, synchronize]
5+ branches :
6+ - master
67
78jobs :
89 semantics :
@@ -23,21 +24,14 @@ jobs:
2324 extends: ['@commitlint/config-angular'], \
2425 rules: { \
2526 'subject-empty': [2, 'never'], \
26- 'scope-empty' : [2, 'never'], \
27- 'type-case' : [2, 'always', 'lower-case'], \
28- 'type-empty' : [2, 'never'], \
29- 'type-enum' : [2, 'always', ['chore','feat','fix','refactor']], \
30- 'scope-enum' : [2, 'always', ['openapi']] \
27+ 'scope-empty': [0, 'never'], \
28+ 'type-case': [2, 'always', 'lower-case'], \
29+ 'type-empty': [2, 'never'], \
30+ 'type-enum': [2, 'always', ['chore','feat','fix','refactor']] \
3131 } \
3232 };" > commitlint.config.js
3333
3434 - name : Validate Semantic Title
3535 if : ${{ steps.pull-request.outputs.pr_found == 'true' }}
3636 run : |
3737 echo "${{ steps.pull-request.outputs.pr_title }}" | npx commitlint
38-
39- - name : Get Semantic Commit Scope
40- if : ${{ steps.pull-request.outputs.pr_found == 'true' }}
41- id : scope
42- run : |
43- echo "name=$(echo '${{ steps.pull-request.outputs.pr_title }}' | cut -d'(' -f1)" >> $GITHUB_OUTPUT
0 commit comments