repos / git-pr

a self-hosted git collaboration server
git clone https://github.com/picosh/git-pr.git

commit
62e8e49
parent
52c99e8
author
Eric Bower
date
2024-07-07 00:04:28 -0400 EDT
fix: add base_commit_sha to schema
4 files changed,  +9, -0
M db.go
M db.go
+1, -0
1@@ -125,6 +125,7 @@ CREATE TABLE IF NOT EXISTS patches (
2   content_sha TEXT NOT NULL,
3   review BOOLEAN NOT NULL DEFAULT false,
4   raw_text TEXT NOT NULL,
5+  base_commit_sha TEXT,
6   created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
7   CONSTRAINT pr_id_fk
8     FOREIGN KEY(patch_request_id) REFERENCES patch_requests(id)
M tmpl/pr-detail.html
+2, -0
1@@ -11,6 +11,8 @@
2 {{define "body"}}
3 {{template "pr-header" .}}
4 
5+<hr />
6+
7 <main class="group">
8   <div class="group">
9     {{range $idx, $val := .Patches}}
M tmpl/repo-detail.html
+3, -0
 1@@ -23,6 +23,9 @@ git format-patch {{.Branch}} --stdout | ssh pr.pico.sh pr create {{.ID}}</pre>
 2     </details>
 3 	</div>
 4 </header>
 5+
 6+<hr />
 7+
 8 <main class="group">
 9   <h3 class="text-lg">Open PRs</h3>
10   {{range .OpenPrs}}
M tmpl/repo-list.html
+3, -0
 1@@ -170,6 +170,9 @@
 2       </ol>
 3   </details>
 4 </header>
 5+
 6+<hr />
 7+
 8 <main>
 9   <div class="group">
10     {{range .Repos}}