git-coco 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/dist/index.esm.mjs +473 -128
- package/dist/index.js +472 -127
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ npx git-coco@latest init -l global
|
|
|
44
44
|
|
|
45
45
|
### **`coco commit`**
|
|
46
46
|
|
|
47
|
-
Generates commit messages based on staged changes.
|
|
47
|
+
Generates commit messages based on staged changes with intelligent commitlint integration.
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
50
|
coco
|
|
@@ -54,6 +54,16 @@ coco
|
|
|
54
54
|
coco commit
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
+
#### Commitlint Integration
|
|
58
|
+
|
|
59
|
+
`coco` automatically detects and integrates with your project's commitlint configuration:
|
|
60
|
+
|
|
61
|
+
- **Smart Detection**: Automatically finds commitlint config files (`.commitlintrc.*`, `commitlint.config.*`, or `package.json` with commitlint field)
|
|
62
|
+
- **AI-Aware Rules**: Passes your commitlint rules to the AI for better compliance from the start
|
|
63
|
+
- **Automatic Retry**: When validation fails, `coco` automatically retries generation with error feedback (up to 2 attempts)
|
|
64
|
+
- **User-Friendly Flow**: After auto-retries, offers options to try 2 more times or edit manually
|
|
65
|
+
- **Full Validation**: Both AI-generated and manually edited commit messages are validated against your rules
|
|
66
|
+
|
|
57
67
|
#### Useful options
|
|
58
68
|
|
|
59
69
|
```bash
|
|
@@ -68,6 +78,10 @@ coco --append-ticket
|
|
|
68
78
|
# --additional
|
|
69
79
|
# Add extra context before generating the commit
|
|
70
80
|
coco --additional "Resolves UX bug with sign up button"
|
|
81
|
+
|
|
82
|
+
# --conventional
|
|
83
|
+
# Force conventional commits mode (also enabled automatically with commitlint config)
|
|
84
|
+
coco --conventional
|
|
71
85
|
```
|
|
72
86
|
|
|
73
87
|
### **`coco changelog`**
|