chore(deps): update module github.com/google/go-github/v81 to v83#3424
Conversation
ℹ️ Artifact update noticeFile name: cli/go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
|
/gcbrun |
There was a problem hiding this comment.
Code Review
This pull request updates the google/go-github library from version 81 to 83 and go-querystring to version 1.2.0 across the codebase. The reviewer suggests refactoring the manual pagination logic in fetchRepos to utilize the new Go 1.23 iterators available in the updated library version for improved code simplicity.
| "sort" | ||
|
|
||
| "github.com/google/go-github/v81/github" | ||
| "github.com/google/go-github/v83/github" |
There was a problem hiding this comment.
With the upgrade to v83.0.0, you can now leverage the new native Go 1.23 iterators for all List* methods that support pagination. Consider refactoring the manual pagination loop in fetchRepos (lines 96-107) to use ListByOrgIter. This simplifies the code by removing the need for the inner for loop and manual NextPage handling. Example usage: for repo, err := range g.client.Repositories.ListByOrgIter(g.ctx, org, opts) { ... }. Note: As mentioned in the release notes, ensure you are using a rate-limiting transport if you expect to process a large number of items, as iterators can quickly exhaust quotas.
c72cd71 to
b181c18
Compare
|
/gcbrun |
b181c18 to
c30ebb0
Compare
|
/gcbrun |
c30ebb0 to
c00cb99
Compare
|
/gcbrun |
c00cb99 to
be59814
Compare
|
/gcbrun |
be59814 to
1c986e7
Compare
|
/gcbrun |
1c986e7 to
55950cc
Compare
|
/gcbrun |
55950cc to
60449de
Compare
|
/gcbrun |
60449de to
1c5131d
Compare
|
/gcbrun |
1c5131d to
9c75fe3
Compare
|
/gcbrun |
9c75fe3 to
79ffd26
Compare
|
/gcbrun |
79ffd26 to
53dba00
Compare
|
/gcbrun |
53dba00 to
5f3af9f
Compare
|
/gcbrun |
5f3af9f to
695f514
Compare
|
/gcbrun |
695f514 to
cd194b0
Compare
|
/gcbrun |
cd194b0 to
f6c6bae
Compare
|
/gcbrun |
f6c6bae to
da35a6c
Compare
|
/gcbrun |
da35a6c to
32a3dc7
Compare
|
/gcbrun |
32a3dc7 to
b1078bc
Compare
|
/gcbrun |
This PR contains the following updates:
v81.0.0→v83.0.0Release Notes
google/go-github (github.com/google/go-github/v81)
v83.0.0Compare Source
I don't recall ever having this many breaking API changes in a single release, and the last release was only 3 weeks ago!
A special heart-felt thanks goes to @merchantmoh-debug, @Not-Dhananjay-Mishra, and @alexandear for the addition of a long-requested feature to this repo:
List*methods that support pagination (change your call fromList*toList*Iterand make sure to use a rate-limiting transport or you will quickly exhaust your quotas!)A second set of heart-felt thanks go to @stevehipwell for setting up our REVIEWERS file and to our amazing volunteer reviewers:
who have reduced our code-review wait times from days (sometimes weeks) down to literally hours and thereby enable rapid responses to bug fixes and attempts to stay up-to-date with the ever-evolving GitHub v3 API.
This release contains the following breaking API changes:
PackageGetAllVersionsinto two separate methodsListPackageVersionsandListUserPackageVersions(#4014)BREAKING CHANGE:
PackageGetAllVersionsis now divided intoListPackageVersionsandListUserPackageVersions.ListAutolinks(#4012)BREAKING CHANGE:
opts *ListOptionsis removed fromRepositoriesService.ListAutoLinks.ListOptionsfromPullRequestsService.ListReviewers(#4009)BREAKING CHANGE:
PullRequestsService.ListReviewersno longer hasopts *ListOptions.PremiumRequestUsageItemquantities tofloat64(#4002)BREAKING CHANGE:
PremiumRequestUsageItemnumeric fields are nowfloat64.ListOptionstoListDeploymentBranchPoliciesandListCustomDeploymentRuleIntegrations(#3988)BREAKING CHANGE:
RepositoriesService.ListDeploymentBranchPoliciesandRepositoriesService.ListCustomDeploymentRuleIntegrationsnow acceptListOptions.urlstruct tags by value instead of by reference (#3991)BREAKING CHANGE: Many
*Optionsstructs now passomitemptyURL struct fields by value instead of by reference.IssuesServicelist methods (#3984)BREAKING CHANGE:
ListCursorOptionsis removed fromIssueListOptions.PerPagetoOrganizationsListOptions(#3986)BREAKING CHANGE:
OrganizationsListOptionsnow contains onlyPerPageinstead ofListOptions.ListLicensesOptionstoLicensesService.List(#3981)BREAKING CHANGE:
LicensesService.Listnow acceptsListLicensesOptionsfor pagination.SCIMEnterpriseAttributeOperation.Valuefrom*stringtoany(#3971)BREAKING CHANGE:
SCIMEnterpriseAttributeOperation.Valueis changed from*stringtoany.ListOptionstoRepositoriesService.ListAllTopics(#3978)BREAKING CHANGE:
RepositoriesService.ListAllTopicsnow acceptsListOptionsfor pagination.UserListOptions.ListOptionswithUserListOptions.PerPage(#3977)BREAKING CHANGE: Replaces
UserListOptions.ListOptionswithUserListOptions.PerPagewhich also removesUsersService.ListAllIter.CreateHostedRunnerRequest,UpdateHostedRunnerRequestinstead ofHostedRunnerRequest(#3973)BREAKING CHANGE:
ActionsService.CreateHostedRunnerandEnterpriseService.CreateHostedRunnernow acceptCreateHostedRunnerRequest;ActionsService.UpdateHostedRunnerandEnterpriseService.UpdateHostedRunnernow acceptUpdateHostedRunnerRequest.RepositoryPermissionsstruct forUser.Permissions(#3963)BREAKING CHANGE:
User.Permissionsis now*RepositoryPermissionsinstead ofmap[string]bool....and the following additional changes:
After(#4007)addOptionsimplementation (#3998)check-structfield-settingsis OK (#4001)fmt.Printin tests (#3999)After(#3994)gpgsignin script/generate.sh (#3982)[]stringreturn type ingen-iterators.go(#3980)modernize.omitzeroissues (#3972)otelreview feedback (#3969)gen-iteratorsreview feedback (#3962)unparamlinter and cover unused*Responseresults (#3955)gen-release-notesto usegitinstead of scraping web (#3958)example.cominstead of random URLs in tests (#3948)organization_copilot_metricsinstallation permission (#3957)gopkg.in/yaml.v3togo.yaml.in/yaml/v3in /tools (#3907)golangci-lint fmt(#3949)lint.shto Windows Git Bash (#3950)v82.0.0Compare Source
This release contains the following breaking API changes:
BREAKING CHANGE:
CustomProperty.DefaultValueis now typeanyand.ValueTypeis now typePropertyValueType.Git.ListMatchingRefsby removingReferenceListOptions(#3924)BREAKING CHANGE:
Git.ListMatchingRefsacceptsrefinstead of theReferenceListOptions.Repository.Permissionsinstead ofmap[string]bool(#3936)BREAKING CHANGE:
Repository.Permissionsis now a struct instead ofmap[string]bool....and the following additional changes:
ConfigurationFilePathfield toGenerateNotesOptions(#3904)AllowedMergeMethodsfield (#3905)nilhttp.Clientusage has no timeout (#3910)dependency_sbomrate limit support (#3908)DeleteSocialAccountsandAddSocialAccountsofUsersService(#3922)govetlinter with all checks (#3935)Stringifyallocations (~3x faster) (#3914)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.