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
feat: add extra-prefix-mapping to map arbitrary commit prefixes to conventional commit types
Add `extra-prefix-mapping` configuration to map arbitrary commit prefixes to conventional
commit types, enabling flexible handling of various commit message conventions.
This change enables release-please to handle various commit message conventions
by providing a flexible mapping mechanism. Key use cases include:
- **Emoji-based commits**: Map emoji prefixes (e.g., 🐛, ✨, 📝) to conventional types
when using workflows like [gitmoji](https://github.com/arvinxx/gitmoji-commit-workflow)
- **Custom commit prefixes**: Map organization-specific prefixes (e.g., "change:", "update:") to conventional types
- **Legacy code integration**: Handle non-conventional commits when merging legacy codebases
by mapping the empty string ("") to a default type
Fully backward compatible - feature disabled by default.
Fixes#2623.
Fixes#2385.
Copy file name to clipboardExpand all lines: schemas/config.json
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,13 @@
20
20
"description": "Feature changes only bump semver patch if version < 1.0.0",
21
21
"type": "boolean"
22
22
},
23
+
"extra-prefix-mapping": {
24
+
"description": "Map custom commit prefixes to conventional commit types. Use empty string (\"\") to map non-conventional commits. Example: {\"change\": \"fix\", \"\": \"chore\"}",
25
+
"type": "object",
26
+
"additionalProperties": {
27
+
"type": "string"
28
+
}
29
+
},
23
30
"prerelease-type": {
24
31
"description": "Configuration option for the prerelease versioning strategy. If prerelease strategy used and type set, will set the prerelease part of the version to the provided value in case prerelease part is not present.",
0 commit comments