Skip to content

Commit

Permalink
Merge pull request #144 from NixOS/track_api_errors
Browse files Browse the repository at this point in the history
add tracking for api errors
  • Loading branch information
Lassulus authored Jan 6, 2025
2 parents 3018e16 + 3153719 commit 095eaf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixpkgs_merge_bot/commands/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def merge_command(issue_comment: IssueComment, settings: Settings) -> HttpRespon
if check:
one_merge_strategy_passed = True
decline_reasons = []
continue
break
for reason in decline_reasons:
log.info(f"{issue_comment.issue_number}: {reason}")

Expand Down Expand Up @@ -167,6 +167,8 @@ def merge_command(issue_comment: IssueComment, settings: Settings) -> HttpRespon
return issue_response("merged")
except GithubClientError as e:
log.exception(f"{issue_comment.issue_number}: merge failed")
msg = "GitHub API error (#371492):" # Link Issue to track errors
decline_reasons.append(msg)
decline_reasons.extend(
[
f"@{issue_comment.commenter_login} merge failed:",
Expand Down

0 comments on commit 095eaf3

Please sign in to comment.