mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
Add commitPrefix for defining a prefix for any project
This commit is contained in:
committed by
Stefan Haller
parent
af0897f18f
commit
01ff18dd92
@ -539,6 +539,29 @@
|
||||
"type": "boolean",
|
||||
"description": "If true, do not allow force pushes"
|
||||
},
|
||||
"commitPrefix": {
|
||||
"properties": {
|
||||
"pattern": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"description": "pattern to match on. E.g. for 'feature/AB-123' to match on the AB-123 use \"^\\\\w+\\\\/(\\\\w+-\\\\w+).*\"",
|
||||
"examples": [
|
||||
"^\\w+\\/(\\w+-\\w+).*"
|
||||
]
|
||||
},
|
||||
"replace": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"description": "Replace directive. E.g. for 'feature/AB-123' to start the commit message with 'AB-123 ' use \"[$1] \"",
|
||||
"examples": [
|
||||
"[$1] "
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"type": "object",
|
||||
"description": "See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#predefined-commit-message-prefix"
|
||||
},
|
||||
"commitPrefixes": {
|
||||
"additionalProperties": {
|
||||
"properties": {
|
||||
|
Reference in New Issue
Block a user