This release contains the following breaking API changes:
- refactor!: Pass
UpdateConnectedExternalGrouprequest body by value via newUpdateConnectedExternalGroupRequest(#4425)
BREAKING CHANGE:TeamsService.UpdateConnectedExternalGroupnow takesUpdateConnectedExternalGroupRequest(with non-pointerGroupID) by value. - refactor!: Rename
PullRequestReviewDismissalRequesttoPullRequestDismissReviewRequest, addPullRequestSubmitReviewRequest, and pass review request bodies by value (#4406)
BREAKING CHANGE:PullRequestReviewDismissalRequestis nowPullRequestDismissReviewRequestwith non-pointerMessageandPullRequestsService.DismissReviewtakes it by value;PullRequestsService.SubmitReviewnow takes a newPullRequestSubmitReviewRequest. - refactor!: Split
CreateOrUpdateCustomRepoRoleOptionsintoCreateCustomRepoRoleRequestandUpdateCustomRepoRoleRequestand pass by value (#4401)
BREAKING CHANGE:CreateOrUpdateCustomRepoRoleOptionsis split intoCreateCustomRepoRoleRequest(with non-pointerNameandBaseRole) andUpdateCustomRepoRoleRequest;OrganizationsService.CreateCustomRepoRoleandUpdateCustomRepoRolenow take these request types by value. - refactor!: Rename
EditLabeltoUpdateLabel, SplitLabelintoCreateLabelRequest&UpdateLabelRequestand pass by value (#4400)
BREAKING CHANGE:IssuesService.CreateLabelnow takesCreateLabelRequestby value (with required non-pointerName);IssuesService.EditLabelrenamed toUpdateLabel, taking anUpdateLabelRequestby value. - refactor!: Rename
AutolinkOptionstoCreateAutolinkRequest,AddAutolinktoCreateAutolink, and pass the body by value (#4399)
BREAKING CHANGE:AutolinkOptionsis nowCreateAutolinkRequestwith non-pointerKeyPrefixandURLTemplate;RepositoriesService.AddAutolinkis nowCreateAutolinkand passesbodyby value. - refactor!: Split
IssueRequestintoCreateIssueRequest&UpdateIssueRequestand pass by value (#4396)
BREAKING CHANGE:IssueService.Editis renamed toIssueService.Update. - refactor!: Rename
NewPullRequesttoCreatePullRequestand pass it by value (#4395)
BREAKING CHANGE:NewPullRequestis renamed toCreatePullRequest,PullRequests.Createnow takes it by value, andCreatePullRequest.HeadandCreatePullRequest.Baseare nowstring. - refactor!: Pass
SarifAnalysisby value (#4394)
BREAKING CHANGE:CodeScanningService.UploadSarifnow takesbodyby value and its required fields are no longer pointers. - refactor!: Pass
CreateDeploymentBranchPolicyRequestandUpdateDeploymentBranchPolicyRequestby value (#4382)
BREAKING CHANGE:RepositoriesService.CreateDeploymentBranchPolicyandUpdateDeploymentBranchPolicynow takebodyby value and the requiredNamefield is of typestring. - refactor!: Pass
TemplateRepoRequestby value inRepositories.CreateFromTemplate(#4378)
BREAKING CHANGE:RepositoriesService.CreateFromTemplatenow passesbodyby value andNameis now required and passed by value. - refactor!: Pass
RepositoryMergeRequestandRepoMergeUpstreamRequestby value (#4372)
BREAKING CHANGE:RepositoriesService.MergeandRepositoriesService.MergeUpstreamnow passbodyby value and required struct fields are now values. - feat!: Refactor dependabot secrets to pass request by value (#4348)
BREAKING CHANGE:DependabotServicemethods involving secrets have new params and return values.
...and the following additional changes:
- chore: Bump version of go-github to v90.0.0 (#4428)
- docs: Clarify assisted contribution expectations (#4427)
- feat: Add org level secret scanning custom patterns support (#4426)
- feat: Add
MetaService.ListAPIVersions(#4422) - feat: Add
DeleteCodeQLDatabasefor code scanning (#4421) - feat: Add
Stackfield toPullRequestfor stacked pull requests (#4423) - build: Bump GitHub workflow action versions (#4424)
- feat: Add
search_typesupport to issue search (#4414) - chore: Update SecurityAdvisory structs with new fields (#4413)
- chore: Consolidate Dependabot PRs (#4418)
- feat: Support OIDC custom property claims for Actions (#4411)
- feat: Add repo-level secret scanning custom patterns support (#4397)
- chore: Update openapi_operations.yaml (#4412)
- chore: Fix comment typo (#4410)
- chore: Update dependabot changes (#4405)
- chore: Update openapi_operations.yaml (#4398)
- feat: Add remaining Projects v2 endpoints (#4319)
- chore: Update Dependabot-driven dependencies (#4393)
- chore: Bump /example dependencies (#4380)
- chore: Fix flaky tests with deterministic runs (#4377)
- build(deps): Bump golang.org/x/sync from 0.21.0 to 0.22.0 in /tools (#4376)
- chore: Fix flaky unit test (#4374)
- fix: Enable submitting empty allowlist for actions permissions patterns (#4371)
- feat: Add GitHub App Enterprise perm scope (#4343)
- chore: Bump go-github from v88 to v89 in /scrape (#4370)