Browse Source

Merge pull request #16869 from abpframework/try/except

added try/except
pull/16870/head
selman koc 3 years ago
committed by GitHub
parent
commit
4184702bfc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      .github/scripts/update_versions.py

12
.github/scripts/update_versions.py

@ -39,14 +39,16 @@ def create_pr():
branch=branch_name, branch=branch_name,
) )
pr = repo.create_pull(title="Update latest-versions.json", try:
body="Automated PR to update the latest-versions.json file.", pr = repo.create_pull(title="Update latest-versions.json",
head=branch_name, base="dev") body="Automated PR to update the latest-versions.json file.",
head=branch_name, base="dev")
except Exception as e:
print(f"Error while creating PR: {e}")
pr.create_review_request(reviewers=["ebicoglu", "gizemmutukurt", "skoc10"]) pr.create_review_request(reviewers=["gizemmutukurt"])
if __name__ == "__main__": if __name__ == "__main__":
should_create_pr = update_latest_versions() should_create_pr = update_latest_versions()
if should_create_pr: if should_create_pr:
create_pr() create_pr()

Loading…
Cancel
Save