summaryrefslogtreecommitdiffstats
path: root/schema
diff options
context:
space:
mode:
authorJonathan Duck <duckbrain30@gmail.com>2024-01-31 20:11:01 -0800
committerStefan Haller <stefan@haller-berlin.de>2024-05-01 19:03:12 +0200
commit01ff18dd925f68e7ebfd21b52803cf5fc05cf2d3 (patch)
treefda620709d1f60c87ed4ed72287c7a6aeff6240e /schema
parentaf0897f18fc58ecab71c1334823887177cc8bc1f (diff)
Add commitPrefix for defining a prefix for any project
Diffstat (limited to 'schema')
-rw-r--r--schema/config.json23
1 files changed, 23 insertions, 0 deletions
diff --git a/schema/config.json b/schema/config.json
index 41a8859a4..05a2db151 100644
--- a/schema/config.json
+++ b/schema/config.json
@@ -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": {