github google/go-github v91.0.0

5 hours ago

This release contains the following breaking API changes:

  • refactor!: Rename EditComment to UpdateComment on PullRequestsService, split review comment request bodies, and pass by value (#4493)
    BREAKING CHANGE: PullRequestsService.CreateComment now takes CreatePullRequestCommentRequest by value; PullRequestsService.EditComment is now UpdateComment and takes UpdatePullRequestCommentRequest by value.
  • refactor!: Split Key request bodies into CreateDeployKeyRequest, CreateUserKeyRequest and CreateSSHSigningKeyRequest and pass by value (#4477)
    BREAKING CHANGE: RepositoriesService.CreateKey, UsersService.CreateKey and UsersService.CreateSSHSigningKey now take CreateDeployKeyRequest, CreateUserKeyRequest and CreateSSHSigningKeyRequest by value.
  • refactor!: Pass PendingDeploymentsRequest and ReviewCustomDeploymentProtectionRuleRequest by value (#4475)
    BREAKING CHANGE: ActionsService.PendingDeployments and ActionsService.ReviewCustomDeploymentProtectionRule now take PendingDeploymentsRequest and ReviewCustomDeploymentProtectionRuleRequest by value.
  • refactor!: Rename EditComment to UpdateComment on IssuesService, pass a new IssueCommentRequest by value, and add missing IssueComment fields (#4444)
    BREAKING CHANGE: IssuesService.CreateComment now takes IssueCommentRequest by value; IssuesService.EditComment is now UpdateComment and takes IssueCommentRequest by value.
  • refactor!: Rename ImpersonateUserOptions to CreateUserImpersonationRequest and pass by value (#4462)
    BREAKING CHANGE: AdminService.CreateUserImpersonation now takes CreateUserImpersonationRequest by value instead of *ImpersonateUserOptions.
  • refactor!: Update teams create & update patterns (#4446)
    BREAKING CHANGE: CreateTeam and UpdateTeamBy* now take new body params by value.
  • refactor!: Rename EditMilestone to UpdateMilestone, split Milestone request bodies into CreateMilestoneRequest and UpdateMilestoneRequest, and pass by value (#4438)
    BREAKING CHANGE: IssuesService.CreateMilestone now takes a new CreateMilestoneRequest by value; IssuesService.EditMilestone is now UpdateMilestone and takes a new UpdateMilestoneRequest by value.
  • refactor!: Pass UpdatePreReceiveHook request body by value via new UpdatePreReceiveHookRequest (#4434)
    BREAKING CHANGE: RepositoriesService.UpdatePreReceiveHook now takes a new UpdatePreReceiveHookRequest by value instead of *PreReceiveHook.
  • refactor!: Rename UsersService.Edit to Update, introduce UserUpdateRequest, and pass request by value (#4433)
    BREAKING CHANGE: UsersService.Edit is now Update and uses a new UserUpdateRequest body value.
  • refactor!: Pass LDAP mapping request bodies by value via new UpdateUserLDAPMappingRequest and UpdateTeamLDAPMappingRequest (#4432)
    BREAKING CHANGE: AdminService.UpdateUserLDAPMapping and UpdateTeamLDAPMapping now take UpdateUserLDAPMappingRequest and UpdateTeamLDAPMappingRequest (with non-pointer LDAPDN) by value.

...and the following additional changes:

  • chore: Bump version of go-github to v91.0.0 (#4505)
  • build: Bump google.golang.org/grpc from 1.82.1 to 1.83.1 in /example in the go_modules group across 1 directory (#4502)
  • feat: Add Copilot code review active user counts to metrics structs (#4490)
  • feat: Add MergeAsync and GetMergeAsyncResult support (#4491)
  • feat: Add Copilot app metrics to usage metrics structs (#4488)
  • fix: Close the original response body on non-2xx responses (#4486)
  • perf: Reduce allocations in Client.Do response decoding with a buffer pool (#4494)
  • feat: Require Go 1.26 and use new(expr) for pointer literals (#4481)
  • build: Bump github.com/getkin/kin-openapi from 0.146.0 to 0.147.0 in /tools (#4495)
  • feat: Add enterprise Visual Studio subscription licensing APIs (#4483)
  • feat: Add Copilot AI credits and adoption phase metrics (#4480)
  • feat: Add Copilot 3rd-party agent metrics (#4460)
  • chore: Remove stale paramcheck allowlist entries (#4476)
  • feat: Add tools/list-return-structs (#4478)
  • feat: Add agent tasks API support (#4225)
  • chore: Consolidate Dependabot PRs (#4474)
  • fix: Keep the public toggle on repository visibility rules (#4455)
  • chore: Bump golang-ci-lint version to v2.13.1 (#4463)
  • chore: Consolidate Dependabot PRs (#4454)
  • fix: Adjust argument index for Fprintf in fmtpercentv linter check (#4443)
  • chore: Consolidate Dependabot PRs (#4442)
  • chore: Remove stale User entry from the paramcheck allowlist (#4437)
  • feat: Add enterprise level secret scanning custom patterns support (#4431)
  • chore: Update openapi_operations.yaml (#4430)
  • chore: Bump go-github from v89 to v90 in /scrape (#4429)

Don't miss a new go-github release

NewReleases is sending notifications on new releases.