Skip to content

Copilot/migrate to api version 2026 03 10#4089

Draft
maxffarrell wants to merge 6 commits intogoogle:masterfrom
maxffarrell:copilot/migrate-to-api-version-2026-03-10
Draft

Copilot/migrate to api version 2026 03 10#4089
maxffarrell wants to merge 6 commits intogoogle:masterfrom
maxffarrell:copilot/migrate-to-api-version-2026-03-10

Conversation

@maxffarrell
Copy link

Adopts all breaking changes from the GitHub REST API version 2026-03-10, removing fields the API no longer returns and adding new ones.

Breaking field removals

  • Repository: HasDownloads, MasterBranch, UseSquashPRTitleAsDefault
  • Issue / IssueRequest: singular Assignee — use Assignees []string
  • PullRequest: singular Assignee, MergeCommitSHA
  • NewTeam: Permission
  • CreateEvent / PushEventRepository: MasterBranch, HasDownloads
  • Attestation: Bundle json.RawMessage → replaced by BundleURL *string

New fields

  • AdvisoryCvssSeverities type (with CvssV3, CvssV4) added to DependabotSecurityAdvisory and SecurityAdvisory

Behavioral change

DeleteInstallation now returns HTTP 202 Accepted instead of 204 No Content. The implementation transparently handles AcceptedError as success so callers see no change.

Version bump

// github/github.go
defaultAPIVersion = "2026-03-10"  // was "2022-11-28"

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI and others added 2 commits March 12, 2026 20:51
Co-authored-by: maxffarrell <72176209+maxffarrell@users.noreply.github.com>
@google-cla
Copy link

google-cla bot commented Mar 12, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

maxffarrell and others added 4 commits March 12, 2026 21:01
Rename CVSS struct fields to use all-caps initialism (CvssV3 → CVSSV3,
CvssV4 → CVSSV4, CvssSeverities → CVSSSeverities), update the
verifyartifact example to fetch bundles via BundleURL instead of the
removed Bundle field, and fix gci formatting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants