You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Note breaking changes: Start with `BREAKING CHANGE:`
83
+
- Be separated from the body by a blank line
84
+
85
+
## Complete Examples
86
+
87
+
### Simple feature commit:
88
+
```
89
+
feat: implement user profile page
90
+
```
91
+
92
+
### Bug fix with scope:
93
+
```
94
+
fix(auth): prevent token expiration during active session
95
+
```
96
+
97
+
### Feature with body:
98
+
```
99
+
feat(payment): add support for cryptocurrency payments
100
+
101
+
Integrate with multiple blockchain networks to allow users
102
+
to pay with Bitcoin, Ethereum, and other major cryptocurrencies.
103
+
This includes wallet connection and transaction verification.
104
+
```
105
+
106
+
### Breaking change with footer:
107
+
```
108
+
feat(api)!: restructure user endpoint responses
109
+
110
+
Standardize all API responses to use consistent envelope
111
+
format with data, error, and metadata fields.
112
+
113
+
BREAKING CHANGE: API responses now wrap data in a 'data'
114
+
field instead of returning it at the root level. Clients
115
+
must update to access response.data instead of response.
116
+
117
+
Fixes #234
118
+
```
119
+
120
+
### Revert commit:
121
+
```
122
+
revert: feat(payments): add cryptocurrency support
123
+
124
+
This reverts commit abc123def456. The cryptocurrency
125
+
integration is causing performance issues in production
126
+
that need to be addressed before re-implementing.
127
+
```
128
+
129
+
## Pull Request Guidelines
130
+
131
+
Pull request titles MUST follow the same conventional commit format:
132
+
- Use appropriate type prefix
133
+
- Include scope when relevant
134
+
- Keep title under 72 characters
135
+
- Use imperative mood
136
+
137
+
### PR Title Examples:
138
+
- ✅ `feat(ui): implement dark mode toggle`
139
+
- ✅ `fix: resolve race condition in data sync`
140
+
- ✅ `docs: add API migration guide`
141
+
- ❌ `Updated UI components` (no type, past tense)
142
+
- ❌ `BUGFIX: Fixed the login issue` (wrong format)
143
+
144
+
## Critical Rules for Implementation
145
+
146
+
1. **NEVER suggest non-conventional formats** - Always use the exact format specified above
147
+
2. **NEVER use past tense** - Always use imperative mood
148
+
3. **NEVER capitalize the description** - First letter must be lowercase
149
+
4. **NEVER add periods to descriptions** - No punctuation at the end
150
+
5. **ALWAYS pick the most accurate type** - Don't use `chore` when `fix` is more appropriate
151
+
6. **ALWAYS be specific** - Vague commits like "fix bug" or "update code" are not acceptable
152
+
153
+
## Validation Checklist
154
+
155
+
Before suggesting any commit message, verify:
156
+
- [ ] Has a valid type from the allowed list
157
+
- [ ] Description is in imperative mood
158
+
- [ ] Description starts with lowercase letter
159
+
- [ ] No period at the end of description
160
+
- [ ] Description clearly explains what the commit does
161
+
- [ ] Scope is appropriate (if used)
162
+
- [ ] Body provides context (if needed)
163
+
- [ ] Footer references issues (if applicable)
164
+
- [ ] Breaking changes are clearly marked
165
+
166
+
When helping users write commits, actively guide them to follow these conventions and explain why each rule matters for maintaining a clean, parseable git history.
0 commit comments