Skip to content

Commit

Permalink
add CI check that CHANGES.rst is not modified (#8827)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett authored Sep 24, 2024
1 parent 56328cf commit 8f3eccf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,13 @@ jobs:
- run: pip install towncrier
- run: towncrier check
- run: towncrier build --draft | grep -P '#${{ github.event.number }}'
prevent_manually_editing_changlog:
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
- name: prevent direct changes to `CHANGES.rst`
run: git diff HEAD ${{ github.event.pull_request.base.sha }} --no-patch --exit-code CHANGES.rst

0 comments on commit 8f3eccf

Please sign in to comment.