Copilot commit messages ignore language instructions and markdown guideline file (.copilot-commit-message-instructions.md)
Hello GitHub team,
I’m encountering an issue with GitHub Copilot’s commit message generation feature in Visual Studio Code (tested in both Stable and Insider builds).
Despite setting specific language instructions and providing a guideline file, Copilot always generates commit messages in English, ignoring the language preference and markdown formatting instructions.
Environment Details: • Editor: Visual Studio Code (Stable & Insider) • GitHub Copilot extension: Latest version • OS: macOS Sequoia 15.4.1 • Languages tested: English, Chinese (Traditional), Japanese
Settings Attempted: In settings.json, I added:
"github.copilot.chat.commitMessageGeneration.instructions": [
{
"text": "# Use Conventional Commits 1.0.0 for commit messages."
},
{
"text": "All records must be written in Traditional Chinese at all times."
},
{
"file": ".copilot-commit-message-instructions.md"
}
],
The file .copilot-commit-message-instructions.md exists in the project root, and contains a full markdown-formatted Conventional Commits guideline and a language preference.
Observations: • Regardless of either method (instructions in JSON or the .md file), Copilot always generates messages in English. • Language preference and guideline content are not reflected in the commit messages. • Behavior is consistent across different projects, languages, and system locales. • I suspect that this issue becomes more apparent when committing multiple files at once. In such cases, GitHub Copilot seems even less likely to respect the provided language and formatting guidelines.
I encountered the same problem and am looking forward to having it fixed
Sorry, that was my mistake—I’ve now updated it to reflect the correct issue state.
--
Update: When there are no staged changes in Git, clicking the AI icon in the Source Control panel consistently shows English output.
To resolve the staging issue, I ran git add ., followed by git --no-pager diff --cached | wc -c, which returned 16842.
After that, clicking the Source Control AI icon produced output in Chinese—but it was very concise. Also, the format did not follow the Conventional Commits 1.0.0 specification.
I'm also facing a similar issue. When the number of files in staged area is large, copilot is not following instructions to generate commit message. As a workaround, I'm currently placing 3 files in staged area and generating commit message and it follows the instructions.
My instructions weren't being followed either. For Visual Studio Code, I changed the format to markdown (not JSON), and it started to work.
My instructions:
- Commit messages should be prefixed with the branch ticket identifier (format: DEV-#####).
## Example
* Git branch: `DEV-12345-auto-order-feature`
* Commit message: "DEV-12345 Added feature...".
My instructions weren't being followed either. For Visual Studio Code, I changed the format to markdown (not JSON), and it started to work.
My instructions:
- Commit messages should be prefixed with the branch ticket identifier (format: DEV-#####). ## Example * Git branch: `DEV-12345-auto-order-feature` * Commit message: "DEV-12345 Added feature...".
My instructions were already in markdown format and just got this bug. It worked great last week, but now I tried it on a much larger commit scope.
I'm also facing the same issue. In my case, I'm using the following instructions directly on the workspace setting.json and copilot is ignoring:
"github.copilot.chat.commitMessageGeneration.instructions": [
{"text": "Use conventional commit message format."},
]
I'm also facing a similar issue. When the number of files in staged area is large, copilot is not following instructions to generate commit message. As a workaround, I'm currently placing 3 files in staged area and generating commit message and it follows the instructions.
Yes,me too.
Same here. It follows some rules, but definitely not exactly as I ask. Especially for the many package.json related changes in a monorepo.
same here
Same here. Hope this will be fixed. I found it extremely useful
Same here. I see the same issue for AGENTS.md files too. With the "Open Chat" Mode the file is used and correctly applied but if i'm using the "Generate Commit Message"- Button it doesnt work as expected.
I'm using a workspace for my development, and it finally works after updating the file path as mentioned issues #10772.
It appears that Copilot only recognizes configuration files located under a relative path (./.vscode/) rather than an absolute path. As a workaround, I had to create a symlink for each folder within the same workspace.
Closing the issue based on the most recent comment.
Closing the issue based on the most recent comment.
How does recent comment resolve the issue?
It appears that Copilot only recognizes configuration files located under a relative path (./.vscode/) rather than an absolute path. As a workaround, I had to create a symlink for each folder within the same workspace.
@dmythro, are you using instructions that are in the .vscode directory that are not recognized?