aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimon <simon@hilchenba.ch>2019-05-05 20:09:02 +0200
committertechknowlogick <hello@techknowlogick.com>2019-05-05 14:09:02 -0400
commita2a006a5d5a542c5c31bdce4647d2401eab88475 (patch)
treea71588a2291a5a5d2f9419208990fa5207593b77 /templates
parent55a8e12d85bd59314416bb026e84d258004a5071 (diff)
downloadgitea-a2a006a5d5a542c5c31bdce4647d2401eab88475.tar.gz
gitea-a2a006a5d5a542c5c31bdce4647d2401eab88475.zip
Add GET requests to webhook (#6771)
* Add GET requests to webhook * make fmt * Handle invalid http method on webhook * Uppercase http method in webhook * Rename v85.go to v86.go * make fmt
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/settings/webhook/gitea.tmpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/repo/settings/webhook/gitea.tmpl b/templates/repo/settings/webhook/gitea.tmpl
index 605022256d..ff52158cb3 100644
--- a/templates/repo/settings/webhook/gitea.tmpl
+++ b/templates/repo/settings/webhook/gitea.tmpl
@@ -7,6 +7,18 @@
<input id="payload_url" name="payload_url" type="url" value="{{.Webhook.URL}}" autofocus required>
</div>
<div class="field">
+ <label>{{.i18n.Tr "repo.settings.http_method"}}</label>
+ <div class="ui selection dropdown">
+ <input type="hidden" id="http_method" name="http_method" value="{{if .Webhook.HTTPMethod}}{{.Webhook.HTTPMethod}}{{else}}POST{{end}}">
+ <div class="default text"></div>
+ <i class="dropdown icon"></i>
+ <div class="menu">
+ <div class="item" data-value="POST">POST</div>
+ <div class="item" data-value="GET">GET</div>
+ </div>
+ </div>
+ </div>
+ <div class="field">
<label>{{.i18n.Tr "repo.settings.content_type"}}</label>
<div class="ui selection dropdown">
<input type="hidden" id="content_type" name="content_type" value="{{if .Webhook.ContentType}}{{.Webhook.ContentType}}{{else}}application/json{{end}}">