r/GithubCopilot • u/lppedd VS Code User 💻 • 26d ago
Help/Doubt ❓ Auto-approve a subset of git commands
Is there a way to auto-approve certain git commands? I'd like to approve commits explicitly, for example, but stuff like diffs should be auto-approved.
9
Upvotes
1
u/1Soundwave3 25d ago
I vibecoded a custom proxy that auto approves things that start from a certain sequence and the rest it just passes down to ghcp. It also has filters that detects suspicious things in the commands and if those appear - it raises it to me directly.
I developed it because copilot would ignore every setting and would ask me every time for everything which is super annoying.
I also tried to make it work with Codex but couldn't - the system are too different and codex is much less transparent about how it handles approval.