this repo has no description
1{{ define "title" }}new pull | {{ .RepoInfo.FullName }}{{ end }} 2 3{{ define "repoContent" }} 4 <form 5 hx-post="/{{ .RepoInfo.FullName }}/pulls/new" 6 class="mt-6 space-y-6" 7 hx-swap="none" 8 > 9 <div class="flex flex-col gap-4"> 10 <div> 11 <label for="title">write a title</label> 12 <input type="text" name="title" id="title" class="w-full" /> 13 14 <label for="targetBranch">select a target branch</label> 15 <p class="text-gray-500"> 16 The branch you want to make your change against. 17 </p> 18 <select name="targetBranch" class="p-1 border border-gray-200 bg-white"> 19 <option disabled selected>select a branch</option> 20 {{ range .Branches }} 21 <option 22 value="{{ .Reference.Name }}" 23 class="py-1"> 24 {{ .Reference.Name }} 25 </option> 26 {{ end }} 27 </select> 28 </div> 29 <div> 30 <label for="body">add a description</label> 31 <textarea 32 name="body" 33 id="body" 34 rows="6" 35 class="w-full resize-y" 36 placeholder="Describe your change. Markdown is supported." 37 ></textarea> 38 39 <div class="mt-4"> 40 <label for="patch">paste your patch here</label> 41 <textarea 42 name="patch" 43 id="patch" 44 rows="10" 45 class="w-full resize-y font-mono" 46 placeholder="Paste your git-format-patch output here." 47 ></textarea> 48 </div> 49 </div> 50 <div> 51 <button type="submit" class="btn">create</button> 52 </div> 53 </div> 54 <div id="pull" class="error"></div> 55 </form> 56{{ end }}