-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (55 loc) · 1.39 KB
/
semantic-prs.yml
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
name: Semantic PRs
on:
pull_request_target:
types:
- edited
- opened
- reopened
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
cancel-in-progress: true
jobs:
validate_title:
name: Validate Title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@c3cd5d1ea3580753008872425915e343e351ab54 # v5.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# allowed commit types
types: |
fix
feat
improve
refactor
revert
test
ci
docs
chore
# disallow all commit scopes
disallowScopes: ".*"
apply_labels:
name: Apply Labels
runs-on: ubuntu-latest
needs: validate_title
permissions:
pull-requests: write
steps:
- uses: deployKF/deployKF/.github/actions/conventional-release-labels@main
with:
type_labels: |
{
"breaking": "changelog/significant",
"fix": "changelog/fix",
"feat": "changelog/feature",
"improve": "changelog/improve",
"docs": "changelog/docs"
}
ignored_types: |
[
"chore"
]
ignore_label: "changelog/ignore"