-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (63 loc) · 1.8 KB
/
conventional_commits.yaml
File metadata and controls
65 lines (63 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
name: Conventional Commits And PR titles
on: # yamllint disable-line rule:truthy
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
comventional_commits:
name: Validate Commit Subjects
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: webiny/action-conventional-commits@v1.3.0
name: Validate Commit Subjects
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# All of the Angular commit types are allowed by default.
# Added types to this:
# * eyes - For observability related changes
# * sec - For security related changes
allowed-commit-types: "build,chore,ci,doc,documentation,docs,eyes,feat,fix,perf,refactor,revert,sec,style,test" # yamllint disable-line rule:line-length
conventional_pr_title:
name: Validate PR title
runs-on: ubuntu-latest
steps:
-
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: validate-pr-title
name: Validate PR title
uses: amannn/action-semantic-pull-request@v5
with:
# All of the Angular commit types are allowed by default.
# Added types to this:
# * eyes - For observability related changes
# * sec - For security related changes
types: |
build
chore
ci
doc
documentation
docs
eyes
feat
fix
perf
refactor
revert
sec
style
test
# We don't enforce scopes
# scopes:
# - frontend
# - backend
# - ci
# We don't disallow any scopes
# disallowScopes: |
# release
wip: true