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
Summary
Fix scope ID computation to match the incubator-devlake plugin's convention when enterprise is configured.
Changes
esolveEnterprise()\ helper (flag -> state file -> skip)
Acceptance Criteria