From 5e0440356d0bf1ad9a90e53a475e103add5dad6b Mon Sep 17 00:00:00 2001 From: vsc46128 vscuser Date: Thu, 25 Jan 2024 14:03:20 +0100 Subject: [PATCH] clean-upp --- eessi_bot_event_handler.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/eessi_bot_event_handler.py b/eessi_bot_event_handler.py index 8854bc4e..3991d86a 100644 --- a/eessi_bot_event_handler.py +++ b/eessi_bot_event_handler.py @@ -495,15 +495,16 @@ def handle_bot_command_status(self, event_info, bot_command): pr_number = event_info['raw_request_body']['issue']['number'] status_table = request_bot_build_issue_comments(repo_name, pr_number) - comment = f"This is the status of all the `bot: build` commands:" - comment += f"\n|arch|result|date|status|url|" - comment += f"\n|----|------|----|------|---|" + comment_status = '' + comment_status += f"\nThis is the status of all the `bot: build` commands:" + comment_status += f"\n|arch|result|date|status|url|" + comment_status += f"\n|----|------|----|------|---|" for x in range(0, len(status_table['date'])): - comment += f"\n|{status_table['arch'][x]}|" - comment += f"{status_table['result'][x]}|" - comment += f"{status_table['date'][x]}|" - comment += f"{status_table['status'][x]}|" - comment += f"{status_table['url'][x]}|" + comment_status += f"\n|{status_table['arch'][x]}|" + comment_status += f"{status_table['result'][x]}|" + comment_status += f"{status_table['date'][x]}|" + comment_status += f"{status_table['status'][x]}|" + comment_status += f"{status_table['url'][x]}|" self.log(f"PR opened: comment '{comment}'") repo = gh.get_repo(repo_name)