-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.commit-ai.example.yaml
More file actions
57 lines (49 loc) · 1.45 KB
/
.commit-ai.example.yaml
File metadata and controls
57 lines (49 loc) · 1.45 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
47
48
49
50
51
52
53
54
55
56
57
# Commit-AI Configuration Example
# Copy this to .commit-ai.yaml in your project root or home directory
# AI Model Configuration
model: "llama-3.1-8b-instant" # Options: llama-3.1-8b-instant, llama-3.1-70b-versatile
temperature: 0.6 # 0.0 = deterministic, 1.0 = creative
max_tokens: 12000 # Maximum diff size to send to AI
# Commit Message Rules
rules:
max_title_length: 72 # Maximum characters in commit title
require_scope: false # Require scope in commit messages
require_body: false # Require commit body
allowed_types: # Allowed commit types
- feat
- fix
- docs
- style
- refactor
- perf
- test
- chore
- build
- ci
- revert
# Scope Configuration
scopes:
auto_detect: true # Auto-detect scope from file paths
aliases: # Map directory names to scopes
frontend: ui
backend: api
database: db
documentation: docs
# Behavior
behavior:
auto_stage: false # Automatically stage all files if none staged
show_diff_stats: true # Show diff statistics before generating
validate_messages: true # Validate generated messages
# Templates (optional)
templates:
feat: |
feat({scope}): {description}
{body}
fix: |
fix({scope}): {description}
Fixes: {body}
# Ignore Patterns (in addition to .gitignore)
ignore:
- "*.log"
- "*.tmp"
- ".DS_Store"