1{{ define "repo/pulls/fragments/pullPatchUpload" }}
2 <div id="patch-upload">
3 <p>
4 You can paste a <code>git diff</code> or a
5 <code>git format-patch</code> patch series here.
6 </p>
7 <textarea
8 hx-trigger="keyup changed delay:500ms, paste delay:500ms"
9 hx-post="/{{ .RepoInfo.FullName }}/pulls/new/validate-patch"
10 hx-swap="none"
11 name="patch"
12 id="patch"
13 rows="12"
14 class="w-full mt-2 resize-y font-mono dark:bg-gray-700 dark:text-white dark:border-gray-600"
15 placeholder="diff --git a/file.txt b/file.txt
16index 1234567..abcdefg 100644
17--- a/file.txt
18+++ b/file.txt"
19 ></textarea>
20 </div>
21{{ end }}