1
0
Fork 0
forked from forgejo/forgejo

Add feishu webhook support (#10229)

Add feishu webhook support
This commit is contained in:
Lunny Xiao 2020-02-12 16:48:28 +08:00 committed by GitHub
parent ea7ad382e7
commit 83a8944fcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 327 additions and 3 deletions

View file

@ -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 ""
}