|
1 | 1 | # This action requires that any PR targeting the main branch should add a |
2 | 2 | # yaml file to the ./.chloggen/ directory. If a CHANGELOG entry is not required, |
3 | 3 | # or if performing maintenance on the Changelog, add the "Skip Changelog" label, |
4 | | -# or prefix the pull request title with any of the following: "[chore]", "chore", |
| 4 | +# or prefix the pull request title with any of the following: "chore", |
5 | 5 | # "build", "ci", "refactor", "style", "test". |
6 | 6 |
|
7 | 7 | name: changelog |
|
38 | 38 | PR_TITLE: ${{ github.event.pull_request.title }} |
39 | 39 | PR_LABELS: ${{ toJSON(github.event.pull_request.labels.*.name) }} |
40 | 40 | run: | |
41 | | - CHLOG_EXEMPT_PREFIXES=('[chore]' 'chore' 'build' 'ci' 'refactor' 'style' 'test') |
| 41 | + CHLOG_EXEMPT_PREFIXES=('chore' 'build' 'ci' 'refactor' 'style' 'test') |
42 | 42 | for prefix in "${CHLOG_EXEMPT_PREFIXES[@]}"; do |
43 | 43 | if [[ "$PR_TITLE" == "$prefix"* ]]; then |
44 | 44 | echo "Title has exempt prefix '$prefix'; changelog not required." |
|
75 | 75 | then |
76 | 76 | echo "CHANGELOG.md should not be directly modified." |
77 | 77 | echo "Please add a .yaml file to the ./.chloggen/ directory." |
78 | | - echo "Alternately, add either \"chore:\" or \"[chore]\" to the title of the pull request or add the \"Skip Changelog\" label if this job should be skipped." |
| 78 | + echo "Alternately, add \"chore:\" to the title of the pull request or add the \"Skip Changelog\" label if this job should be skipped." |
79 | 79 | false |
80 | 80 | else |
81 | 81 | echo "CHANGELOG.md was not modified." |
|
91 | 91 | echo "No changelog entry was added or changed in the ./.chloggen/ directory." |
92 | 92 | echo "Please add or edit an existing .yaml file in the ./.chloggen/ directory." |
93 | 93 | echo "See CONTRIBUTING.md for more details." |
94 | | - echo "Alternately, add either \"[chore]\" to the title of the pull request or add the \"Skip Changelog\" label if this job should be skipped." |
| 94 | + echo "Alternately, add \"chore:\" to the title of the pull request or add the \"Skip Changelog\" label if this job should be skipped." |
95 | 95 | false |
96 | 96 | else |
97 | 97 | echo "A changelog entry was added to the ./.chloggen/ directory." |
|
0 commit comments