Sign in

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

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

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

Self-hosted forge that lives in your Git repo.

Show every commit of a change request, paginated

ea92d7546124954c790c34f3f7655c35cb70bf76 · Keenan Nemetz · 1d ago · parent 31560d91

Show every commit of a change request, paginated

The request page showed the diff and the runs but not the commits the branch
is made of, so a reviewer who reads commit by commit had to leave it for the
repository history. Add a Commits tab that lists them oldest first, each
linking to its commit page.

Page the list with the existing pager rather than cutting it at a fixed
count: a long branch keeps every commit and a page step swaps only the list.
While the request is open the range is base..head; once landed it starts at
the recorded pre-landing base, so the commits that were reviewed remain
visible and the landing merge commit is not listed as one of them.

server/routes.go +2−1

@@ -174,7 +174,7 @@ func (s *Server) repoRoutes(mux *http.ServeMux) {
174 174 mux.HandleFunc("POST /{name}/issues/{id}/labels", w.SetIssueLabels)
175 175 mux.HandleFunc("POST /{name}/issues/{id}/assignees", w.SetIssueAssignees)
176 176
177 // Change requests: conversation, the Files tab, the Runs tab, and the
177 // Change requests: conversation, the Commits, Files and Runs tabs, and the
178 178 // approval and comment writes.
179 179 mux.HandleFunc("GET /{name}/changes", w.Requests)
180 180 mux.HandleFunc("GET /{name}/changes/new", w.NewChangePage)
@@ -184,6 +184,7 @@ func (s *Server) repoRoutes(mux *http.ServeMux) {
184 184 mux.HandleFunc("POST /{name}/changes/{id}/edit", w.UpdateRequestDetails)
185 185 mux.HandleFunc("GET /{name}/changes/{id}/files", w.RequestFiles)
186 186 mux.HandleFunc("GET /{name}/changes/{id}/files/{path...}", w.RequestFiles)
187 mux.HandleFunc("GET /{name}/changes/{id}/commits", w.RequestCommits)
187 188 mux.HandleFunc("GET /{name}/changes/{id}/runs", w.RequestRuns)
188 189 mux.HandleFunc("GET /{name}/changes/{id}/live", w.RequestLive)
189 190 mux.HandleFunc("GET /{name}/changes/{id}/issues/search", w.SearchRequestIssues)