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.
Manage release files from the CLI and browser
c51874492382d08085b6388cea898d0d60ab9375 · Keenan Nemetz · 17d ago · parent 214e7ea6
Manage release files from the CLI and browser Move the attach form to its own page, add move/remove operations to the CLI and browser, and simplify the release detail page to notes, files, and source links.
cmd/vole/attach.go +2−8
| @@ -53,14 +53,8 @@ func cmdReleaseAttach(args []string) error { | |||
| 53 | 53 | // The tag has to be an annotated tag on the server before artifacts can hang | |
| 54 | 54 | // off it: a release whose notes nobody wrote is a release page with no | |
| 55 | 55 | // description, and the artifacts would be the only thing on it. | |
| 56 | typ, err := c.Repo.Run(nil, "cat-file", "-t", "refs/tags/"+tag) | ||
| 57 | if err != nil { | ||
| 58 | return fmt.Errorf("no tag %s here; create and push the release first "+ | ||
| 59 | "(vole release create %s -F notes.md && git push --follow-tags)", tag, tag) | ||
| 60 | } | ||
| 61 | if strings.TrimSpace(string(typ)) != "tag" { | ||
| 62 | return fmt.Errorf("%s is a lightweight tag; a release needs an annotated tag with notes "+ | ||
| 63 | "(git tag -a %s -F notes.md)", tag, tag) | ||
| 56 | if err := requireAnnotatedRelease(c, tag); err != nil { | ||
| 57 | return err | ||
| 64 | 58 | } | |
| 65 | 59 | ||
| 66 | 60 | remoteURL, err := client.RemoteURL(c.Repo.Dir, c.Remote) | |