Fix: Preserve parentheses when merging # type: ignore with other comments to prevent AST errors #6051
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: changelog | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, labeled, unlabeled, reopened] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Changelog Entry Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Grep CHANGES.md for PR number | |
| if: contains(github.event.pull_request.labels.*.name, 'skip news') != true | |
| run: | | |
| grep -Pz "\((\n\s*)?#${{ github.event.pull_request.number }}(\n\s*)?\)" CHANGES.md || \ | |
| (echo "Please add '(#${{ github.event.pull_request.number }})' change line to CHANGES.md (or if appropriate, ask a maintainer to add the 'skip news' label)" && \ | |
| exit 1) |