aboutsummaryrefslogtreecommitdiffstats
path: root/models
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 /models
parentea7ad382e78486fc881bf46d9c1c004e3f311163 (diff)
downloadgitea-83a8944fcf64af9bf5b0a4e233f9a7f917838a4d.tar.gz
gitea-83a8944fcf64af9bf5b0a4e233f9a7f917838a4d.zip
Add feishu webhook support (#10229)
Add feishu webhook support
Diffstat (limited to 'models')
-rw-r--r--models/webhook.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/webhook.go b/models/webhook.go
index 55f58c64a1..626489b342 100644
--- a/models/webhook.go
+++ b/models/webhook.go
@@ -445,6 +445,7 @@ const (
DINGTALK
TELEGRAM
MSTEAMS
+ FEISHU
)
var hookTaskTypes = map[string]HookTaskType{
@@ -455,6 +456,7 @@ var hookTaskTypes = map[string]HookTaskType{
"dingtalk": DINGTALK,
"telegram": TELEGRAM,
"msteams": MSTEAMS,
+ "feishu": FEISHU,
}
// ToHookTaskType returns HookTaskType by given name.
@@ -479,6 +481,8 @@ func (t HookTaskType) Name() string {
return "telegram"
case MSTEAMS:
return "msteams"
+ case FEISHU:
+ return "feishu"
}
return ""
}