Add logging about all found workflows for merge_pr.py

This commit is contained in:
Mikhail f. Shiryaev 2023-07-19 15:12:47 +02:00
parent c4d881c027
commit 9c4005b33f
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -246,6 +246,12 @@ def main():
if args.check_running_workflows:
workflows = get_workflows_for_head(repo, pr.head.sha)
logging.info(
"The PR #%s has following workflows:\n%s",
pr.number,
"\n".join(f"{wf.html_url}: status is {wf.status}" for wf in workflows),
)
workflows_in_progress = [wf for wf in workflows if wf.status != "completed"]
# At most one workflow in progress is fine. We check that there no
# cases like, e.g. PullRequestCI and DocksCheck in progress at once