Skip to content

Commit c1f8951

Browse files
authored
Merge pull request #18 from cidrblock/skip_changelog
Allow for a PR to not have a change log, use label "skip-changelog"
2 parents 0fe9c4b + 6ea0aee commit c1f8951

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/changelog.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ jobs:
1212
path: ${{ env.source_directory }}
1313
ref: ${{ github.event.pull_request.head.sha }}
1414
fetch-depth: "0"
15+
if: "!contains(github.event.pull_request.labels.*.name, 'skip-changelog')"
16+
1517
- name: Ensure a new changelog entry exists
1618
run: >-
1719
git show origin/${{ github.event.pull_request.base.ref }}..HEAD
1820
--name-status
1921
--oneline |
2022
grep -E -e "A\s+changelogs/fragments/" -e "M\s+CHANGELOG.rst"
23+
if: "!contains(github.event.pull_request.labels.*.name, 'skip-changelog')"
24+

0 commit comments

Comments
 (0)