Skip to content

Commit

Permalink
clean-upp
Browse files Browse the repository at this point in the history
  • Loading branch information
vsc46128 vscuser committed Jan 25, 2024
1 parent d04bea1 commit 5e04403
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions eessi_bot_event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5e04403

Please sign in to comment.