forked from tangled.org/core
this repo has no description
1{{ define "title" }}new pull | {{ .RepoInfo.FullName }}{{ end }} 2 3{{ define "repoContent" }} 4 <section class="prose"> 5 <p> 6 This is v1 of the pull request flow. Paste your patch in the form below. 7 Here are the steps to get you started: 8 <ul class="list-decimal pl-10 space-y-2 text-gray-700"> 9 <li class="leading-relaxed">Clone this repository.</li> 10 <li class="leading-relaxed">Make your changes in your local repository.</li> 11 <li class="leading-relaxed">Grab the diff using <code class="bg-gray-100 px-1 py-0.5 rounded text-gray-800 font-mono text-sm">git diff</code>.</li> 12 <li class="leading-relaxed">Paste the diff output in the form below.</li> 13 </ul> 14 </p> 15 </section> 16 <form 17 hx-post="/{{ .RepoInfo.FullName }}/pulls/new" 18 class="mt-6 space-y-6" 19 hx-swap="none" 20 > 21 <div class="flex flex-col gap-4"> 22 <div> 23 <label for="title">write a title</label> 24 <input type="text" name="title" id="title" class="w-full" /> 25 26 <label for="targetBranch">select a target branch</label> 27 <p class="text-gray-500"> 28 The branch you want to make your change against. 29 </p> 30 <select 31 name="targetBranch" 32 class="p-1 mb-2 border border-gray-200 bg-white" 33 > 34 <option disabled selected>select a branch</option> 35 {{ range .Branches }} 36 <option value="{{ .Reference.Name }}" class="py-1"> 37 {{ .Reference.Name }} 38 </option> 39 {{ end }} 40 </select> 41 <label for="body">add a description</label> 42 <textarea 43 name="body" 44 id="body" 45 rows="6" 46 class="w-full resize-y" 47 placeholder="Describe your change. Markdown is supported." 48 ></textarea> 49 50 <div class="mt-4"> 51 <label for="patch">paste your patch here</label> 52 <textarea 53 name="patch" 54 id="patch" 55 rows="10" 56 class="w-full resize-y font-mono" 57 placeholder="Paste your git diff output here." 58 ></textarea> 59 </div> 60 </div> 61 <div> 62 <button type="submit" class="btn">create</button> 63 </div> 64 </div> 65 <div id="pull" class="error"></div> 66 </form> 67{{ end }}