CI / changes (push) Successful in 7s
CI / commitlint (push) Has been skipped
CI / openapi (push) Has been skipped
CI / web (push) Has been skipped
CI / go (push) Has been skipped
CI / bird2 (push) Has been skipped
CI / release (push) Successful in 17s
- Enhanced AGENTS.md to clarify the use of `/commit-message` and the exclusion of the Source Control button for generating commit messages. - Updated conventional-commits.mdc to include new triggers and guidelines for commit message types, emphasizing the importance of semver impact. - Revised commit-message SKILL.md to specify the mandatory execution of scripts and the correct usage of types and scopes in commit messages. - Improved README documentation to reflect the updated guidelines and workflows for generating commit messages.
38 lines
1.8 KiB
Markdown
38 lines
1.8 KiB
Markdown
# Сгенерировать commit message (EvoBGP)
|
|
|
|
Сгенерируй сообщение коммита для **текущих staged-изменений**. Не выполняй `git commit`, если пользователь явно не просил закоммитить.
|
|
|
|
## Обязательный workflow (MUST)
|
|
|
|
1. Прочитай скилл [`.cursor/skills/commit-message/SKILL.md`](../skills/commit-message/SKILL.md).
|
|
2. Следуй правилу [`.cursor/rules/conventional-commits.mdc`](../rules/conventional-commits.mdc).
|
|
3. **Первым вызовом Shell** из корня репозитория:
|
|
|
|
```powershell
|
|
powershell -NoProfile -File scripts/commit/staged-context.ps1
|
|
```
|
|
|
|
4. Строй текст **только** по JSON stdout (`groups`, `stat`, `diff_excerpt`). Exit `1` → index пуст, сообщи пользователю.
|
|
5. **Запрещено** обходить скрипт через один `git diff --cached`.
|
|
|
|
## Формат вывода
|
|
|
|
Для каждого коммита (при auto-split — по одному блоку):
|
|
|
|
```
|
|
<type>(<scope>): <summary in English>
|
|
|
|
<тело на русском>
|
|
```
|
|
|
|
Плюс пояснение (RU): semver impact (`minor`|`patch`|`none`|`major`), почему выбран type, был ли split.
|
|
|
|
## Semver (кратко)
|
|
|
|
- Новая пользовательская возможность → `feat` (minor)
|
|
- Починка ожидаемого поведения / баг → `fix` (patch)
|
|
- Follow-up баги после недавнего `feat` в том же scope → **`fix`**, не `feat`
|
|
- Только перестройка без нового поведения → `refactor` (none)
|
|
|
|
Заголовок — EN, императив, ≤72 символов. Тело — RU.
|