A vibe coded tangled fork which supports pijul.
1{{ define "repo/pulls/fragments/pullCompareBranches" }}
2 <div id="patch-upload">
3 <label for="targetBranch" class="dark:text-white">
4 select a source branch
5 </label>
6 <div class="flex flex-wrap gap-2 items-center">
7 <select
8 name="sourceBranch"
9 class="p-1 border border-gray-200 bg-white dark:bg-gray-700 dark:text-white dark:border-gray-600">
10 <option disabled selected>source branch</option>
11
12 {{ $recent := index .Branches 0 }}
13 {{ range .Branches }}
14 {{ $isRecent := eq .Reference.Name $recent.Reference.Name }}
15 {{ $preset := false }}
16 {{ if $.SourceBranch }}
17 {{ $preset = eq .Reference.Name $.SourceBranch }}
18 {{ else }}
19 {{ $preset = $isRecent }}
20 {{ end }}
21
22
23 <option
24 value="{{ .Reference.Name }}"
25 {{ if $preset }}
26 selected
27 {{ end }}
28 class="py-1">
29 {{ .Reference.Name }}
30 {{ if $isRecent }}(new){{ end }}
31 </option>
32 {{ end }}
33 </select>
34 </div>
35 </div>
36
37 <div class="flex items-center gap-2">
38 <input type="checkbox" id="isStacked" name="isStacked" value="on" />
39 <label for="isStacked" class="my-0 py-0 normal-case font-normal">
40 Submit as stacked PRs
41 </label>
42 </div>
43
44 <p class="mt-4">
45 Title and description are optional; if left out, they will be extracted from
46 the first commit.
47 </p>
48{{ end }}