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`.
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.
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.
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`.
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`.
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.
BREAKING CHANGE: `OrganizationsService.CreateOrgInvitation` now takes `CreateOrgInvitationRequest` (by value); `CreateOrgInvitationRequest.TeamID` is now `TeamIDs`.
BREAKING CHANGE: `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`.
BREAKING CHANGE: `RepositoriesService.CreateComment` now takes `CreateCommitCommentRequest` and `RepositoriesService.UpdateComment` takes `UpdateCommitCommentRequest`, both passed by value instead of `*RepositoryComment`.