Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

A free and open-source forge that lives in your Git repo.

Identify accounts by their registered name

62576fa8157d431dcf2d360f3ebe481de77bda03 · Keenan Nemetz · 14d ago · parent 642e5994

Identify accounts by their registered name

Drop the internal account id and display name. Users, keys, passkeys,
invites, sessions, ACL entries, approvals, locks and CI records now all
use the registered name as the single identity.

The roster migrates in place: old id-keyed tables are rebuilt around the
name, and access-rule/lock references are rewritten through the same
mapping. Display-name editing and whoami --id are removed.

server/web/activity.go +2−7

@@ -143,14 +143,9 @@ func (w *Web) repoActivity(m *repo.Meta, kind, actor, assignee string) activityF
143 143 })
144 144 }
145 145 for _, a := range req.Approvals {
146 name, account := "", ""
147 if w.Ident != nil {
148 name = w.Ident.Label(a.Principal)
149 account = w.Ident.Name(a.Principal)
150 }
151 146 events = append(events, activityEvent{
152 147 Kind: "change", Icon: "check", Time: a.Created,
153 Actor: name, ActorName: account, Title: req.Title,
148 Actor: w.who(a.Principal), ActorName: a.Principal, Title: req.Title,
154 149 Detail: "approved",
155 150 URL: "/r/" + m.Name + "/requests/" + req.ID,
156 151 })
@@ -290,7 +285,7 @@ func (w *Web) activityActors() []activityActor {
290 285 if !acct.Active() {
291 286 continue
292 287 }
293 out = append(out, activityActor{Name: acct.Name, Label: acct.Label()})
288 out = append(out, activityActor{Name: acct.Name, Label: acct.Name})
294 289 }
295 290 return out
296 291 }