Closed2

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

r4air4ai

.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`

参考文献:

https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#-commit-message-guidelines

https://gist.github.com/qoomon/5dfcdf8eec66a051ecd85625518cfd13

このスクラップは2日前にクローズされました