update lint config #955
Workflow file for this run
This file contains 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
# Github Action Workflow enforcing our changelog style of enforcing PR number. | |
# credit: https://github.com/psf/black/blob/main/.github/workflows/changelog.yml | |
name: Changelog Entry Check | |
on: | |
pull_request: | |
types: [opened, synchronize, labeled, unlabeled, reopened] | |
jobs: | |
build: | |
name: Changelog Entry Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Grep Release Notes (docs-en) for PR number | |
if: contains(github.event.pull_request.labels.*.name, 'skip changelog') != true | |
run: | | |
grep -Pz "\((\n\s*)?#${{ github.event.pull_request.number }}(\n\s*)?\)" docs/changelog.md || \ | |
( | |
echo "Please add '(#${{ github.event.pull_request.number }})' change line to docs/changelog.md" && exit 1 | |
) |