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/web/activity.go +4−4

@@ -146,14 +146,14 @@ func (w *Web) repoActivity(memo *requestMemo, m *repo.Meta, kind, actor, assigne
146 146 events = append(events, activityEvent{
147 147 Kind: "change", Icon: "git-pull-request", Time: req.Created,
148 148 Actor: w.who(req.Author), ActorName: req.Author, Title: req.Title,
149 Detail: "opened change", URL: "/r/" + m.Name + "/requests/" + req.ID,
149 Detail: "opened change", URL: "/r/" + m.Name + "/changes/" + req.ID,
150 150 })
151 151 for _, c := range req.Comments {
152 152 events = append(events, activityEvent{
153 153 Kind: "change", Icon: "message-square", Time: c.Created,
154 154 Actor: w.who(c.Author), ActorName: c.Author, Title: req.Title,
155 155 Detail: "commented on change",
156 URL: "/r/" + m.Name + "/requests/" + req.ID + "#c-" + c.ID,
156 URL: "/r/" + m.Name + "/changes/" + req.ID + "#c-" + c.ID,
157 157 })
158 158 }
159 159 for _, a := range req.Approvals {
@@ -161,7 +161,7 @@ func (w *Web) repoActivity(memo *requestMemo, m *repo.Meta, kind, actor, assigne
161 161 Kind: "change", Icon: "check", Time: a.Created,
162 162 Actor: w.who(a.Principal), ActorName: a.Principal, Title: req.Title,
163 163 Detail: "approved change",
164 URL: "/r/" + m.Name + "/requests/" + req.ID,
164 URL: "/r/" + m.Name + "/changes/" + req.ID,
165 165 })
166 166 }
167 167 }
@@ -196,7 +196,7 @@ func (w *Web) repoActivity(memo *requestMemo, m *repo.Meta, kind, actor, assigne
196 196 events = append(events, activityEvent{
197 197 Kind: "change", Icon: "git-pull-request", Time: sc.Time,
198 198 Actor: w.who(sc.Actor), ActorName: sc.Actor, Title: req.Title,
199 Detail: requestStateDetail(sc.State), URL: "/r/" + m.Name + "/requests/" + sc.ID,
199 Detail: requestStateDetail(sc.State), URL: "/r/" + m.Name + "/changes/" + sc.ID,
200 200 })
201 201 }
202 202 }