Go library for accessing the GitHub v3 API
Repo google/go-github, read from GitHub 11 h ago. google has not joined Take My Repo.
This release contains the following breaking API changes:
reason in UsersService.Unsuspend (#4614)UsersService.Unsuspend now takes an UnsuspendUserRequest body argument.RepositoriesService.Create now requires a CreateRepositoryRequest value instead of a *Repository.LockIssueOptions, PullRequestBranchUpdateOptions, and UserSuspendOptions to ...Request and pass them by value (#4612)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....Request (#4609)AddProjectItemOptions and UpdateProjectItemOptions are renamed to AddProjectItemRequest and UpdateProjectItemRequest and passed by value; AddProjectItemRequest.Type is no longer a pointer; UpdateProjectItemOptions.Archived is removed.RepositoryCreateForkOptions and RepositoryAddCollaboratorOptions to ...Request and pass them by value (#4607)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....Request (#4606)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....Request (#4548)SecretScanningAlertUpdateOptions and SecretScanningPatternConfigsUpdateOptions are renamed to UpdateSecretScanningAlertRequest and UpdateSecretScanningPatternConfigsRequest; SecretScanningService.UpdateAlert, UpdatePatternConfigsForEnterprise and UpdatePatternConfigsForOrg now take them by value; UpdateSecretScanningAlertRequest.State is now *string.BasicAuthTransport and UnauthenticatedRateLimitedTransport gained AllowedOrigins, which GitHub Enterprise users must set.OrganizationsService.CreateOrgInvitation now takes CreateOrgInvitationRequest (by value); CreateOrgInvitationRequest.TeamID is now TeamIDs....and the following additional changes:
dismissal_restriction to PullRequestRuleParameters (#4599)ListPublicEmails (#4595)This release contains the following breaking API changes:
...Request (#4540)CreateCodespaceOptions, CodespaceCreateForUserOptions, UpdateCodespaceOptions and PublishCodespaceOptions are renamed to CreateCodespaceRequest, CreateCodespaceForUserRequest, UpdateCodespaceRequest and PublishCodespaceRequest; CodespacesService.CreateInRepo, CreateFromPullRequest, Create, Update and Publish now take them by value instead of by pointer; CreateCodespaceForUserRequest.RepositoryID is now *int64.DependencyGraphSnapshot to CreateDependencyGraphSnapshotRequest and pass by value (#4519)DependencyGraphSnapshot is now CreateDependencyGraphSnapshotRequest with field pointer/value changes.EnterpriseService.ListBudgets now takes EnterpriseListBudgetsOptions.RepositoryComment request bodies and pass by value (#4496)RepositoriesService.CreateComment now takes CreateCommitCommentRequest and RepositoriesService.UpdateComment takes UpdateCommitCommentRequest, both passed by value instead of *RepositoryComment....and the following additional changes:
This release contains the following breaking API changes:
EditComment to UpdateComment on PullRequestsService, split review comment request bodies, and pass by value (#4493)PullRequestsService.CreateComment now takes CreatePullRequestCommentRequest by value; PullRequestsService.EditComment is now UpdateComment and takes UpdatePullRequestCommentRequest by value.Key request bodies into CreateDeployKeyRequest, CreateUserKeyRequest and CreateSSHSigningKeyRequest and pass by value (#4477)RepositoriesService.CreateKey, UsersService.CreateKey and UsersService.CreateSSHSigningKey now take CreateDeployKeyRequest, CreateUserKeyRequest and CreateSSHSigningKeyRequest by value.PendingDeploymentsRequest and ReviewCustomDeploymentProtectionRuleRequest by value (#4475)ActionsService.PendingDeployments and ActionsService.ReviewCustomDeploymentProtectionRule now take PendingDeploymentsRequest and ReviewCustomDeploymentProtectionRuleRequest by value.EditComment to UpdateComment on IssuesService, pass a new IssueCommentRequest by value, and add missing IssueComment fields (#4444)IssuesService.CreateComment now takes IssueCommentRequest by value; IssuesService.EditComment is now UpdateComment and takes IssueCommentRequest by value.ImpersonateUserOptions to CreateUserImpersonationRequest and pass by value (#4462)AdminService.CreateUserImpersonation now takes CreateUserImpersonationRequest by value instead of *ImpersonateUserOptions.CreateTeam and UpdateTeamBy* now take new body params by value.EditMilestone to UpdateMilestone, split Milestone request bodies into CreateMilestoneRequest and UpdateMilestoneRequest, and pass by value (#4438)IssuesService.CreateMilestone now takes a new CreateMilestoneRequest by value; IssuesService.EditMilestone is now UpdateMilestone and takes a new UpdateMilestoneRequest by value.UpdatePreReceiveHook request body by value via new UpdatePreReceiveHookRequest (#4434)RepositoriesService.UpdatePreReceiveHook now takes a new UpdatePreReceiveHookRequest by value instead of *PreReceiveHook.UsersService.Edit to Update, introduce UserUpdateRequest, and pass request by value (#4433)UsersService.Edit is now Update and uses a new UserUpdateRequest body value.UpdateUserLDAPMappingRequest and UpdateTeamLDAPMappingRequest (#4432)AdminService.UpdateUserLDAPMapping and UpdateTeamLDAPMapping now take UpdateUserLDAPMappingRequest and UpdateTeamLDAPMappingRequest (with non-pointer LDAPDN) by value....and the following additional changes:
MergeAsync and GetMergeAsyncResult support (#4491)Client.Do response decoding with a buffer pool (#4494)paramcheck allowlist entries (#4476)public toggle on repository visibility rules (#4455)Fprintf in fmtpercentv linter check (#4443)User entry from the paramcheck allowlist (#4437)openapi_operations.yaml (#4430)This release contains the following breaking API changes:
UpdateConnectedExternalGroup request body by value via new UpdateConnectedExternalGroupRequest (#4425)TeamsService.UpdateConnectedExternalGroup now takes UpdateConnectedExternalGroupRequest (with non-pointer GroupID) by value.PullRequestReviewDismissalRequest to PullRequestDismissReviewRequest, add PullRequestSubmitReviewRequest, and pass review request bodies by value (#4406)PullRequestReviewDismissalRequest is now PullRequestDismissReviewRequest with non-pointer Message and PullRequestsService.DismissReview takes it by value; PullRequestsService.SubmitReview now takes a new PullRequestSubmitReviewRequest.CreateOrUpdateCustomRepoRoleOptions into CreateCustomRepoRoleRequest and UpdateCustomRepoRoleRequest and pass by value (#4401)CreateOrUpdateCustomRepoRoleOptions is split into CreateCustomRepoRoleRequest (with non-pointer Name and BaseRole) and UpdateCustomRepoRoleRequest; OrganizationsService.CreateCustomRepoRole and UpdateCustomRepoRole now take these request types by value.EditLabel to UpdateLabel, Split Label into CreateLabelRequest & UpdateLabelRequest and pass by value (#4400)IssuesService.CreateLabel now takes CreateLabelRequest by value (with required non-pointer Name); IssuesService.EditLabel renamed to UpdateLabel, taking an UpdateLabelRequest by value.AutolinkOptions to CreateAutolinkRequest, AddAutolink to CreateAutolink, and pass the body by value (#4399)AutolinkOptions is now CreateAutolinkRequest with non-pointer KeyPrefix and URLTemplate; RepositoriesService.AddAutolink is now CreateAutolink and passes body by value.IssueRequest into CreateIssueRequest & UpdateIssueRequest and pass by value (#4396)IssueService.Edit is renamed to IssueService.Update.NewPullRequest to CreatePullRequest and pass it by value (#4395)NewPullRequest is renamed to CreatePullRequest, PullRequests.Create now takes it by value, and CreatePullRequest.Head and CreatePullRequest.Base are now string.SarifAnalysis by value (#4394)CodeScanningService.UploadSarif now takes body by value and its required fields are no longer pointers.CreateDeploymentBranchPolicyRequest and UpdateDeploymentBranchPolicyRequest by value (#4382)RepositoriesService.CreateDeploymentBranchPolicy and UpdateDeploymentBranchPolicy now take body by value and the required Name field is of type string.TemplateRepoRequest by value in Repositories.CreateFromTemplate (#4378)RepositoriesService.CreateFromTemplate now passes body by value and Name is now required and passed by value.RepositoryMergeRequest and RepoMergeUpstreamRequest by value (#4372)RepositoriesService.Merge and RepositoriesService.MergeUpstream now pass body by value and required struct fields are now values.DependabotService methods involving secrets have new params and return values....and the following additional changes:
MetaService.ListAPIVersions (#4422)DeleteCodeQLDatabase for code scanning (#4421)Stack field to PullRequest for stacked pull requests (#4423)search_type support to issue search (#4414)This release contains the following breaking API changes:
DeploymentRequest and DeploymentStatusRequest by value (#4361)CreateDeployment and CreateDeploymentStatus now take DeploymentRequest and DeploymentStatusRequest by value; DeploymentRequest.Ref and DeploymentStatusRequest.State are now string, and DeploymentRequest.RequiredContexts is now []string.HookConfig by value and rename EditHookConfiguration to UpdateHookConfiguration (#4360)EditHookConfiguration is renamed to UpdateHookConfiguration on RepositoriesService and OrganizationsService; these methods and AppsService.UpdateHookConfig now take HookConfig by value.OIDCSubjectClaimCustomTemplate by value in the OIDC subject-claim Set methods (#4340)SetOrgOIDCSubjectClaimCustomTemplate and SetRepoOIDCSubjectClaimCustomTemplate now take their body params by value.ActionsService methods involving variables have new params and return values.ActionsService methods involving secrets have new params and return values.CreateJITConfigRequest by value and rename Generate*JITConfig to Create*JITConfig (#4337)Generate*JITConfig to Create*JITConfig, and they now take CreateJITConfigRequest (renamed from GenerateJITConfigRequest) by value instead of by pointer.EditReleaseAsset to UpdateReleaseAsset (#4336)GenerateReleaseNotes now takes GenerateNotesRequest by value (renamed from GenerateNotesOptions); EditReleaseAsset is renamed to UpdateReleaseAsset and takes UpdateReleaseAssetRequest by value.EditRelease to UpdateRelease (#4329)CreateRelease & UpdateRelease now take RepositoryRelease by value; EditRelease is renamed to UpdateRelease.GistsService required params by value (#4320)GistsService methods now pass required params by-value instead of by-ref.UpdateProvisionedOrgMembership and UpdateAttributeForSCIMUser params and return values changed.LicenseStatus response and Supportkey type (#4297)LicenseStatus.SupportKey type changed from *string to *bool and License return type is no longer a slice.SelectedRepositoryIDs []int64 is now Repositories []string in *AppInstallationRepositoriesOptions....and the following additional changes:
AccessSource to Team (#4344)CONTRIBUTING.md (#4341)org and org_id can be an array (#4333)openapi_operations.yaml (#4331)time.Date with referenceTime (#4325)ProjectV2Item.UnmarshalJSON (#4323)GetBody on uploads for HTTP/2 retry (#4318)AbuseRateLimitError.Is (#4292)&x variables with inline Ptr(value) calls (#4289)GetOrgAICreditUsage and GetUserAICreditUsage endpoints (#4282)testJSONBody helper for request body assertions (#4283)Repository (#4268)RequiredReviewer unmarshal (#4270)openapi_operations.yaml (#4265)This release contains the following breaking API changes:
Find* methods to Get* (#4243)Find* to Get*....and the following additional changes:
openapi_operations.yaml (#4242)GetParentIssue for sub-issues (#4232)