From 6ddd3b0b470d16dfe62caf5fff21011cfff44a76 Mon Sep 17 00:00:00 2001 From: WGH Date: Mon, 9 Sep 2019 08:48:21 +0300 Subject: Implement webhook branch filter (#7791) * Fix validate() function to handle errors in embedded anon structs * Implement webhook branch filter See #2025, #3998. --- templates/repo/settings/webhook/settings.tmpl | 7 +++++++ templates/swagger/v1_json.tmpl | 8 ++++++++ 2 files changed, 15 insertions(+) (limited to 'templates') diff --git a/templates/repo/settings/webhook/settings.tmpl b/templates/repo/settings/webhook/settings.tmpl index 3f9f739775..a033ac14bb 100644 --- a/templates/repo/settings/webhook/settings.tmpl +++ b/templates/repo/settings/webhook/settings.tmpl @@ -116,6 +116,13 @@ + +
+ + + {{.i18n.Tr "repo.settings.branch_filter_desc" | Str2html}} +
+
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 33c0c38f82..69d100e00c 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -7528,6 +7528,10 @@ "default": false, "x-go-name": "Active" }, + "branch_filter": { + "type": "string", + "x-go-name": "BranchFilter" + }, "config": { "type": "object", "additionalProperties": { @@ -8124,6 +8128,10 @@ "type": "boolean", "x-go-name": "Active" }, + "branch_filter": { + "type": "string", + "x-go-name": "BranchFilter" + }, "config": { "type": "object", "additionalProperties": { -- cgit v1.2.3