Skip to content

Commit 9925f0e

Browse files
Use a glob to check all the file from doc/whatsnew in version 2
If the wrong file is used, the review will see that. Or we could add another check.
1 parent 26c6af0 commit 9925f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/changelog.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if:
1919
contains(github.event.pull_request.labels.*.name, 'skip news :mute:') != true
2020
run: |
21-
grep -Pz "\((\n\s*)?#${{ github.event.pull_request.number }}(\n\s*)?\)" doc/whatsnew/2/2.15/index.rst || \
21+
grep -Pz "\((\n\s*)?#${{ github.event.pull_request.number }}(\n\s*)?\)" doc/whatsnew/2/**/*.rst || \
2222
(echo "Please add '(#${{ github.event.pull_request.number }})' change line to 'doc/whatsnew/2/2.15/index.rst' \
2323
(or if appropriate, ask a maintainer to add the 'skip news' label)" && \
2424
exit 1)

0 commit comments

Comments
 (0)