github google/go-github v83.0.0

9 hours ago

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:

  • native auto-generated iterators for all List* methods that support pagination (change your call from List* to List*Iter and 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:

  • fix!: Divide PackageGetAllVersions into two separate methods ListPackageVersions and ListUserPackageVersions (#4014)
    BREAKING CHANGE: PackageGetAllVersions is now divided into ListPackageVersions and ListUserPackageVersions.
  • fix!: Remove unsupported pagination from ListAutolinks (#4012)
    BREAKING CHANGE: opts *ListOptions is removed from RepositoriesService.ListAutoLinks.
  • fix!: Remove ListOptions from PullRequestsService.ListReviewers (#4009)
    BREAKING CHANGE: PullRequestsService.ListReviewers no longer has opts *ListOptions.
  • fix!: Change PremiumRequestUsageItem quantities to float64 (#4002)
    BREAKING CHANGE: PremiumRequestUsageItem numeric fields are now float64.
  • fix!: Add ListOptions to ListDeploymentBranchPolicies and ListCustomDeploymentRuleIntegrations (#3988)
    BREAKING CHANGE: RepositoriesService.ListDeploymentBranchPolicies and RepositoriesService.ListCustomDeploymentRuleIntegrations now accept ListOptions.
  • fix!: Pass url struct tags by value instead of by reference (#3991)
    BREAKING CHANGE: Many *Options structs now pass omitempty URL struct fields by value instead of by reference.
  • fix!: Fix pagination support for IssuesService list methods (#3984)
    BREAKING CHANGE: ListCursorOptions is removed from IssueListOptions.
  • fix!: Add field PerPage to OrganizationsListOptions (#3986)
    BREAKING CHANGE: OrganizationsListOptions now contains only PerPage instead of ListOptions.
  • fix!: Add ListLicensesOptions to LicensesService.List (#3981)
    BREAKING CHANGE: LicensesService.List now accepts ListLicensesOptions for pagination.
  • fix!: Change SCIMEnterpriseAttributeOperation.Value from *string to any (#3971)
    BREAKING CHANGE: SCIMEnterpriseAttributeOperation.Value is changed from *string to any.
  • feat!: Add ListOptions to RepositoriesService.ListAllTopics (#3978)
    BREAKING CHANGE: RepositoriesService.ListAllTopics now accepts ListOptions for pagination.
  • fix!: Replace UserListOptions.ListOptions with UserListOptions.PerPage (#3977)
    BREAKING CHANGE: Replaces UserListOptions.ListOptions with UserListOptions.PerPage which also removes UsersService.ListAllIter.
  • fix!: CreateHostedRunnerRequest, UpdateHostedRunnerRequest instead of HostedRunnerRequest (#3973)
    BREAKING CHANGE: ActionsService.CreateHostedRunner and EnterpriseService.CreateHostedRunner now accept CreateHostedRunnerRequest; ActionsService.UpdateHostedRunner and EnterpriseService.UpdateHostedRunner now accept UpdateHostedRunnerRequest.
  • refactor!: Use RepositoryPermissions struct for User.Permissions (#3963)
    BREAKING CHANGE: User.Permissions is now *RepositoryPermissions instead of map[string]bool.

...and the following additional changes:

  • Bump version of go-github to v83.0.0 (#4015)
  • feat: Support pagination for methods that return structs (#4011)
  • chore: Bump golangci-lint to v2.9.0 (#4013)
  • docs: Update usage instructions (#4008)
  • feat: Add iterators for methods with After (#4007)
  • chore: Improve addOptions implementation (#3998)
  • chore: Do not print any output when check-structfield-settings is OK (#4001)
  • build(deps): Bump golang.org/x/net from 0.49.0 to 0.50.0 in /scrape (#4003)
  • chore: Remove unnecessary fmt.Print in tests (#3999)
  • build(deps): Bump github.com/alecthomas/kong from 1.13.0 to 1.14.0 in /tools (#4004)
  • build(deps): Bump golang.org/x/crypto from 0.47.0 to 0.48.0 in /example (#4006)
  • fix: Change cursor pagination to use After (#3994)
  • fix: Add support for GitHub Enterprise cloud upload URLs (#3993)
  • chore: Turn off commit with gpgsign in script/generate.sh (#3982)
  • feat: Support []string return type in gen-iterators.go (#3980)
  • fix: Address modernize.omitzero issues (#3972)
  • feat: Add organization artifact metadata APIs (#3944)
  • chore: Address otel review feedback (#3969)
  • feat(otel): Add native OpenTelemetry Transport module (#3938)
  • feat: Add native Go 1.23 iterator support for cursor-based pagination (#3965)
  • chore: Address gen-iterators review feedback (#3962)
  • feat: Add native Go 1.23 Iterator support (#3916)
  • docs: Fix typo in README.md (#3961)
  • chore: Move all "DO NOT EDIT" messages to line 1 (#3960)
  • chore: Enable unparam linter and cover unused *Response results (#3955)
  • fix(tools): Change gen-release-notes to use git instead of scraping web (#3958)
  • chore: Use example.com instead of random URLs in tests (#3948)
  • feat: Add organization_copilot_metrics installation permission (#3957)
  • chore(deps): Switch from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 in /tools (#3907)
  • docs: Address PR titles in CONTRIBUTING.md (#3952)
  • chore: Format code with golangci-lint fmt (#3949)
  • fix: Handle HTTP 429 status code for rate limiting (#3951)
  • chore: Adapt lint.sh to Windows Git Bash (#3950)
  • Bump go-github from v81 to v82 in /scrape (#3946)

Don't miss a new go-github release

NewReleases is sending notifications on new releases.