Skip to content

Commit

Permalink
Merge pull request #8 from Neves-P/feature/disk_cleanup
Browse files Browse the repository at this point in the history
Better formatting for merge conflict errors
  • Loading branch information
Neves-Bot authored Jun 11, 2024
2 parents cee6416 + 784c9b9 commit 1f2000b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tasks/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,21 +381,21 @@ def comment_download_pr(base_repo_name, pr, download_pr_exit_code, download_pr_e

download_pr_comments_cfg = config.read_config()[config.SECTION_DOWNLOAD_PR_COMMENTS]
if error_stage == _ERROR_GIT_CLONE:
download_comment = (f"`{download_pr_error}`"
download_comment = (f"`{download_pr_error}`\n"
f"{download_pr_comments_cfg[config.DOWNLOAD_PR_COMMENTS_SETTING_GIT_CLONE_FAILURE]}"
f"{download_pr_comments_cfg[config.DOWNLOAD_PR_COMMENTS_SETTING_GIT_CLONE_TIP]}")
f"\n{download_pr_comments_cfg[config.DOWNLOAD_PR_COMMENTS_SETTING_GIT_CLONE_TIP]}")
elif error_stage == _ERROR_GIT_CHECKOUT:
download_comment = (f"`{download_pr_error}`"
download_comment = (f"`{download_pr_error}`\n"
f"{download_pr_comments_cfg[config.DOWNLOAD_PR_COMMENTS_SETTING_GIT_CHECKOUT_FAILURE]}"
f"{download_pr_comments_cfg[config.DOWNLOAD_PR_COMMENTS_SETTING_GIT_CHECKOUT_TIP]}")
f"\n{download_pr_comments_cfg[config.DOWNLOAD_PR_COMMENTS_SETTING_GIT_CHECKOUT_TIP]}")
elif error_stage == _ERROR_CURL:
download_comment = (f"`{download_pr_error}`"
download_comment = (f"`{download_pr_error}`\n"
f"{download_pr_comments_cfg[config.DOWNLOAD_PR_COMMENTS_SETTING_CURL_FAILURE]}"
f"{download_pr_comments_cfg[config.DOWNLOAD_PR_COMMENTS_SETTING_CURL_TIP]}")
f"\n{download_pr_comments_cfg[config.DOWNLOAD_PR_COMMENTS_SETTING_CURL_TIP]}")
elif error_stage == _ERROR_GIT_APPLY:
download_comment = (f"`{download_pr_error}`"
download_comment = (f"`{download_pr_error}`\n"
f"{download_pr_comments_cfg[config.DOWNLOAD_PR_COMMENTS_SETTING_GIT_APPLY_FAILURE]}"
f"{download_pr_comments_cfg[config.DOWNLOAD_PR_COMMENTS_SETTING_GIT_APPLY_TIP]}")
f"\n{download_pr_comments_cfg[config.DOWNLOAD_PR_COMMENTS_SETTING_GIT_APPLY_TIP]}")

download_comment = pr_comments.create_comment(
repo_name=base_repo_name, pr_number=pr.number, comment=download_comment
Expand Down

0 comments on commit 1f2000b

Please sign in to comment.