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/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software:2222/vole.git

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

Serve changes at /r/<repo>/changes

8fb7aabf534adf208cd795724b1e3d287dc62f5a · Keenan Nemetz · 3d ago · parent b492b557

Serve changes at /r/<repo>/changes

The metadata tree and the interface say changes; the browser was the last
place spelling the route requests. Rename every method on that subtree and
the URLs the server builds: redirects, activity and search results, the
number alias, code links, templates, and the CLI's page links.

The old route is gone rather than aliased. Nothing has been publicly
released, so there is no bookmark or client to keep working, and a redirect
would leave two spellings of the same page in the code.

Refs #204 (01M6S6685JFG8S64ZFF452217W).

server/events.go +2−2

@@ -395,7 +395,7 @@ func (s *Server) commentEvent(m *repo.Meta, old string, c git.Commit, acl *acces
395 395 var url string
396 396 if request {
397 397 if req, ok, _ := metadata.LoadRequestAt(m.Git(), c.SHA, entityID); ok && req != nil {
398 url = "/r/" + m.Name + "/requests/" + req.ID
398 url = "/r/" + m.Name + "/changes/" + req.ID
399 399 body, clipped := clipBody(req.Description)
400 400 change = &payloadRequest{ID: req.ID, Title: req.Title, State: req.State, Author: req.Author,
401 401 Base: req.Base, Head: req.Head, HeadRef: req.HeadRef,
@@ -485,7 +485,7 @@ func (s *Server) changeRequestEvent(m *repo.Meta, old string, c git.Commit, acl
485 485 Change: &payloadRequest{ID: newReq.ID, Title: newReq.Title, State: newReq.State,
486 486 Author: newReq.Author, Base: newReq.Base, Head: newReq.Head, HeadRef: newReq.HeadRef,
487 487 Mentions: metadata.Mentions(newReq.Description),
488 Body: body, BodyTruncated: clipped, URL: "/r/" + m.Name + "/requests/" + newReq.ID},
488 Body: body, BodyTruncated: clipped, URL: "/r/" + m.Name + "/changes/" + newReq.ID},
489 489 }
490 490 actions := []string{}
491 491 switch {