Skip to content

Commit

Permalink
polish output and show unique repo ids
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Mar 13, 2024
1 parent a307ae5 commit 31e793a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eessi_bot_event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,15 @@ def handle_pull_request_opened_event(self, event_info, pr):

comment = f"Instance `{app_name}` is configured to build for:"
architectures = ['/'.join(arch.split('/')[1:]) for arch in arch_map.keys()]
comment += "- architectures: "
comment += "\n- architectures: "
if len(architectures) > 0:
comment += f"{', '.join([f"`{arch}`" for arch in architectures])}"
comment += f"{', '.join([f'`{arch}`' for arch in architectures])}"
else:
comment += "none"
repositories = [repo_id for repo_id in repo_cfg[REPO_TARGET_MAP].keys()]
comment += "- repositories: "
repositories = list(set([repo_id for repo_ids in repo_cfg[REPO_TARGET_MAP].values() for repo_id in repo_ids]))
comment += "\n- repositories: "
if len(repositories) > 0:
comment += f"{', '.join([f"`{repo_id}`" for repo_id in repositories])}"
comment += f"{', '.join([f'`{repo_id}`' for repo_id in repositories])}"
else:
comment += "none"

Expand Down

0 comments on commit 31e793a

Please sign in to comment.