-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Summary
Fix scope ID computation to match the incubator-devlake plugin's convention when enterprise is configured.
Changes
- Add \Enterprise\ field to \CopilotScope\ struct in \internal/devlake/types.go\
- Implement \copilotScopeID(org, enterprise)\ helper with correct logic:
- Enterprise + Org -> \�nterprise/org\
- Enterprise only -> \�nterprise\
- Org only -> \org\
- Update \putCopilotScope\ and \scopeCopilot\ to accept and pass enterprise parameter
- Thread enterprise through all configure commands (scopes, projects, full)
- Add --enterprise\ flag to \configure scopes\ and \configure projects\ commands
- Add
esolveEnterprise()\ helper (flag -> state file -> skip) - Add \Organization/\Enterprise\ fields to \Connection\ struct for API responses
Acceptance Criteria
- \copilotScopeID\ unit tests pass for all edge cases (7 cases)
- Org-only scope: ID = \my-org\
- Enterprise+Org scope: ID = \my-enterprise/my-org\
- Enterprise-only scope: ID = \my-enterprise\
- State file persists enterprise and auto-resolves on subsequent commands
- Blueprint references correct scope ID
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request