Skip to content

Commit 3ce86a7

Browse files
Make open PR check stricter
1 parent 68d4d51 commit 3ce86a7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/check-for-updates.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
run: |
2323
PR_EXISTS=$(gh pr --repo "$GITHUB_REPOSITORY" \
24-
list --search "Update tzdata to version" \
24+
list --state open \
25+
--search 'in:title "Update tzdata to version"' \
2526
--json number --jq '.[] | .number')
2627
if [ -n "$PR_EXISTS" ]; then
2728
echo "A PR updating the tzdata version already exists: https://github.com/python/tzdata/pulls/${PR_EXISTS}"

0 commit comments

Comments
 (0)