Merge pull request #52324 from ClickHouse/merge-pr-logging

Add logging about all found workflows for merge_pr.py
This commit is contained in:
robot-ch-test-poll 2023-07-19 15:32:39 +02:00 committed by GitHub
commit 06fe08d9f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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