Skip to content

Commit 9ea0bc9

Browse files
committed
chore: ignore draft pull requests in stale PR tracker
1 parent dbc66c6 commit 9ea0bc9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/scripts/pr-cron-stale-abandon.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def main():
5252
for pr in pulls:
5353
total_scanned += 1
5454
try:
55+
if pr.draft:
56+
continue
57+
5558
# pr.updated_at is already timezone-aware in PyGithub (utc)
5659
updated_at = pr.updated_at
5760
if updated_at.tzinfo is None:

0 commit comments

Comments
 (0)