Repository navigation
Conversation
|
👋 Hi, and thank you for this contribution! This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can. You can help us prioritize by joining the discussion on open issues and PRs, sharing details on the changes you need, and reviewing other contributions. 🤖 This is an automated message. |
|
@adamcrews I'm already working on a PR for |
No worries. I saw that #3685 had been closed, but no other PR's referencing v93 yet. I'm happy to close this one if it's not needed. My main goal is to get v93 in so I can add the variable and secrets management for copilot cloud agents. |
|
@adamcrews notice that v93 has major implications for GHES and GHEC authentication and can't be upgraded to without understanding how to integrate those |
Migrate to the v93 request types. Repository creation now builds a CreateRepositoryRequest from the expanded repository object, mapping the same fields go-github v92 copied internally so the request body is unchanged. A unit test fails if a request field is left unmapped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
2bac8f9 to
057bdcb
Compare
|
Should we close this one since @stevehipwell is already working on it? |
Unblocks #3698 (
dismissal_restrictionon rulesetpull_requestrules needs types that first ship in go-github v93).Supersedes #3685, which made the same bump and was closed by its author without merging.
Allows for implementing secrets and variable management for Copilot Agents.
Before the change?
go-githubv92.After the change?
go-githubv93.0.0. No user-facing behaviour changes.RepositoriesService.Createnow takes aCreateRepositoryRequest.expandCreateRepositoryRequestmaps the same fields v92 copied internally, so the create body is unchanged. Unlike chore: Update go-github to v93.0.0 #3685, the mapper also copiesPrivate,TeamID,UseSquashPRTitleAsDefaultandCustomProperties. The provider doesn't set these today, so this is for completeness, not a behaviour fix.TestExpandCreateRepositoryRequestcovers the mapping (the regression coverage Copilot asked for on chore: Update go-github to v93.0.0 #3685). It fills every pointer field thatRepositoryshares with the request and fails if any field isn't carried over, or if the request gains a field with noRepositorycounterpart.AddCollaboratorRequest,AddTeamMembershipRequest,AddTeamRepoRequest,CreateForkRequest) now take pointer fields. Every value comes from a schema field with a non-empty default, so the request bodies are unchanged.mainafter theinternal/ghclientrefactor (feat: Refactor new client #3739). The new client code only needed the import bump. Test helpers thatmainadded or changed since then now use the v93 request types, andresource_github_actions_organization_permissions.gokeepsmain's rewrite withEnabledRepositoriesas a plain string.make lintcheckandmake lintcheck-newpass.make testhas three failures, and all three also fail onmainwithout this change:TestAccDataSourceGithubOrganizationSecurityManagerspanics with a nil pointer,TestParseRetryAftergets 0s instead of 10m, andTestNewSource/errors/cache_path_shared_with_another_sourceis flaky and failed 6 of 8 runs onmain. I haven't run the acceptance tests for this change.This PR was prepared with AI assistance (Claude). However, this has been human reviewed, and we have been running this in our environment for a few weeks now.
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!