Skip to content

Preserve type ignores in attribute chains #7346

Preserve type ignores in attribute chains

Preserve type ignores in attribute chains #7346

Workflow file for this run

name: changelog
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled, reopened]
env:
PIP_UPLOADED_PRIOR_TO: P2D
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Grep CHANGES.md for PR number
if: >
contains(github.event.pull_request.labels.*.name, 'ci: 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 'ci: skip news' label)" && \
exit 1)