mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
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.
73 lines
3.3 KiB
73 lines
3.3 KiB
{{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" .}}
|
|
<form id="repo-hooks-edit-form" action="/{{.Owner.Name}}/{{.Repository.Name}}/settings/hooks/edit" method="post">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
Manage 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>
|
|
<input id="payload-url" class="form-control" type="url" required="required" name="url"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="payload-version">Payload Version</label>
|
|
<select name="version" id="payload-version" class="form-control">
|
|
<option value="json">application/json</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="payload-secret">Secret</label>
|
|
<input id="payload-secret" class="form-control" type="text" required="required" name="secret"/>
|
|
</div>
|
|
<hr/>
|
|
<div class="form-group">
|
|
<label>Which events would you like to trigger this webhook?</label>
|
|
|
|
<div class="radio">
|
|
<label>
|
|
<input class="form-control" type="radio" value="push" name="trigger"/> Just the
|
|
<i>push</i> event.
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<hr/>
|
|
<div class="form-group">
|
|
<label>
|
|
<input type="checkbox" name="active" value="Active" checked/>
|
|
Active
|
|
</label>
|
|
|
|
<p class="help-block">We will deliver event details when this hook is triggered.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
<button class="btn btn-primary">Update Webhook</button>
|
|
<a href="/{{.Owner.Name}}/{{.Repository.Name}}/settings/hooks?remove="><button class="btn btn-danger">Delete Webhook</button></a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">Recent Deliveries</h3>
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
Coming soon
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}} |