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)