repos / git-pr

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

commit
0f7ef0e
parent
6950fe8
author
Eric Bower
date
2024-07-21 14:54:11 -0400 EDT
fix(cli.add): mark accept and close as reviews as well
1 files changed,  +2, -1
M pr.go
M pr.go
+2, -1
 1@@ -543,12 +543,13 @@ func (cmd PrCmd) SubmitPatchset(prID int64, userID int64, op PatchsetOp, patchse
 2 		return fin, err
 3 	}
 4 
 5+	isReview := op == OpReview || op == OpAccept || op == OpClose
 6 	var patchsetID int64
 7 	row := tx.QueryRow(
 8 		"INSERT INTO patchsets (user_id, patch_request_id, review) VALUES(?, ?, ?) RETURNING id",
 9 		userID,
10 		prID,
11-		op == OpReview,
12+		isReview,
13 	)
14 	err = row.Scan(&patchsetID)
15 	if err != nil {