Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf382e84

Browse files
jaceksanCopilot
andauthored
Catch error and debug(print) it
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent64dfc05 commitf382e84

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎pkg/github/actions.go‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,10 @@ func GetPullRequestCIFailures(getClient GetClientFn, t translations.TranslationH
14541454
"workflow":run.GetWorkflowID(),
14551455
"error":err.Error(),
14561456
}
1457-
_,_=ghErrors.NewGitHubAPIErrorToCtx(ctx,"failed to get job logs",resp,err)
1457+
ctx,err2:=ghErrors.NewGitHubAPIErrorToCtx(ctx,"failed to get job logs",resp,err)
1458+
iferr2!=nil {
1459+
fmt.Printf("failed to record GitHub API error in context: %v\n",err2)
1460+
}
14581461
}
14591462

14601463
iffailedJobCount,ok:=runResult["failed_jobs"].(int);ok {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp