Skip to content

Commit

Permalink
Modify exit codes
Browse files Browse the repository at this point in the history
  • Loading branch information
aandvalenzuela committed Feb 21, 2024
1 parent 0d3ae4a commit 7c0a34b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cms-docker-gh-issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
if issue.state == "open":
print("Issue already opened... Nothing to do!")
# Delete property files
sys.exit(0)
sys.exit(1)
# We can have multiple issues closed, we take the one that was opened first
print("Issue already closed... Ready for building!")
issue_number = issue.number
Expand Down Expand Up @@ -106,10 +106,10 @@
with open("gh-info.tmp", "a") as f:
f.write(str(label_obj["name"]) + "\n")
# Don't delete property files
sys.exit(1)
sys.exit(0)

# Delete property files
sys.exit(0)
sys.exit(1)
else:
for issue in gh_repo.get_issues(labels=[str(label) for label in args.labels], state="all"):
issue_number = issue.number
Expand Down

0 comments on commit 7c0a34b

Please sign in to comment.