Skip to content

Copilot/migrate to api version 2026 03 10#4089

Draft
maxffarrell wants to merge 7 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 7 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>
@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

❌ Patch coverage is 77.50000% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.64%. Comparing base (39ef794) to head (b6ace06).

Files with missing lines Patch % Lines
example/verifyartifact/main.go 0.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4089      +/-   ##
==========================================
- Coverage   93.67%   93.64%   -0.03%     
==========================================
  Files         211      211              
  Lines       19478    19487       +9     
==========================================
+ Hits        18246    18249       +3     
- Misses       1034     1040       +6     
  Partials      198      198              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@maxffarrell maxffarrell deleted the copilot/migrate-to-api-version-2026-03-10 branch March 13, 2026 18:40
@maxffarrell maxffarrell restored the copilot/migrate-to-api-version-2026-03-10 branch March 13, 2026 18:41
@maxffarrell maxffarrell reopened this Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants