Logs
Patchset ps-22
lgtm
Eric Bower
fix: only log status change if the status changes
jolheiser
cli.go
+1
-1
lgtm
woops! thanks for fixing that jolheiser (1): fix: only log status change if the status changes cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: dbedbf6c422822dfdaaded07103829f8bb85d11a -- 2.45.2
fix: only log status change if the status changes
Signed-off-by: jolheiser <git@jolheiser.com>
cli.go
link
+1
-1
+1
-1
1diff --git a/cli.go b/cli.go
2index 93869c8..40d9a04 100644
3--- a/cli.go
4+++ b/cli.go
5@@ -810,7 +810,7 @@ Here's how it works:
6 return nil
7 }
8
9- if nextStatus != "" {
10+ if prq.Status != nextStatus {
11 err = pr.UpdatePatchRequestStatus(prID, user.ID, nextStatus)
12 if err != nil {
13 return err