Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate commit message #359

Closed
askpt opened this issue Aug 11, 2023 · 11 comments
Closed

Generate commit message #359

askpt opened this issue Aug 11, 2023 · 11 comments
Assignees
Labels
feature-request Request for new features or functionality
Milestone

Comments

@askpt
Copy link

askpt commented Aug 11, 2023

As part of the GH Copilot chat, it would be interesting to have the option to generate commit messages.

The idea behind this is to take the commit diff into consideration and give a small explanation of what happened. The inverse of the Fix this prompt.

@github-actions github-actions bot added the triage-needed Issues needing to be assigned to the prospective feature owner label Aug 11, 2023
@ulugbekna ulugbekna added feature-request Request for new features or functionality and removed triage-needed Issues needing to be assigned to the prospective feature owner labels Aug 17, 2023
@lszomoru lszomoru added this to the October 2023 milestone Nov 1, 2023
@lszomoru
Copy link
Member

lszomoru commented Nov 1, 2023

Support for generating commit messages is included in the October 2023 release.

@lszomoru lszomoru closed this as completed Nov 1, 2023
@MattJeanes
Copy link

It would be great to also have an option or customizable pre-prompt we can have to allow a certain style of commit message e.g. conventional commits

@digitarald
Copy link
Contributor

@MattJeanes love the idea, showing it prior message styles could also help here. Could you please file a follow-up issue, as this one is closed?

@MattJeanes
Copy link

Raised! #526

@jorupp
Copy link

jorupp commented Nov 6, 2023

Support for generating commit messages is included in the October 2023 release.

Is there a way to disable this button? Adding a new button in the tab order between the box where you type the commit message and the "commit" button is messing with my workflow :( I'm too used to hitting typing something in the box, hitting tab, and enter and having it commit, not overwrite the message I just spent time writing with a generated message.

And/or have it prompt before overwriting the user-written content there?

@kpostekk
Copy link

kpostekk commented Nov 7, 2023

Is there any option to disable this button? I'm used to hitting tab enter after typing my commit message. Also replacing user's message without option to undo this promt is straight annoying.

Edit: downgrading copilot chat to 0.8 does the trick

@lszomoru
Copy link
Member

Sorry for not chiming in on the issue earlier:

  1. The latest VS Code Insides release contains a new setting to globally disable the source control input box action button independent of the extensions that contribute the action - scm.showInputActionButton. The setting will be available in VS Code Stable towards the end of next week.
  2. In the latest VS Insiders, generated commit messages are also being pushed to the undo stack. If you hit the generate commit message by mistake, and your commit message is overwritten, you can invoke the "Undo" command to get back the message that was overwritten. This will also be available in VS Code Stable next week.
  3. As far as committing using keyboard shortcuts, you can also use Cmd+ENTER, Ctrl+ENTER

@ionTea
Copy link

ionTea commented Dec 7, 2023

Would it be possible to select a message style? For example a commitizen style message

@lszomoru
Copy link
Member

lszomoru commented Dec 7, 2023

Yes, we are looking at including previous commit messages from the author/repository into the prompt context to have Copilot generate commit messages that match the style of the existing commit messages. We are also looking at exposing the git diff information so that users can write their custom prompt which would generate a commit message.

@julien-blanchon
Copy link

Yes, we are looking at including previous commit messages from the author/repository into the prompt context to have Copilot generate commit messages that match the style of the existing commit messages. We are also looking at exposing the git diff information so that users can write their custom prompt which would generate a commit message.

@lszomoru Any update on this ?

@lszomoru
Copy link
Member

@julien-blanchon,

  • yes previous commit messages are now included in the prompt context.
  • the capability to write custom prompts to generate the commit message is not available

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Aug 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

9 participants