From 5d08c570162622406eb2a85cf6904804df1ad577 Mon Sep 17 00:00:00 2001 From: mergify-ci-bot Date: Tue, 16 Jun 2026 10:46:15 +0000 Subject: [PATCH] chore: sync Mergify JSON Schema files --- public/mergify-configuration-schema.json | 77 +++++++++++++++++------- 1 file changed, 55 insertions(+), 22 deletions(-) diff --git a/public/mergify-configuration-schema.json b/public/mergify-configuration-schema.json index 7f67bb4295..973116040b 100644 --- a/public/mergify-configuration-schema.json +++ b/public/mergify-configuration-schema.json @@ -225,10 +225,15 @@ "properties": { "users": { "items": { - "description": "A string template using the Jinja2 syntax.", - "format": "template", - "title": "Template", - "type": "string" + "anyOf": [ + { + "const": "{{ author }}", + "title": "Pull request author" + }, + { + "type": "string" + } + ] }, "maxItems": 10, "title": "Users", @@ -236,10 +241,15 @@ }, "add_users": { "items": { - "description": "A string template using the Jinja2 syntax.", - "format": "template", - "title": "Template", - "type": "string" + "anyOf": [ + { + "const": "{{ author }}", + "title": "Pull request author" + }, + { + "type": "string" + } + ] }, "maxItems": 10, "title": "Add Users", @@ -247,10 +257,15 @@ }, "remove_users": { "items": { - "description": "A string template using the Jinja2 syntax.", - "format": "template", - "title": "Template", - "type": "string" + "anyOf": [ + { + "const": "{{ author }}", + "title": "Pull request author" + }, + { + "type": "string" + } + ] }, "maxItems": 40, "title": "Remove Users", @@ -334,12 +349,21 @@ "type": "boolean" }, "assignees": { - "description": "Users to assign the newly created pull request to. As the type is a data type template, you could use, e.g., `{{author}}` to assign the pull request to its original author.", + "description": "Users to assign the newly created pull request to. Accepts GitHub logins, or one of the named actor options `{{ author }}` (the original pull request author) and `{{ merged_by }}` (the user who merged it).", "items": { - "description": "A string template using the Jinja2 syntax.", - "format": "template", - "title": "Template", - "type": "string" + "anyOf": [ + { + "const": "{{ author }}", + "title": "Pull request author" + }, + { + "const": "{{ merged_by }}", + "title": "User who merged the pull request" + }, + { + "type": "string" + } + ] }, "maxItems": 10, "title": "Assignees", @@ -870,12 +894,21 @@ "type": "boolean" }, "assignees": { - "description": "Users to assign the newly created pull request to. As the type is a data type template, you could use, e.g., `{{author}}` to assign the pull request to its original author.", + "description": "Users to assign the newly created pull request to. Accepts GitHub logins, or one of the named actor options `{{ author }}` (the original pull request author) and `{{ merged_by }}` (the user who merged it).", "items": { - "description": "A string template using the Jinja2 syntax.", - "format": "template", - "title": "Template", - "type": "string" + "anyOf": [ + { + "const": "{{ author }}", + "title": "Pull request author" + }, + { + "const": "{{ merged_by }}", + "title": "User who merged the pull request" + }, + { + "type": "string" + } + ] }, "maxItems": 10, "title": "Assignees",