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 5, 2024
1 parent 3bdb0c4 commit 6210a11
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,7 +18,9 @@ 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}
Expand Down

0 comments on commit 6210a11

Please sign in to comment.