repos / git-pr

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

commit
31fcd4a
parent
dbedbf6
author
jolheiser
date
2024-07-22 12:34:57 -0400 EDT
fix: only log status change if the status changes

Signed-off-by: jolheiser <git@jolheiser.com>
1 files changed,  +1, -1
M cli.go
M cli.go
+1, -1
1@@ -810,7 +810,7 @@ Here's how it works:
2 								return nil
3 							}
4 
5-							if nextStatus != "" {
6+							if prq.Status != nextStatus {
7 								err = pr.UpdatePatchRequestStatus(prID, user.ID, nextStatus)
8 								if err != nil {
9 									return err