getcursor / cursor

The AI Code Editor
https://cursor.com
25.74k stars 1.6k forks source link

[Feature Request] Add "current branch name" to @git command #2250

Open mutoe opened 1 month ago

mutoe commented 1 month ago

Is your feature request related to a problem? Please describe. I use Cursor chat to generate the commit message and it works fine, but one problem is that my project uses a commit message specific prefix which is related to the current branch name. Currently I have to manually tell AI what the prefix is

Describe the solution you'd like If possible, I can automatically read the current branch name via @git current branch name and pass it to the AI

Additional context N/A

rienzcovertech commented 1 month ago

I also needed this as I put the ticket number at the end of my commits so it's connected with Jira Tickets or Github Issues.

example

fix(contact): update contact through type to set #TICKET-123