Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

v0lkc
Copy link
Member

@v0lkc v0lkc commented Jan 13, 2025

Description

This PR updates the go-github client to the most recent version v68.

Checklist

  • Tests
  • Documentation
  • Inner source library needs updating

@v0lkc v0lkc requested review from inf2381 and a team as code owners January 13, 2025 12:01
@@ -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)
Copy link
Member Author

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.

Comment on lines -1144 to -1145
options := github.PullRequestListOptions{State: "closed", Sort: "updated", Direction: "desc"}
prList, _, err := pullRequestServiceInstance.ListPullRequestsWithCommit(ctx, config.Owner, config.Repository, config.CommitID, &options)
Copy link
Member Author

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.

@v0lkc
Copy link
Member Author

v0lkc commented Jan 13, 2025

/it-go

@v0lkc v0lkc enabled auto-merge (squash) January 13, 2025 12:50
@v0lkc v0lkc requested review from CCFenner and maxcask January 13, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant