Skip to content

Commit

Permalink
add CI check that CHANGES.rst is not modified
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Sep 17, 2024
1 parent 9fa24f2 commit a9ceee8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ jobs:
- run: pip install towncrier
- run: towncrier check
- run: towncrier build --draft | grep -P '#${{ github.event.number }}'
no_changelog_edit:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'allow-manual-changelog-edit') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git diff HEAD ${{ github.event.pull_request.base.sha }} --no-patch --exit-code CHANGES.rst

0 comments on commit a9ceee8

Please sign in to comment.