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.
1.8 KiB
1.8 KiB
Сгенерировать commit message (EvoBGP)
Сгенерируй сообщение коммита для текущих staged-изменений. Не выполняй git commit, если пользователь явно не просил закоммитить.
Обязательный workflow (MUST)
- Прочитай скилл
.cursor/skills/commit-message/SKILL.md. - Следуй правилу
.cursor/rules/conventional-commits.mdc. - Первым вызовом Shell из корня репозитория:
powershell -NoProfile -File scripts/commit/staged-context.ps1
- Строй текст только по JSON stdout (
groups,stat,diff_excerpt). Exit1→ index пуст, сообщи пользователю. - Запрещено обходить скрипт через один
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.