Detect protected branch
Either with the MCP server or neon CLI, I need to detect if a branch is protected. I'm using cursor hooks to prevent certain actions from being taken on protected branches. Currently, I have to manually list the protected branches. I would like MCP or CLI support to dynamically detect protection status and block actions accordingly.
https://cursor.com/docs/agent/hooks
2 Replies
sensitive-blue•3w ago
Adding this to the list of feature requests, thanks for sharing🙏
quickest-silverOP•3w ago
Thanks, @Sam! It would also be great to see some out-of-the-box protections for things like this. Thanks!