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
19 name="targetBranch"
20 class="p-1 border border-gray-200 bg-white"
21 >
22 <option disabled selected>select a branch</option>
23 {{ range .Branches }}
24 <option value="{{ .Reference.Name }}" class="py-1">
25 {{ .Reference.Name }}
26 </option>
27 {{ end }}
28 </select>
29 </div>
30 <div>
31 <label for="body">add a description</label>
32 <textarea
33 name="body"
34 id="body"
35 rows="6"
36 class="w-full resize-y"
37 placeholder="Describe your change. Markdown is supported."
38 ></textarea>
39
40 <div class="mt-4">
41 <label for="patch">paste your patch here</label>
42 <textarea
43 name="patch"
44 id="patch"
45 rows="10"
46 class="w-full resize-y font-mono"
47 placeholder="Paste your git-format-patch output here."
48 hx-post="/pulls/validate"
49 hx-trigger="input changed delay:500ms"
50 hx-target="#patch-validation"
51 hx-include="[name='patch']"
52 ></textarea>
53 <div id="pull-validate"></div>
54 </div>
55 </div>
56 <div>
57 <button type="submit" class="btn">create</button>
58 </div>
59 </div>
60 <div id="pull" class="error"></div>
61 </form>
62{{ end }}