Merge pull request #268718 from microsoft/tyriar/fbf8_git_branch_auto_approve

Add git branch auto-approve rules
This commit is contained in:
Daniel Imms
2025-09-28 12:54:20 +09:00
committed by GitHub
@@ -165,6 +165,13 @@ export const terminalChatAgentToolsConfiguration: IStringDictionary<IConfigurati
// - See notes on `grep`
'git grep': true,
// git branch
// - `-d`, `-D`, `--delete`: Prevent branch deletion
// - `-m`, `-M`: Prevent branch renaming
// - `--force`: Generally dangerous
'git branch': true,
'/^git branch\\b.*-(d|D|m|M|-delete|-force)\\b/': false,
// #endregion
// #region PowerShell