git-pr
created pr with
10.1
cmds
checkout latest patchset:
ssh pr.pico.sh print 10 | git am -3checkout any patchset in a patch request:
ssh pr.pico.sh print 10.[rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 10
Patchset
10.1
fix: use eventlog time for pr details
jolheiser
2024-07-22T16:06:49ZSigned-off-by: jolheiser <git@jolheiser.com>
Semantic diff summary
0 added,
1 modified,
0 signature changed,
0 removed
across 1 analyzed file
+2
-2
web.go
#
| ... | ... | @@ -476,7 +476,7 @@ func prDetailHandler(w http.ResponseWriter, r *http.Request) { | |
| 476 | 476 | w.WriteHeader(http.StatusUnprocessableEntity) | |
| 477 | 477 | return | |
| 478 | 478 | } | |
| 479 | - | slices.SortFunc[[]*EventLog](logs, func(a *EventLog, b *EventLog) int { | |
| 479 | + | slices.SortFunc(logs, func(a *EventLog, b *EventLog) int { | |
| 480 | 480 | return a.CreatedAt.Compare(b.CreatedAt) | |
| 481 | 481 | }) | |
| 482 | 482 |
| ... | ... | @@ -498,7 +498,7 @@ func prDetailHandler(w http.ResponseWriter, r *http.Request) { | |
| 498 | 498 | IsAdmin: web.Backend.IsAdmin(pk), | |
| 499 | 499 | Pubkey: user.Pubkey, | |
| 500 | 500 | }, | |
| 501 | - | Date: pr.CreatedAt.Format(web.Backend.Cfg.TimeFormat), | |
| 501 | + | Date: eventlog.CreatedAt.Format(web.Backend.Cfg.TimeFormat), | |
| 502 | 502 | }) | |
| 503 | 503 | } | |
| 504 | 504 |