Add rename secret support (press R)#92
Merged
Merged
Conversation
Co-authored-by: karl-sjogren <875092+karl-sjogren@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add option to rename secrets in settings
Add rename secret support (press R)
Mar 14, 2026
karl-sjogren
approved these changes
Mar 14, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #92 +/- ##
===========================================
+ Coverage 69.92% 70.78% +0.86%
===========================================
Files 10 10
Lines 542 558 +16
Branches 91 94 +3
===========================================
+ Hits 379 395 +16
Misses 115 115
Partials 48 48 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This was referenced Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Secrets could be listed, added, edited, and deleted, but not renamed without a delete-then-add workaround. This adds first-class rename support.
Changes
Tool.cs— NewRenameSecretmethod: prompts key selection, then an editable name field pre-filled with the current name. Blocks rename if the target name already exists (no silent overwrites). Wired toRkey inHandleInput; help line updated accordingly.ToolTests.cs— Unit tests covering: successful rename, collision prevention, and Escape-to-cancel.ConsoleUIIntegrationTests.cs— Integration tests verifying filesystem persistence for both the happy path and the collision guard.Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.