~gitpocket/gitpocket

4
05701a4801f8776fd20963cf4e3b4d41ae24ce82
mainfeed-discovery
gitpocket/templates/newpull.html -rw-r--r--1.1 KiB ViewLogBlameView rawPermalink 3904633224 feat(basin): pr reviews, labels and branch protection 1 months ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
{{define "content"}}
{{$p := .Data.Page}}
<h3>New pull request</h3>
<form method="post" action="/{{$p.Repo.Path}}/pulls/new" class="twocol">
<div>
<label>Title <input name="title" required autofocus maxlength="200" value="{{.Data.PullTitle}}"></label>
<label>Description <textarea name="body" rows="8" placeholder="Markdown supported">{{.Data.Body}}</textarea></label>
<div class="actions"><button class="btn primary">Create pull request ▸</button></div>
</div>
<div>
<label>Source branch <select name="source">{{range .Data.Sources}}<option value="{{.Value}}"{{if eq .Value $.Data.Source}} selected{{end}}>{{.Label}}</option>{{end}}</select><small>Branches of this repository and of your forks. Push a branch first if it is not listed.</small></label>
<label class="check"><input type="checkbox" name="draft"> Open as a draft<small>Drafts cannot be merged until marked ready</small></label>
<label>Target branch <select name="target">{{range .Data.Branches}}<option value="{{.Name}}"{{if eq .Name $.Data.Target}} selected{{else if and (not $.Data.Target) (eq .Name $p.Ref)}} selected{{end}}>{{.Name}}</option>{{end}}</select></label>
</div>
</form>
{{end}}