-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update github.com/google/go-github to v68 #5231
base: master
Are you sure you want to change the base?
Conversation
@@ -109,7 +109,7 @@ func (g *githubActionsConfigProvider) FullLogs() ([]byte, error) { | |||
for i := range jobs { | |||
i := i // https://golang.org/doc/faq#closures_and_goroutines | |||
wg.Go(func() error { | |||
_, resp, err := g.client.Actions.GetWorkflowJobLogs(g.ctx, g.owner, g.repo, jobs[i].ID, true) | |||
_, resp, err := g.client.Actions.GetWorkflowJobLogs(g.ctx, g.owner, g.repo, jobs[i].ID, 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last parameter denotes the maximum number of redirects the github client is allowed to follow. Up to now this was hardcoded to 1
. Since we never had issues with it, I decided to keep it at this level.
options := github.PullRequestListOptions{State: "closed", Sort: "updated", Direction: "desc"} | ||
prList, _, err := pullRequestServiceInstance.ListPullRequestsWithCommit(ctx, config.Owner, config.Repository, config.CommitID, &options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The attributes offered by PullRequestListOptions
are not supported by the Github API, thus it got replaced by ListOptions
in one of the recent releases of go-github.
Quality Gate passedIssues Measures |
/it-go |
Description
This PR updates the
go-github
client to the most recent versionv68
.Checklist