File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Semantic Pull Request
2
+ on :
3
+ pull_request_target :
4
+ types : [opened, reopened, edited, synchronize]
5
+ permissions :
6
+ pull-requests : read
7
+ jobs :
8
+ main :
9
+ name : Validate PR Title
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ # https://github.com/amannn/action-semantic-pull-request/releases/tag/v5.5.2
13
+ - uses : amannn/action-semantic-pull-request@cfb60706e18bc85e8aec535e3c577abe8f70378e
14
+ env :
15
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
16
+ with :
17
+ subjectPattern : ^(?![A-Z]).+$
18
+ subjectPatternError : |
19
+ The subject "{subject}" found in the pull request title "{title}"
20
+ didn't match the configured pattern. Please ensure that the subject
21
+ doesn't start with an uppercase character.
22
+ types : |
23
+ fix
24
+ feat
25
+ chore
26
+ build
27
+ ci
28
+ perf
29
+ docs
30
+ refactor
31
+ revert
32
+ test
You can’t perform that action at this time.
0 commit comments