-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathCOMMIT_MESSAGE.md.example
More file actions
41 lines (30 loc) · 1.51 KB
/
COMMIT_MESSAGE.md.example
File metadata and controls
41 lines (30 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Commit Message Guidelines
This file provides project-specific context for AI-generated commit messages.
Place this file as `COMMIT_MESSAGE.md` in one of these locations (searched in order):
1. Project root directory
2. `.git/` directory
3. `.github/` directory
## Project Context
This is a git commit history rewriter tool that helps developers improve their commit messages using AI.
## Commit Message Requirements
- Always use conventional commit format: `type(scope): description`
- Types: feat, fix, docs, style, refactor, test, chore, perf, ci, build, revert
- Scopes for this project: cli, hooks, providers, core, docs
- Keep the first line under 72 characters
- Write in present tense ("add" not "added")
- Focus on what and why, not how
## Project-Specific Guidelines
- When changing git hooks, mention which hooks are affected
- When updating providers, specify which AI provider (OpenAI/Ollama)
- Security-related changes should be clearly marked
- Breaking changes should include BREAKING CHANGE in the message
## Examples
Good commit messages for this project:
- `feat(hooks): add support for custom Ollama server URLs`
- `fix(core): prevent console output from contaminating commit messages`
- `docs(readme): add blog post link and improve security section`
- `refactor(providers): split provider implementations into separate files`
## Additional Notes
- This tool is security-sensitive as it handles git history
- Consider privacy implications when mentioning data handling
- Emphasize user control and opt-in features