-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitmessage
More file actions
46 lines (46 loc) · 2.5 KB
/
.gitmessage
File metadata and controls
46 lines (46 loc) · 2.5 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
42
43
44
45
46
# ─────────────────────────────────────────────────────────────
# Conventional Commit Message
# ─────────────────────────────────────────────────────────────
#
# <type>(<scope>)!: <short imperative description>
# │
# ├── scope is optional (api, auth, ui, etc.)
# └── ! = breaking change
#
# Examples:
# feat(auth): add OAuth login flow
# fix: prevent null pointer in parser
# refactor(db)!: change user schema
#
# ─────────────────────────────────────────────────────────────
# SUBJECT (required, max ~72 chars)
# ─────────────────────────────────────────────────────────────
# - Use imperative mood: "add", "fix", "remove", not "added/fixed"
# - No period at the end
# - Focus on WHAT changed at a high level
#
# ─────────────────────────────────────────────────────────────
# BODY (optional, wrap at ~80 chars)
# ─────────────────────────────────────────────────────────────
# Explain:
# WHY this change was made
# CONTEXT and trade-offs
# Any notable side effects
#
# Avoid:
# - repeating the subject
# - listing code changes line-by-line
#
# Good structure:
# Problem:
# Solution:
# Impact:
#
# ─────────────────────────────────────────────────────────────
# FOOTER (optional)
# ─────────────────────────────────────────────────────────────
# Breaking change: <description>
# Closes #123
# Co-authored-by: Name <email>
#
# ─────────────────────────────────────────────────────────────