diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-02-12 16:48:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-12 08:48:28 +0000 |
commit | 83a8944fcf64af9bf5b0a4e233f9a7f917838a4d (patch) | |
tree | ebb4436506a4e36939fcfa358ccb09dfd3a01d3a /models | |
parent | ea7ad382e78486fc881bf46d9c1c004e3f311163 (diff) | |
download | gitea-83a8944fcf64af9bf5b0a4e233f9a7f917838a4d.tar.gz gitea-83a8944fcf64af9bf5b0a4e233f9a7f917838a4d.zip |
Add feishu webhook support (#10229)
Add feishu webhook support
Diffstat (limited to 'models')
-rw-r--r-- | models/webhook.go | 4 |
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 "" } |