Skip to content

Commit

Permalink
fix: Only print Oldest issue #{oldest_issue['number']} left open if i…
Browse files Browse the repository at this point in the history
…t is open
  • Loading branch information
paul-gauthier committed Sep 22, 2024
1 parent f3ad683 commit b4fdb72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def main():
if issue["number"] != oldest_issue["number"]:
comment_and_close_duplicate(issue, oldest_issue)

print(f"Oldest issue #{oldest_issue['number']} left open")
if oldest_issue['state'] == 'open':
print(f"Oldest issue #{oldest_issue['number']} left open")


if __name__ == "__main__":
Expand Down

0 comments on commit b4fdb72

Please sign in to comment.