forked from tangled.org/core
this repo has no description
at issues-edit 3.2 kB view raw
1{{ define "title" }}new pull | {{ .RepoInfo.FullName }}{{ end }} 2 3{{ define "repoContent" }} 4 <section class="prose dark:prose-invert"> 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 dark:text-gray-300"> 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 dark:bg-gray-700 px-1 py-0.5 rounded text-gray-800 dark:text-gray-200 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" class="dark:text-white">write a title</label> 24 <input type="text" name="title" id="title" class="w-full dark:bg-gray-700 dark:text-white dark:border-gray-600" /> 25 26 <label for="targetBranch" class="dark:text-white">select a target branch</label> 27 <p class="text-gray-500 dark:text-gray-400"> 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 dark:bg-gray-700 dark:text-white dark:border-gray-600" 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" class="dark:text-white">add a description</label> 42 <textarea 43 name="body" 44 id="body" 45 rows="6" 46 class="w-full resize-y dark:bg-gray-700 dark:text-white dark:border-gray-600" 47 placeholder="Describe your change. Markdown is supported." 48 ></textarea> 49 50 <div class="mt-4"> 51 <label for="patch" class="dark:text-white">paste your patch here</label> 52 <textarea 53 name="patch" 54 id="patch" 55 rows="10" 56 class="w-full resize-y font-mono dark:bg-gray-700 dark:text-white dark:border-gray-600" 57 placeholder="Paste your git diff output here." 58 ></textarea> 59 </div> 60 </div> 61 <div> 62 <button type="submit" class="btn dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white">create</button> 63 </div> 64 </div> 65 <div id="pull" class="error dark:text-red-300"></div> 66 </form> 67{{ end }}