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.
Add the workflow list and run cancel/rerun actions
0b26547e3ead573cfa604260d5f0bde83bcf18b0 · Keenan Nemetz · 15d ago · parent 455835e7
Add the workflow list and run cancel/rerun actions
The Runs tab now links to /r/{name}/workflows, which reads the default branch with the same validator the push boundary uses and shows triggers, jobs, runner labels, image, steps, outputs, and each job's latest run.
Maintainers can cancel a queued run or rerun a finished one. Rerun is another attempt on the same queue row, not a second row: the queue deliberately has one run per (repo, ref, sha, workflow, job), and attempts already carry their own logs and attestations. Running jobs are not interrupted. Both actions carry CSRF and are audited.
server/web/templates/workflows.html +55
| @@ -0,0 +1,55 @@ | |||
| 1 | {{define "workflows"}} | ||
| 2 | {{template "header" .}} | ||
| 3 | {{template "repohead" (nav .Name "runs" .CanAdmin)}} | ||
| 4 | |||
| 5 | <div class="page-head"> | ||
| 6 | <div class="page-head-main"> | ||
| 7 | <h1>Workflows</h1> | ||
| 8 | <p class="page-sub">Jobs defined on <code>{{.Ref}}</code>. A push that matches a trigger queues them.</p> | ||
| 9 | </div> | ||
| 10 | <div class="page-head-actions"> | ||
| 11 | <a class="button secondary" href="/r/{{.Name}}/runs">{{icon "play"}}Runs</a> | ||
| 12 | </div> | ||
| 13 | </div> | ||
| 14 | |||
| 15 | {{range .Problems}}<div class="flash bad">{{.}}</div>{{end}} | ||
| 16 | |||
| 17 | {{if .Workflows}} | ||
| 18 | {{range .Workflows}}{{$wf := .}} | ||
| 19 | <div class="card"> | ||
| 20 | <h2>{{icon "list"}}{{.Path}}</h2> | ||
| 21 | <p class="muted">branches {{join .Branches ", "}}{{if .Tags}} · tags {{join .Tags ", "}}{{end}}</p> | ||
| 22 | <div class="panel"> | ||
| 23 | <table> | ||
| 24 | <thead><tr><th>Job</th><th>Runs on</th><th>Image</th><th>Steps</th><th>Outputs</th><th>Last run</th></tr></thead> | ||
| 25 | <tbody> | ||
| 26 | {{range .Jobs}} | ||
| 27 | <tr> | ||
| 28 | <td><a href="/r/{{$.Name}}/blob/{{esc $.Ref}}/{{pathurl $wf.Path}}">{{.ID}}</a></td> | ||
| 29 | <td class="muted">{{if .Labels}}{{join .Labels ", "}}{{else}}any runner{{end}}</td> | ||
| 30 | <td>{{if .Image}}<code>{{.Image}}</code>{{else}}<span class="muted">none</span>{{end}}</td> | ||
| 31 | <td class="muted">{{.Steps}}</td> | ||
| 32 | <td class="muted">{{.Artifacts}} artifact(s){{if .Pages}} · site{{end}}</td> | ||
| 33 | <td> | ||
| 34 | {{if .Last}}<a href="/r/{{$.Name}}/runs/{{.Last.ID}}">{{.Last.Status}}</a> <span class="muted">{{since .Last.Created.Unix}}</span>{{else}}<span class="muted">never</span>{{end}} | ||
| 35 | </td> | ||
| 36 | </tr> | ||
| 37 | {{end}} | ||
| 38 | </tbody> | ||
| 39 | </table> | ||
| 40 | </div> | ||
| 41 | </div> | ||
| 42 | {{end}} | ||
| 43 | {{else if .HasCommit}} | ||
| 44 | <div class="empty-state"> | ||
| 45 | <p>No workflows on <code>{{.Ref}}</code>.</p> | ||
| 46 | <p class="muted">Add a file under <code>.vole/workflows/</code> and push to a matching branch.</p> | ||
| 47 | </div> | ||
| 48 | {{else}} | ||
| 49 | <div class="empty-state"> | ||
| 50 | <p>The repository has no commits yet.</p> | ||
| 51 | <p class="muted">Push a workflow under <code>.vole/workflows/</code> to get started.</p> | ||
| 52 | </div> | ||
| 53 | {{end}} | ||
| 54 | {{template "footer" .}} | ||
| 55 | {{end}} | ||