-
Notifications
You must be signed in to change notification settings - Fork 4
Add configure connection update command #11
Copy link
Copy link
Closed
Description
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
updatesubcommand underconfigure connection - Add
UpdateConnectionmethod todevlake.Clientusing 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
- Token rotation works via
--tokenflag - Interactive mode shows current values
- Only changed fields are sent in PATCH
- Connection tested after update
- State file updated with new values
Reactions are currently unavailable
Metadata
Metadata
Labels
enhancementNew feature or requestNew feature or request