Skip to content

Upgrade google/go-github to v89 and refactor client initialization - #440

Merged
edmorley merged 1 commit into
buildpacks:mainfrom
chimanjain:upgrade-go-github
Jul 31, 2026
Merged

Upgrade google/go-github to v89 and refactor client initialization#440
edmorley merged 1 commit into
buildpacks:mainfrom
chimanjain:upgrade-go-github

Conversation

@chimanjain

Copy link
Copy Markdown
Contributor

Upgrade github.com/google/go-github dependency to version v89 (github.com/google/go-github/v89) and refactors GitHub API client initialization across all registry command entry points.

Key Changes

  • Dependency Upgrade: Updated github.com/google/go-github/v89 to v89.0.0 in go.mod and updated package imports across the codebase.
  • Client Initialization: Refactored github.NewClient(...) invocations across CLI tools to leverage github.WithAuthToken(t) for authentication, with proper error handling on client creation:
    • registry/add-entry/cmd/main.go
    • registry/yank-entry/cmd/main.go
    • registry/request-add-entry/cmd/main.go
    • registry/request-yank-entry/cmd/main.go
    • registry/verify-namespace-owner/cmd/main.go
  • Services & Mocks: Updated service interfaces and mocks in registry/internal/services to align with go-github/v89 types.
  • Regenerate all mocks using latest mockery v2, i.e. v2.53.6.
  • Refactored the deprecated function, i.e. github.String to github.Ptr.

Signed-off-by: Chiman Jain <chimanjain15@gmail.com>
@chimanjain
chimanjain requested review from a team and edmorley as code owners July 24, 2026 15:39
@edmorley edmorley added type:dependency-upgrade A dependency upgrade semver:patch A change requiring a patch version bump labels Jul 31, 2026

@edmorley edmorley left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

@edmorley
edmorley merged commit 8275f2e into buildpacks:main Jul 31, 2026
14 checks passed
@chimanjain
chimanjain deleted the upgrade-go-github branch July 31, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:patch A change requiring a patch version bump type:dependency-upgrade A dependency upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants