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.
Create and edit releases from the browser
ec34301375902f6b08c0171bf91b98cbcc55c63c · Keenan Nemetz · 15d ago · parent 09b15120
Create and edit releases from the browser Maintainers get a New release form that writes the same annotated tag the CLI writes: tag name, target commit, and notes become the tag message, with the account as tagger. Edit notes rewrites the tag message only while no artifact is attached, matching the release-immutability rule; lightweight tags and releases with files stay locked. Tag names are validated, existing tags are refused, reserved page names are rejected, and both actions are audited.
server/web/templates/releases.html +10−7
| @@ -7,18 +7,20 @@ | |||
| 7 | 7 | <h1>Releases</h1> | |
| 8 | 8 | <p class="page-sub">{{if .Tags}}{{len .Tags}} tag(s){{if .Lightweight}} · {{.Lightweight}} lightweight{{end}}{{else}}Tags with notes, artifacts, and archives.{{end}}</p> | |
| 9 | 9 | </div> | |
| 10 | {{if .CanManage}}<div class="page-head-actions"><a class="button" href="/r/{{.Name}}/releases/new">{{icon "plus"}}New release</a></div>{{end}} | ||
| 10 | 11 | </div> | |
| 11 | 12 | ||
| 12 | 13 | {{if .Tags}} | |
| 13 | 14 | <table> | |
| 14 | <tr><th>Tag</th><th>Notes</th><th>Tagger</th><th>Age</th><th>Source</th></tr> | ||
| 15 | <tr><th>Tag</th><th>Notes</th><th>Tagger</th><th>Age</th><th>Source</th>{{if .CanManage}}<th></th>{{end}}</tr> | ||
| 15 | 16 | {{range .Tags}} | |
| 16 | 17 | <tr> | |
| 17 | <td><a href="/r/{{$.Name}}/releases/{{.Name}}">{{.Name}}</a>{{if not .Annotated}} <span class="label">lightweight</span>{{end}}</td> | ||
| 18 | <td><a href="/r/{{$.Name}}/releases/{{esc .Name}}">{{.Name}}</a>{{if not .Annotated}} <span class="label">lightweight</span>{{end}}</td> | ||
| 18 | 19 | <td class="muted">{{.Subject}}</td> | |
| 19 | 20 | <td class="muted">{{if .Tagger}}{{.Tagger}}{{else}}—{{end}}</td> | |
| 20 | 21 | <td class="muted">{{since .When}}</td> | |
| 21 | <td><a href="/r/{{$.Name}}/releases/{{.Name}}/archive.tar">tar</a> · <a href="/r/{{$.Name}}/releases/{{.Name}}/archive.tar.gz">tar.gz</a></td> | ||
| 22 | <td><a href="/r/{{$.Name}}/releases/{{esc .Name}}/archive.tar">tar</a> · <a href="/r/{{$.Name}}/releases/{{esc .Name}}/archive.tar.gz">tar.gz</a></td> | ||
| 23 | {{if $.CanManage}}<td>{{if .Annotated}}<a href="/r/{{$.Name}}/releases/edit?tag={{urlquery .Name}}">edit notes</a>{{end}}</td>{{end}} | ||
| 22 | 24 | </tr> | |
| 23 | 25 | {{end}} | |
| 24 | 26 | </table> | |
| @@ -47,6 +49,7 @@ records a tagger and a message, which is what makes a tag a release.</p> | |||
| 47 | 49 | · commit <a class="sha" href="/r/{{.Name}}/commit/{{.Tag.Commit}}">{{short .Tag.Commit}}</a> | |
| 48 | 50 | </p> | |
| 49 | 51 | </div> | |
| 52 | {{if .CanEdit}}<div class="page-head-actions"><a class="button secondary" href="/r/{{.Name}}/releases/edit?tag={{urlquery .Tag.Name}}">{{icon "sliders-horizontal"}}Edit notes</a></div>{{end}} | ||
| 50 | 53 | </div> | |
| 51 | 54 | ||
| 52 | 55 | {{if .Notes}} | |
| @@ -63,10 +66,10 @@ release a description; the tarball below works either way.</p> | |||
| 63 | 66 | <tr><th>File</th><th>Size</th><th>SHA-256</th><th></th></tr> | |
| 64 | 67 | {{range .Artifacts}} | |
| 65 | 68 | <tr> | |
| 66 | <td><a href="/r/{{$.Name}}/releases/{{$.Tag.Name}}/artifacts/{{.Name}}">{{.Name}}</a></td> | ||
| 69 | <td><a href="/r/{{$.Name}}/releases/{{esc $.Tag.Name}}/artifacts/{{.Name}}">{{.Name}}</a></td> | ||
| 67 | 70 | <td class="muted">{{.Size}}</td> | |
| 68 | 71 | <td class="muted"><code>{{short .OID}}</code></td> | |
| 69 | <td><a href="/r/{{$.Name}}/releases/{{$.Tag.Name}}/artifacts/{{.Name}}">download</a></td> | ||
| 72 | <td><a href="/r/{{$.Name}}/releases/{{esc $.Tag.Name}}/artifacts/{{.Name}}">download</a></td> | ||
| 70 | 73 | </tr> | |
| 71 | 74 | {{end}} | |
| 72 | 75 | </table> | |
| @@ -80,8 +83,8 @@ release a description; the tarball below works either way.</p> | |||
| 80 | 83 | ||
| 81 | 84 | <div class="card"> | |
| 82 | 85 | <h2>Source</h2> | |
| 83 | <p><a href="/r/{{.Name}}/releases/{{.Tag.Name}}/archive.tar">Download .tar</a> | ||
| 84 | · <a href="/r/{{.Name}}/releases/{{.Tag.Name}}/archive.tar.gz">Download .tar.gz</a></p> | ||
| 86 | <p><a href="/r/{{.Name}}/releases/{{esc .Tag.Name}}/archive.tar">Download .tar</a> | ||
| 87 | · <a href="/r/{{.Name}}/releases/{{esc .Tag.Name}}/archive.tar.gz">Download .tar.gz</a></p> | ||
| 85 | 88 | <p class="muted">Generated from the tag when you ask for it, not stored — the same bytes on | |
| 86 | 89 | every request, so a cached copy cannot go stale.</p> | |
| 87 | 90 | {{if .LFSPointers}}<p class="muted">This repository tracks files with Git LFS: those files appear | |