git-pr

created pr with 10.1 on 2024-07-22T16:07:15Z · by 964fa508
cmds
checkout latest patchset:
ssh pr.pico.sh print 10 | git am -3
checkout any patchset in a patch request:
ssh pr.pico.sh print 10.[rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 10

Patchset 10.1 on 2024-07-22T16:07:15Z · commit 60bc1d2

fix: use eventlog time for pr details
jolheiser 2024-07-22T16:06:49Z
Signed-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) {
476476 w.WriteHeader(http.StatusUnprocessableEntity)
477477 return
478478 }
479- slices.SortFunc[[]*EventLog](logs, func(a *EventLog, b *EventLog) int {
479+ slices.SortFunc(logs, func(a *EventLog, b *EventLog) int {
480480 return a.CreatedAt.Compare(b.CreatedAt)
481481 })
482482
......@@ -498,7 +498,7 @@ func prDetailHandler(w http.ResponseWriter, r *http.Request) {
498498 IsAdmin: web.Backend.IsAdmin(pk),
499499 Pubkey: user.Pubkey,
500500 },
501- Date: pr.CreatedAt.Format(web.Backend.Cfg.TimeFormat),
501+ Date: eventlog.CreatedAt.Format(web.Backend.Cfg.TimeFormat),
502502 })
503503 }
504504
Back to top