You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.8 KiB
62 lines
2.8 KiB
11 years ago
|
{{template "base/head" .}}
|
||
|
{{template "base/navbar" .}}
|
||
|
{{template "repo/nav" .}}
|
||
|
{{template "repo/toolbar" .}}
|
||
|
<div id="body" class="container">
|
||
|
{{template "repo/setting_nav" .}}
|
||
|
<div id="repo-setting-container" class="col-md-10">
|
||
|
{{template "base/alert" .}}
|
||
11 years ago
|
<form id="repo-hooks-add-form" action="{{.RepoLink}}/settings/hooks/add" method="post">
|
||
|
{{.CsrfTokenHtml}}
|
||
11 years ago
|
<div class="panel panel-default">
|
||
|
<div class="panel-heading">
|
||
|
Add Webhook
|
||
|
</div>
|
||
|
|
||
|
<div class="panel-body">
|
||
|
<div class="col-md-7">
|
||
|
<p>We’ll send a POST request to the URL below with details of any subscribed events.</p>
|
||
|
<hr/>
|
||
|
<div class="form-group">
|
||
|
<label for="payload-url">Payload URL</label>
|
||
11 years ago
|
<input id="payload-url" name="url" class="form-control" type="url" required="required"/>
|
||
11 years ago
|
</div>
|
||
11 years ago
|
|
||
11 years ago
|
<div class="form-group">
|
||
11 years ago
|
<label for="content-type">Content type</label>
|
||
|
<select id="content-type" name="content_type" class="form-control">
|
||
11 years ago
|
<option value="1">application/json</option>
|
||
11 years ago
|
</select>
|
||
|
</div>
|
||
11 years ago
|
|
||
11 years ago
|
<div class="form-group">
|
||
|
<label for="payload-secret">Secret</label>
|
||
11 years ago
|
<input id="payload-secret" name="secret" class="form-control" type="text"/>
|
||
11 years ago
|
</div>
|
||
|
<hr/>
|
||
|
<div class="form-group">
|
||
|
<label>Which events would you like to trigger this webhook?</label>
|
||
|
<div class="radio">
|
||
|
<label>
|
||
11 years ago
|
<input class="form-control" name="push_only" type="radio" checked name="trigger"/> Just the <i>push</i> event.
|
||
11 years ago
|
</label>
|
||
|
</div>
|
||
|
</div>
|
||
|
<hr/>
|
||
|
<div class="form-group">
|
||
11 years ago
|
<label>
|
||
11 years ago
|
<input type="checkbox" name="active" checked/> Active
|
||
11 years ago
|
</label>
|
||
11 years ago
|
<p class="help-block">We will deliver event details when this hook is triggered.</p>
|
||
11 years ago
|
</div>
|
||
|
</div>
|
||
11 years ago
|
</div>
|
||
11 years ago
|
|
||
11 years ago
|
<div class="panel-footer">
|
||
|
<button class="btn btn-success">Add Webhook</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
11 years ago
|
</div>
|
||
|
</div>
|
||
|
{{template "base/footer" .}}
|