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/release_actions.go +3−3

@@ -35,7 +35,7 @@ func (w *Web) canManageReleases(r *http.Request, m *repo.Meta) bool {
35 35 return false
36 36 }
37 37 acl, err := m.ACL()
38 return err == nil && acl.RoleFor(pr.account.ID).AtLeast(access.Maintain)
38 return err == nil && acl.RoleFor(pr.account.Name).AtLeast(access.Maintain)
39 39 }
40 40
41 41 func (w *Web) releaseFormView(r *http.Request, m *repo.Meta, editing bool, tag, target, notes, msg string) releaseFormView {
@@ -124,7 +124,7 @@ func (w *Web) CreateRelease(rw http.ResponseWriter, r *http.Request) {
124 124 fail(err.Error())
125 125 return
126 126 }
127 w.audit("web.release.create", pr.account.ID, m.Name+" "+tag)
127 w.audit("web.release.create", pr.account.Name, m.Name+" "+tag)
128 128 http.Redirect(rw, r, "/r/"+m.Name+"/releases/"+pathURL(tag), http.StatusSeeOther)
129 129 }
130 130
@@ -211,6 +211,6 @@ func (w *Web) UpdateRelease(rw http.ResponseWriter, r *http.Request) {
211 211 fail(err.Error())
212 212 return
213 213 }
214 w.audit("web.release.edit", pr.account.ID, m.Name+" "+t.Name)
214 w.audit("web.release.edit", pr.account.Name, m.Name+" "+t.Name)
215 215 http.Redirect(rw, r, "/r/"+m.Name+"/releases/"+pathURL(t.Name), http.StatusSeeOther)
216 216 }