Skip to content

Commit

Permalink
ci: Don't require skip-news if NEWS.rst changes
Browse files Browse the repository at this point in the history
Until now we've been requiring every PR affect a file in the news/
directory or be labeled with `skip-news`. Also allow a PR to directly
touch NEWS.rst instead.

Signed-off-by: Matt Wozniski <[email protected]>
  • Loading branch information
godlygeek authored and pablogsal committed Oct 21, 2024
1 parent f5eb8d7 commit df48806
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/news-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
- name: "Check for news entry"
uses: brettcannon/check-for-changed-files@v1
with:
file-pattern: "news/*.rst"
file-pattern: |
news/*.rst
NEWS.rst
skip-label: "skip news"
failure-message: "Missing a news file in ${file-pattern}; please add one or apply the ${skip-label} label to the pull request"

0 comments on commit df48806

Please sign in to comment.