-
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (61 loc) · 1.64 KB
/
Copy pathsemantic-pull-requests.yml
File metadata and controls
65 lines (61 loc) · 1.64 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: Semantic Pull Requests
on:
# zizmor: ignore[dangerous-triggers]
pull_request_target:
types:
- opened
- edited
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
semantic-pr:
name: Validate PR title
runs-on: ubuntu-latest
if: github.repository == 'wolfstar-project/stars-components'
permissions:
contents: read
pull-requests: read
statuses: write
steps:
- name: Validate PR title
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
with:
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
scopes: |
env-utilities
http-framework
http-framework-i18n
i18next-backend
influx-utilities
logger
reddit-helpers
safe-fetch
shared-http-pieces
shared-influx-pieces
start-banner
twitch-helpers
weather-helpers
deps
release
ci
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
did not match the configured pattern. Please ensure that the subject
does not start with an uppercase character.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}