From 6210a11879a3e5ae2fac3fe40f5f23af693daa52 Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Fri, 4 Oct 2024 16:57:52 -0400 Subject: [PATCH] ci: Don't require `skip-news` if NEWS.rst changes 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 --- .github/workflows/news-check.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/news-check.yml b/.github/workflows/news-check.yml index bcc4b976..804f8858 100644 --- a/.github/workflows/news-check.yml +++ b/.github/workflows/news-check.yml @@ -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}