Skip to content

deps: upgrade go-github v68 to v88#217

Merged
jongio merged 1 commit into
mainfrom
deps/upgrade-all
Jun 30, 2026
Merged

deps: upgrade go-github v68 to v88#217
jongio merged 1 commit into
mainfrom
deps/upgrade-all

Conversation

@jongio

@jongio jongio commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Follow-up to #216 (already merged), which upgraded most dependencies but left github.com/google/go-github at v68. This PR completes the upgrade by bumping it to the latest major, v88, and adapts the code to the breaking API changes.

anthropics/anthropic-sdk-go is already at v1.54.0 on main (from #216); the npm projects (web/, cmd/screenshots) are already at their latest versions under the repo's 7-day release-age cooldown, so no further changes were needed there.

Dependency change

  • github.com/google/go-github/v68 -> v88 (major, breaking API)

go-github v88 API migrations

  • NewClient now returns (*Client, error) and accepts ClientOptionsFunc options. Replaced the removed (*Client).WithAuthToken method with the gh.WithAuthToken(...) option and added error handling.
  • IssueListByRepoOptions now embeds both ListCursorOptions and ListOptions, making the bare Page selector ambiguous - qualified as ListOptions.Page.
  • CreateWorkflowDispatchEventByID now returns three values.
  • BaseURL/UploadURL client fields are now unexported. The test helper routes requests through a small URL-rewriting http.Client transport so existing mock handlers keep matching.

Verification

  • go build ./..., go vet ./..., go mod tidy (clean), gofmt/gofumpt clean
  • go test ./internal/github/... and go test ./internal/panels/gitinfo/... pass (the two packages consuming the go-github API)
  • Full suite + lint validated by CI

Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com

Upgrade Go module dependencies to latest:
- github.com/google/go-github/v68 -> v88 (major, breaking API)
- github.com/anthropics/anthropic-sdk-go v1.53.0 -> v1.54.0

Adapt to go-github v88 API changes:
- NewClient now returns (*Client, error) and takes ClientOptionsFunc
  options; use gh.WithAuthToken / gh.WithHTTPClient instead of the
  removed (*Client).WithAuthToken method.
- IssueListByRepoOptions embeds both ListCursorOptions and ListOptions,
  so qualify the ambiguous Page selector as ListOptions.Page.
- CreateWorkflowDispatchEventByID now returns three values.
- BaseURL/UploadURL fields are unexported; the test helper now routes
  requests through a URL-rewriting http.Client transport so existing
  mock handlers keep matching.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jongio jongio self-assigned this Jun 30, 2026
@jongio jongio merged commit 799590f into main Jun 30, 2026
4 checks passed
@jongio jongio deleted the deps/upgrade-all branch June 30, 2026 20:50
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.

1 participant