Summary
Add a configure connection update subcommand for token rotation, endpoint changes, and org/enterprise updates without recreating the connection (which would lose scope configs and blueprint associations).
Design
gh devlake configure connection update --plugin gh-copilot --id 2 --token ghp_newtoken gh devlake configure connection update # interactive: show current values, prompt for changes
Interactive flow:
- List connections, user picks one
- Show current values (name, endpoint, org, enterprise, token masked)
- Prompt each field with current as default (Enter to keep)
- Test updated connection
- PATCH /plugins/{plugin}/connections/{id}
Changes
- Add
update subcommand under configure connection
- Add
UpdateConnection method to devlake.Client using PATCH
- Interactive: display current values, prompt for each with defaults
- Flag-based: only specified flags are updated, others kept
- Test connection after update
Acceptance Criteria
Summary
Add a
configure connection updatesubcommand for token rotation, endpoint changes, and org/enterprise updates without recreating the connection (which would lose scope configs and blueprint associations).Design
gh devlake configure connection update --plugin gh-copilot --id 2 --token ghp_newtoken gh devlake configure connection update # interactive: show current values, prompt for changesInteractive flow:
Changes
updatesubcommand underconfigure connectionUpdateConnectionmethod todevlake.Clientusing PATCHAcceptance Criteria
--tokenflag