diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7d9b009..78e7f27 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.10.0" + ".": "0.11.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 2101722..3db321a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,89 @@ # Changelog +## [0.11.0](https://github.com/compliance-framework/plugin-github-repositories/compare/v0.10.0...v0.11.0) (2026-10-28) + + +### ⚠ BREAKING CHANGES + +* **deps:** `UsersService.Unsuspend` now takes an `UnsuspendUserRequest` body argument. + - refactor!: Pass repository creation by value + ([#​4616](https://redirect.github.com/google/go-github/issues/4616)) + `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](https://redirect.github.com/google/go-github/issues/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`. + - refactor!: Pass the Projects v2 item body types by value and rename + them to `...Request` + ([#​4609](https://redirect.github.com/google/go-github/issues/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. + - refactor!: Rename `RepositoryCreateForkOptions` and + `RepositoryAddCollaboratorOptions` to `...Request` and pass them by + value + ([#​4607](https://redirect.github.com/google/go-github/issues/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. + - refactor!: Pass the Teams body types by value and rename them to + `...Request` + ([#​4606](https://redirect.github.com/google/go-github/issues/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`. + - refactor!: Pass the secret scanning body types by value and rename + them to `...Request` + ([#​4548](https://redirect.github.com/google/go-github/issues/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`. + - fix!: Match request body fields to the OpenAPI schemas + ([#​4581](https://redirect.github.com/google/go-github/issues/4581)) + Many required request body fields are now passed by + value. + - fix!: Send credentials only to configured origins + ([#​4564](https://redirect.github.com/google/go-github/issues/4564)) + 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](https://redirect.github.com/google/go-github/issues/4551)) + `OrganizationsService.CreateOrgInvitation` now takes + `CreateOrgInvitationRequest` (by value); + `CreateOrgInvitationRequest.TeamID` is now `TeamIDs`. + +### Bug Fixes + +* **deps:** bump agent to v0.9.3, workflows to v1.7.0 ([#39](https://github.com/compliance-framework/plugin-github-repositories/issues/39)) ([b53f42f](https://github.com/compliance-framework/plugin-github-repositories/commit/b53f42f55711862be4a336eb0f32a432e338c0ea)) +* **deps:** bump agent to v0.9.4 ([#42](https://github.com/compliance-framework/plugin-github-repositories/issues/42)) ([d3030e0](https://github.com/compliance-framework/plugin-github-repositories/commit/d3030e0031a6f4eeb8bacfff94acecebfa203b10)) +* **deps:** update all non-major dependencies ([#37](https://github.com/compliance-framework/plugin-github-repositories/issues/37)) ([b3768fa](https://github.com/compliance-framework/plugin-github-repositories/commit/b3768fa81c4dacbb49e2c91c3a9a7a261fcf2e00)) +* **deps:** update module github.com/google/go-github/v71 to v93 ([#40](https://github.com/compliance-framework/plugin-github-repositories/issues/40)) ([f471139](https://github.com/compliance-framework/plugin-github-repositories/commit/f471139b91601a0691dbaf44a64e5532c62ca1de)) +* **deps:** update module golang.org/x/net to v0.62.0 [security] ([#41](https://github.com/compliance-framework/plugin-github-repositories/issues/41)) ([abf3b5a](https://github.com/compliance-framework/plugin-github-repositories/commit/abf3b5a8d784123cbd63a51f87e7802a3dcd31ae)) + ## [0.10.0](https://github.com/compliance-framework/plugin-github-repositories/compare/v0.9.0...v0.10.0) (2026-10-14)