forked from tangled.org/core
this repo has no description
at fork-repo 2.1 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>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 </div> 26 27 <div> 28 <label for="body" class="dark:text-white">add a description</label> 29 <textarea 30 name="body" 31 id="body" 32 rows="6" 33 class="w-full resize-y dark:bg-gray-700 dark:text-white dark:border-gray-600" 34 placeholder="Describe your change. Markdown is supported." 35 ></textarea> 36 </div> 37 38 {{ if not .RepoInfo.Roles.IsPushAllowed }} 39 {{ template "fragments/pullPatchUpload" . }} 40 {{ else }} 41 {{ template "fragments/pullCompareBranches" . }} 42 {{ end }} 43 44 <div class="flex justify-end items-center gap-2"> 45 <button type="submit" class="btn">create</button> 46 </div> 47 48 </div> 49 <div id="pull" class="error dark:text-red-300"></div> 50 </form> 51{{ end }} 52 53{{ define "repoAfter" }} 54<div id="patch-preview" class="error dark:text-red-300"></div> 55{{ end }}