File tree Expand file tree Collapse file tree 3 files changed +46
-15
lines changed
Expand file tree Collapse file tree 3 files changed +46
-15
lines changed Original file line number Diff line number Diff line change 33name : " Lint PR Title"
44on :
55 workflow_call :
6+ inputs :
7+ types :
8+ required : false
9+ type : string
10+ default : |
11+ build
12+ chore
13+ ci
14+ docs
15+ feat
16+ fix
17+ perf
18+ refactor
19+ revert
20+ style
21+ test
622 secrets :
723 github-token :
824 required : true
1935 env :
2036 GITHUB_TOKEN : ${{ secrets.github-token }}
2137 with :
22- # Configure which types are allowed (newline-delimited).
23- # From: https://github.com/commitizen/conventional-commit-types/blob/master/index.json
24- # listing all below
25- types : |
26- build
27- chore
28- ci
29- docs
30- feat
31- fix
32- perf
33- refactor
34- revert
35- style
36- test
38+ types : ${{ inputs.types }}
Original file line number Diff line number Diff line change 1414 pull-requests : read
1515 statuses : write
1616 uses : ./.github/workflows/pr-title.yaml
17+ with :
18+ types : |
19+ build
20+ chore
21+ ci
22+ docs
23+ feat
24+ fix
25+ perf
26+ refactor
27+ revert
28+ style
29+ test
1730 secrets :
1831 github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 44
55``` yaml
66- uses : jmeridth/reusable-workflows/.github/workflows/pr-title.yml@main
7+ with :
8+ # Configure which types are allowed (newline-delimited).
9+ # From: https://github.com/commitizen/conventional-commit-types/blob/master/index.json
10+ # listing all below
11+ types : |
12+ build
13+ chore
14+ ci
15+ docs
16+ feat
17+ fix
18+ perf
19+ refactor
20+ revert
21+ style
22+ test
723 secrets :
824 # The GitHub token to use
925 github-token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments