1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-27 20:58:36 +00:00

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
16 changed files with 327 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
{{if eq .HookType "feishu"}}
<p>{{.i18n.Tr "repo.settings.add_feishu_hook_desc" "https://feishu.cn" | Str2html}}</p>
<form class="ui form" action="{{.BaseLink}}/feishu/{{or .Webhook.ID "new"}}" method="post">
{{.CsrfTokenHtml}}
<div class="required field {{if .Err_PayloadURL}}error{{end}}">
<label for="payload_url">{{.i18n.Tr "repo.settings.payload_url"}}</label>
<input id="payload_url" name="payload_url" type="url" value="{{.Webhook.URL}}" autofocus required>
</div>
{{template "repo/settings/webhook/settings" .}}
</form>
{{end}}