repos / git-pr

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

commit
692febd
parent
3077c86
author
Eric Bower
date
2024-07-18 14:44:52 -0400 EDT
fix: use `git-pr.toml` as default source of config
5 files changed,  +15, -59
M README.md
+5, -5
 1@@ -207,17 +207,17 @@ curl localhost:3000
 2 > This project is being actively developed and we have not reached alpha status
 3 > yet.
 4 
 5-1. Better `--cover-letter` support
 6-1. Support `git range-diff` workflow (in web view?)
 7-1. More robust ACL rules (OR integrate with self-hosted git repos like gitolite)
 8-1. Adapter to statically generate web view
 9-1. Bulk modify PRs (rsync, sftp, sshfs)
10+1. Ability to export and provide templates, static files for web viewer
11+1. Better diff algo between patchsets
12 1. Generate event log summary as a cover letter?
13 1. Support a `diff` workflow (convert `git diff` into mbox patch format)
14+1. More robust ACL rules (OR integrate with self-hosted git repos like gitolite)
15 1. Pubsub system to send events
16+1. Adapter to statically generate web view
17 
18 ## ideas
19 
20 1. Officially support git remotes?
21 1. PR build steps? (e.g. ci/cd, status checks, merge checks)
22 1. TUI?
23+1. Bulk modify PRs? (rsync, sftp, sshfs)
M cmd/ssh/main.go
+1, -1
1@@ -9,7 +9,7 @@ import (
2 )
3 
4 func main() {
5-	fpath := flag.String("config", "example.toml", "configuration toml file")
6+	fpath := flag.String("config", "git-pr.toml", "configuration toml file")
7 	flag.Parse()
8 	opts := &slog.HandlerOptions{
9 		AddSource: true,
M cmd/web/main.go
+1, -1
1@@ -9,7 +9,7 @@ import (
2 )
3 
4 func main() {
5-	fpath := flag.String("config", "example.toml", "configuration toml file")
6+	fpath := flag.String("config", "git-pr.toml", "configuration toml file")
7 	flag.Parse()
8 	opts := &slog.HandlerOptions{
9 		AddSource: true,
D example.toml
+0, -14
 1@@ -1,14 +0,0 @@
 2-# url is used for help commands, exclude protocol
 3-url = "localhost"
 4-# where we store the sqlite db, this toml file, git repos, and ssh host keys
 5-data_dir = "./data"
 6-# this gives users the ability to submit reviews and other admin permissions
 7-admins = []
 8-# set datetime format for our clients
 9-time_format = "2006-01-02"
10-
11-# add as many repos as you want
12-[[repo]]
13-id = "test"
14-clone_addr = "https://github.com/picosh/test.git"
15-desc = "Test repo"
M git-pr.toml
+8, -38
 1@@ -1,44 +1,14 @@
 2-# url is used for help commands
 3-url = "pr.pico.sh"
 4+# url is used for help commands, exclude protocol
 5+url = "localhost"
 6 # where we store the sqlite db, this toml file, git repos, and ssh host keys
 7 data_dir = "./data"
 8 # this gives users the ability to submit reviews and other admin permissions
 9-admins = [
10-  "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHM2RPNgcyt+Tpb77uj0oQYZWLadfB8x8mqJFy0C7Y8P",
11-  "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINlr0pScstAuTqs9Qr1KaMspHuFGO7cQMuvMMdJjbWG3"
12-]
13+admins = []
14+# set datetime format for our clients
15+time_format = "2006-01-02"
16 
17+# add as many repos as you want
18 [[repo]]
19 id = "test"
20-clone_addr = "git@github.com:picosh/test"
21-desc = "test repo to play around with Patch Requests"
22-
23-[[repo]]
24-id = "pico"
25-clone_addr = "git@github.com:picosh/pico"
26-desc = "open and managed web services leveraging ssh"
27-
28-[[repo]]
29-id = "git-pr"
30-clone_addr = "git@github.com:picosh/git-pr"
31-desc = "the easiest git collaboration tool"
32-
33-[[repo]]
34-id = "tunkit"
35-clone_addr = "git@github.com:picosh/tunkit"
36-desc = "ssh tunnel tooling"
37-
38-[[repo]]
39-id = "pobj"
40-clone_addr = "git@github.com:picosh/pobj"
41-desc = "rsync, scp, sftp for your object store"
42-
43-[[repo]]
44-id = "send"
45-clone_addr = "git@github.com:picosh/send"
46-desc = "ssh wish middleware for sending and receiving files from familiar tools (rsync, scp, sftp)"
47-
48-[[repo]]
49-id = "docs"
50-clone_addr = "git@github.com:picosh/docs"
51-desc = "pico.sh doc site"
52+clone_addr = "https://github.com/picosh/test.git"
53+desc = "Test repo"