vscode-copilot-release icon indicating copy to clipboard operation
vscode-copilot-release copied to clipboard

How to disable semantic commit messages?

Open grooveshaker opened this issue 9 months ago • 7 comments

I made an update just a few days ago and now when I use the “Generate commit message with Copilot” feature, I get the messages chore: and feat: in the commit message. I am not a fan of this feature, but is there any way to prevent these messages from being output? I have looked in past issues and looked in the settings but have not found a solution. Thank you in advance.

My VSCode version is 1.89.1 GitHub Copilot version is v1.191.0

grooveshaker avatar May 14 '24 11:05 grooveshaker

I'am experiencing the same issue. Not sure if it is a bug or feature, but I don't like the change.

jira-zz avatar May 16 '24 12:05 jira-zz

Can you confirm that other commits in the repo you are working in are not using semantic commit formatting?

digitarald avatar May 30 '24 16:05 digitarald

Sure. There was a commit message generated using Copilot in the version just prior to the drafting of this issue. Unfortunately, this repository is private, so the commits cannot be shared, but when these commits were soft reset and re-committed identically, the commit messages certainly did not contain semantic commit messages. Am I right in saying that if I don't want to include semantic commit messages in a commit message, I must first manually edit the commit message, but at some point the semantic commit message will no longer be included? Does this mean that Copilot is generating commit messages based on previous commit messages in addition to the staged changes?

grooveshaker avatar Jun 01 '24 01:06 grooveshaker

As it turns out, past commit messages do not seem to be affected.

When I tried it on my unpublished old repository, it outputs a commit message that contains those keywords, even though I had never written a commit message containing chore or fix before. However, I am now wondering if it is inevitable because it is an LLM product, since chore may not be included depending on the contents of the commit.

However, considering that these commit messages were not included at all before, I have to assume that there must have been some changes due to the version upgrade.

grooveshaker avatar Jun 09 '24 06:06 grooveshaker

I have the same Problem. Nobody wrote any commit message like that. I searched my codebase and the word "chore" comes up 0 times...

DEAD1SIDE avatar Jul 29 '24 06:07 DEAD1SIDE

I am a little disappointed that this ticket is not getting any support comments especially since Copilot is not just an open source but a monthly service.

It would be nice if there was an item that could set a pre-specified prompt for the commit message, like the Negative Prompt in Stable Diffusion, for example.

{
    "github.copilot.promptsCommitMessage": {
        "semanticMessage": false
    }
}

grooveshaker avatar Jul 30 '24 10:07 grooveshaker

I'm sorry. I made an operational error.

grooveshaker avatar Jul 30 '24 11:07 grooveshaker

I share the same opinion that this should controllable somehow. I would also to change the instruction to describe more what the commit is doing and less how it's doing it.

kaishin avatar Aug 26 '24 09:08 kaishin