Closed2
GitHub Copilotによるコミットメッセージ生成でConventional Commitsに従わせる

.vscode/settings.json
で、以下の設定を追加する:
{
"github.copilot.chat.commitMessageGeneration.instructions": [
{ "file": ".github/copilot-commit-message-instructions.md" }
]
}
参考文献:

.github/copilot-commit-message-instructions.md
にConventional Commitsに従う旨のプロンプトを追加する
プロンプトの例:
# Commit Message Guideline
!!!FOLLOW CONVENTIONAL COMMITS!!!
## Commit Message Format
```
<type>(<scope>?): <subject>
```
Scope is optional.
## Type
Must be one of the following:
- **build**: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
- **ci**: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
- **docs**: Documentation only changes
- **feat**: A new feature
- **fix**: A bug fix
- **perf**: A code change that improves performance
- **refactor**: A code change that neither fixes a bug nor adds a feature
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- **test**: Adding missing tests or correcting existing tests
## Scope
The scope should be the name of the npm package affected:
<<<ここに一覧を入れる>>>
## Examples
- `feat(hoge): add new button component`
- `fix(bar): resolve parsing issue with code blocks`
参考文献:
このスクラップは2日前にクローズされました