github google/go-github v93.0.0

3 hours ago

This release contains the following breaking API changes:

  • feat!: Support reason in UsersService.Unsuspend (#4614)
    BREAKING CHANGE: UsersService.Unsuspend now takes an UnsuspendUserRequest body argument.
  • refactor!: Pass repository creation by value (#4616)
    BREAKING CHANGE: RepositoriesService.Create now requires a CreateRepositoryRequest value instead of a *Repository.
  • refactor!: Rename LockIssueOptions, PullRequestBranchUpdateOptions, and UserSuspendOptions to ...Request and pass them by value (#4612)
    BREAKING CHANGE: LockIssueOptions, PullRequestBranchUpdateOptions, and UserSuspendOptions are renamed to LockIssueRequest, UpdatePullRequestBranchRequest, and SuspendUserRequest and are passed by value to IssuesService.Lock, PullRequestsService.UpdateBranch, and UsersService.Suspend; LockIssueRequest.LockReason is now *string.
  • refactor!: Pass the Projects v2 item body types by value and rename them to ...Request (#4609)
    BREAKING CHANGE: AddProjectItemOptions and UpdateProjectItemOptions are renamed to AddProjectItemRequest and UpdateProjectItemRequest and passed by value; AddProjectItemRequest.Type is no longer a pointer; UpdateProjectItemOptions.Archived is removed.
  • refactor!: Rename RepositoryCreateForkOptions and RepositoryAddCollaboratorOptions to ...Request and pass them by value (#4607)
    BREAKING CHANGE: RepositoryCreateForkOptions and RepositoryAddCollaboratorOptions are renamed to CreateForkRequest and AddCollaboratorRequest; RepositoriesService.CreateFork and RepositoriesService.AddCollaborator now take them by value instead of by pointer; CreateForkRequest.Organization, CreateForkRequest.Name, CreateForkRequest.DefaultBranchOnly and AddCollaboratorRequest.Permission are now pointers.
  • refactor!: Pass the Teams body types by value and rename them to ...Request (#4606)
    BREAKING CHANGE: TeamAddTeamMembershipOptions, TeamAddTeamRepoOptions and TeamProjectOptions are renamed to AddTeamMembershipRequest, AddTeamRepoRequest and AddTeamProjectRequest; TeamsService.AddTeamMembershipByID, AddTeamMembershipBySlug, AddTeamRepoByID, AddTeamRepoBySlug, AddTeamProjectByID and AddTeamProjectBySlug now take them by value instead of by pointer; AddTeamMembershipRequest.Role and AddTeamRepoRequest.Permission are now *string.
  • refactor!: Pass the secret scanning body types by value and rename them to ...Request (#4548)
    BREAKING CHANGE: SecretScanningAlertUpdateOptions and SecretScanningPatternConfigsUpdateOptions are renamed to UpdateSecretScanningAlertRequest and UpdateSecretScanningPatternConfigsRequest; SecretScanningService.UpdateAlert, UpdatePatternConfigsForEnterprise and UpdatePatternConfigsForOrg now take them by value; UpdateSecretScanningAlertRequest.State is now *string.
  • fix!: Match request body fields to the OpenAPI schemas (#4581)
    BREAKING CHANGE: Many required request body fields are now passed by value.
  • fix!: Send credentials only to configured origins (#4564)
    BREAKING CHANGE: Credentials are sent only to a client's configured API and upload origins — every other destination, including a redirect hop, goes out unauthenticated. A request body aimed outside those origins is refused. BasicAuthTransport and UnauthenticatedRateLimitedTransport gained AllowedOrigins, which GitHub Enterprise users must set.
  • refactor!: Pass org invitation requests by value (#4551)
    BREAKING CHANGE: OrganizationsService.CreateOrgInvitation now takes CreateOrgInvitationRequest (by value); CreateOrgInvitationRequest.TeamID is now TeamIDs.

...and the following additional changes:

  • chore: Bump version of go-github to v93.0.0 (#4634)
  • chore: Consolidate Dependabot PRs (#4633)
  • feat: Add support for stargazer count and history (#4611)
  • build: Bump github.com/ProtonMail/go-crypto from 1.5.1 to 1.5.2 in /example (#4608)
  • fix: Allow removing runner group networks (#4541)
  • feat: Add actions policies endpoints (#4604)
  • feat: Add Actions cache limits for an organization (#4597)
  • feat: Add dismissal_restriction to PullRequestRuleParameters (#4599)
  • feat: Add code coverage ruleset support (#4603)
  • tools: Leave response struct fields out of the schemafields check (#4592)
  • feat: Add org private registries permission scope (#4591)
  • chore: Use local gcl to create custom gcl if on path (#4600)
  • feat: Add required field on combined status responses (#4586)
  • build: Bump github.com/ProtonMail/go-crypto from 1.4.1 to 1.5.1 in /example (#4602)
  • feat: Add Agents variables API (#4587)
  • feat: Add ListPublicEmails (#4595)
  • build: Bump codecov/codecov-action from 7.0.0 to 7.1.1 (#4593)
  • chore: Report stale entries in openapi_operations.yaml (#4589)
  • chore: Update openapi_operations.yaml (#4588)
  • chore: Update maintenance tooling (#4580)
  • docs: Add Trung Huynh Chi to AUTHORS (#4582)
  • feat: Check request body fields against OpenAPI (#4576)
  • docs: Add Sushant Poudel to AUTHORS (#4579)
  • docs: Fix go-githubauth GitHub App example (#4578)
  • chore: Consolidate Dependabot PRs (#4575)
  • feat: Support explicit custom property values (#4561)
  • feat: Support Changes and Enterprise fields on ReleaseEvent (#4558)
  • fix: Reject an upload URL whose host differs from the configured upload host (#4556)
  • chore: Update dependencies (#4557)
  • feat: Add asynchronous SBOM support (#4543)
  • chore: Bump go-github from v91 to v92 in /scrape (#4555)

Don't miss a new go-github release

NewReleases is sending notifications on new releases.