@@ -5,21 +5,17 @@ permissions:
5
5
statuses : write
6
6
7
7
on :
8
- - workflow_call
8
+ workflow_call :
9
9
10
10
jobs :
11
11
main :
12
12
name : Validate PR title
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- # Please look up the latest version from
16
- # https://github.com/amannn/action-semantic-pull-request/releases
17
15
18
16
env :
19
17
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
18
with :
21
- # Configure which types are allowed.
22
- # Default: https://github.com/commitizen/conventional-commit-types
23
19
types : |
24
20
feat
25
21
fix
29
25
test
30
26
ci
31
27
chore
32
- # Configure that a scope must always be provided.
33
28
requireScope : false
34
- # Configure additional validation for the subject based on a regex.
35
- # This example ensures the subject starts with an uppercase character.
36
29
subjectPattern : ^[A-Z].+$
37
- # If `subjectPattern` is configured, you can use this property to override
38
- # the default error message that is shown when the pattern doesn't match.
39
- # The variables `subject` and `title` can be used within the message.
40
- subjectPatternError : |
41
- The subject "{subject}" found in the pull request title "{title}"
42
- didn't match the configured pattern. Please ensure that the subject
43
- starts with an uppercase character.
44
- # For work-in-progress PRs you can typically use draft pull requests
45
- # from Github. However, private repositories on the free plan don't have
46
- # this option and therefore this action allows you to opt-in to using the
47
- # special "[WIP]" prefix to indicate this state. This will avoid the
48
- # validation of the PR title and the pull request checks remain pending.
49
- # Note that a second check will be reported if this is enabled.
50
30
wip : true
0 commit comments