Repository navigation
Migrate baton-github to go-github v93 - #197
Conversation
Co-authored-by: c1-squire-dev[bot] <c1-squire-dev[bot]@users.noreply.github.com>
Superseded — see the current review report for commit
|
Superseded — see the current review report for commit
|
There was a problem hiding this comment.
No blocking issues found — see the full review report
Co-authored-by: c1-squire-dev[bot] <c1-squire-dev[bot]@users.noreply.github.com>
Superseded — see the current review report for commit
|
Superseded — see the current review report for commit
|
There was a problem hiding this comment.
No blocking issues found — see the full review report
Replace calls marked for inlining by go-github v93 with the standard new(value) syntax supported by the connector toolchain. Co-authored-by: c1-squire-dev[bot] <c1-squire-dev[bot]@users.noreply.github.com>
Superseded — see the current review report for commit
|
Connector PR Review: Migrate baton-github to go-github v93Blocking Issues: 0 | Suggestions: 0 | Threads Resolved: 0 Review SummaryThe new commit (
I applied the repo-local criteria wherever they were relevant:
Coverage gap: I didn't review the 233 Security IssuesNone found. Correctness IssuesNone found. SuggestionsNone. Reviewed commit: |
There was a problem hiding this comment.
No blocking issues found — see the full review report
Migrate baton-github from go-github v69 to v93. The new client API takes construction options and returns errors; the connector now sets its existing HTTP transport and GitHub Enterprise URLs during construction. Custom enterprise endpoints continue to build URLs from a parsed
url.URLand escaped path segments.v93 also changes collaborator permissions from a map to typed fields. The connector explicitly maps the five GitHub flags back to its existing entitlement names, with a regression test for nil/false/all-true values. Organization invitations, team membership, repository collaborator grants, and role requests use v93's request types and signatures. The exported
customclient.Newsignature remains unchanged.The connector's PAT and GitHub App token-refresh transports remain in place; this PR changes the go-github API layer without replacing those authentication flows. The v69 module is no longer needed by this repository after
go mod tidy.Validation:
go test ./...andgo build ./cmd/baton-githubpassed. Localmake lintcould not start because the installed golangci-lint binary was built with Go 1.26, below this repo's Go 1.27.3 target; CI lint remains required.