Skip to content

Commit

Permalink
Use table for issue errors
Browse files Browse the repository at this point in the history
Signed-off-by: Frantisek Lachman <flachman@redhat.com>
  • Loading branch information
lachmanfrantisek committed Dec 12, 2019
1 parent 97223f9 commit 6f5adeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packit_service/worker/github_handlers.py
Expand Up @@ -213,11 +213,13 @@ def run(self) -> HandlerResults:

if errors:
branch_errors = "\n".join(
f"- '{branch}: `{err}`" for branch, err in errors.items()
f"| `{branch}` | `{err}` |" for branch, err in errors.items()
)

body_msg = (
f"Packit failed on creating pull-requests in dist-git:\n\n"
f"| dist-git branch | error |\n"
f"| --------------- | ----- |\n"
f"{branch_errors}\n\n"
"You can re-trigger the update by adding `/packit propose-update`"
" to the issue comment.\n"
Expand Down

0 comments on commit 6f5adeb

Please sign in to comment.