aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/repo_form.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-02-12 16:48:28 +0800
committerGitHub <noreply@github.com>2020-02-12 08:48:28 +0000
commit83a8944fcf64af9bf5b0a4e233f9a7f917838a4d (patch)
treeebb4436506a4e36939fcfa358ccb09dfd3a01d3a /modules/auth/repo_form.go
parentea7ad382e78486fc881bf46d9c1c004e3f311163 (diff)
downloadgitea-83a8944fcf64af9bf5b0a4e233f9a7f917838a4d.tar.gz
gitea-83a8944fcf64af9bf5b0a4e233f9a7f917838a4d.zip
Add feishu webhook support (#10229)
Add feishu webhook support
Diffstat (limited to 'modules/auth/repo_form.go')
-rw-r--r--modules/auth/repo_form.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index a5071de47e..932976b6f9 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -313,6 +313,17 @@ func (f *NewMSTeamsHookForm) Validate(ctx *macaron.Context, errs binding.Errors)
return validate(errs, ctx.Data, f, ctx.Locale)
}
+// NewFeishuHookForm form for creating feishu hook
+type NewFeishuHookForm struct {
+ PayloadURL string `binding:"Required;ValidUrl"`
+ WebhookForm
+}
+
+// Validate validates the fields
+func (f *NewFeishuHookForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
+ return validate(errs, ctx.Data, f, ctx.Locale)
+}
+
// .___
// | | ______ ________ __ ____
// | |/ ___// ___/ | \_/ __ \