baton-github-enterprise: import the latest baton-github - #22
Conversation
Connector PR Review: baton-github-enterprise: import the latest baton-githubBlocking Issues: 0 | Suggestions: 1 | Threads Resolved: 0 Review SummaryThis PR bumps Security IssuesNone found. Correctness IssuesNone found. Suggestions
|
| func (d *defaultCapabilitiesBuilder) ResourceSyncers(_ context.Context) []connectorbuilder.ResourceSyncerV2 { | ||
| return []connectorbuilder.ResourceSyncerV2{ | ||
| connector.TeamBuilder(nil, nil, false), | ||
| connector.UserBuilder(nil, nil, nil, nil, nil, nil), | ||
| connector.RepositoryBuilder(nil, nil, false, false), | ||
| connector.OrgRoleBuilder(nil, nil), | ||
| connector.InvitationBuilder(connector.InvitationBuilderParams{}), | ||
| connector.APITokenBuilder(nil, nil), | ||
| connector.EnterpriseRoleBuilder(nil, nil, nil, nil), | ||
| connector.LicenseBuilder(nil, nil), | ||
| } |
There was a problem hiding this comment.
🟡 Suggestion: DefaultCapabilitiesBuilder omits OrgBuilder, which removes the org resource type (previously with CAPABILITY_PROVISION) from the advertised capabilities. The runtime GitHub.ResourceSyncers still includes OrgBuilder, so orgs are synced but no longer declared in baton_capabilities.json. Confirm this mismatch is intentional — if downstream systems use capabilities to determine expected resource types or provisioning support, removing org could be a breaking change (B5).
|
|
||
| // DefaultCapabilitiesBuilder returns a connector builder that registers the | ||
| // resource syncers relevant to GitHub Enterprise so the generated capabilities | ||
| // are complete regardless of connector configuration. OrgBuilder is omitted |
There was a problem hiding this comment.
why are orgs omitted for enterprise?
| @@ -1,6 +1,46 @@ | |||
| { | |||
There was a problem hiding this comment.
🟡 Suggestion: DefaultCapabilitiesBuilder now includes OrgBuilder (added in this commit), but baton_capabilities.json doesn't have an org resource type entry. The JSON should be regenerated so the checked-in capabilities match the builder.
fb8e42d to
79a80bf
Compare
…erprise role/API key resources Upgrades baton-sdk to v0.11.1 and baton-github to v0.3.7. Wires up a DefaultCapabilitiesBuilder that exposes the new resource syncers (license, enterprise role, API token) so capabilities advertise the full surface area. Regenerates baton_capabilities.json and updates docs/connector.mdx to match. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
79a80bf to
7f9e4cb
Compare
Uh oh!
There was an error while loading. Please reload this page.