Skip to content

Commit 5487883

Browse files
committed
Change URL to docs
1 parent 62461dc commit 5487883

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/webhook/webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var Webhooks = make(map[string]*Webhook)
2121
type Webhook struct {
2222
ID string `yaml:"id"`
2323
Label string `yaml:"label"`
24-
URL string `yaml:"url"`
24+
Docs string `yaml:"docs"`
2525
HTTP string `yaml:"http"`
2626
Exec []string `yaml:"exec"`
2727
Form []Form `yaml:"form"`

templates/repo/settings/webhook/custom.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{if .CustomHook}}
2-
<p>{{.i18n.Tr "repo.settings.add_web_hook_desc" .CustomHook.URL .CustomHook.Label | Str2html}}</p>
2+
<p>{{.i18n.Tr "repo.settings.add_web_hook_desc" .CustomHook.Docs .CustomHook.Label | Str2html}}</p>
33
<form class="ui form" action="{{.BaseLink}}/{{.CustomHook.ID}}/{{or .Webhook.ID "new"}}" method="post">
44
{{template "base/disable_form_autofill"}}
55
{{.CsrfTokenHtml}}

0 commit comments

Comments
 (0)