From 7c92109c1b12f96bc037ae829c7ff46ab0df519d Mon Sep 17 00:00:00 2001 From: Menno van den Ende <50165380+menno-ll@users.noreply.github.com> Date: Tue, 14 Dec 2021 11:51:15 +0100 Subject: [PATCH 1/2] Add commitish configuration option to schema.json Solves https://github.com/release-drafter/release-drafter/issues/971 --- schema.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/schema.json b/schema.json index 19327fa07..42a761f70 100644 --- a/schema.json +++ b/schema.json @@ -102,6 +102,10 @@ "default": false, "type": "boolean" }, + "commitish": { + "default": "", + "type": "string" + }, "replacers": { "default": [], "type": "array", From c40a88abd6d068b19ece6651ac2556b8b0ae320b Mon Sep 17 00:00:00 2001 From: Joseph Petersen Date: Tue, 14 Dec 2021 13:03:21 +0100 Subject: [PATCH 2/2] use the generated schema output --- schema.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/schema.json b/schema.json index 42a761f70..1878a78fe 100644 --- a/schema.json +++ b/schema.json @@ -103,8 +103,16 @@ "type": "boolean" }, "commitish": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string", + "enum": [""] + }, + { + "default": "", + "type": "string" + } + ] }, "replacers": { "default": [],