add exit when more than two milestones found

This commit is contained in:
Jeremy Wu 2025-06-02 11:56:36 +00:00
parent a9a212e4de
commit a52ceb1caf

View file

@ -34,6 +34,7 @@ def get_github_prs(token: str, owner: str, repo: str, label: str = "", state: st
if len(milestones) > 2:
print("More than two milestones found, unable to determine the milestone required.")
exit(1)
# milestones.pop()
for ms in milestones: