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.
Number issues and change requests for human references
e05f1c48d4ee55635cd7b77889f0545137198106 · Keenan Nemetz · 13d ago · parent 41d1fee9
Number issues and change requests for human references A ULID is an unreadable handle, and the 8-character prefix the list showed is mostly timestamp: this repository's 27 issues shared seven distinct six-character prefixes and two pairs already collided at eight. The part people actually type carried almost no information. Issues and change requests now share one gap-free sequence (#1, #42, ...) derived from the creation order in the metadata branch's history, the way one forge counts both in a single run. The number is not stored. It is the rank of the entity's creation commit, so nothing is written when an entity is created, a repository needs no backfill, the same history gives the same numbers on every clone, and `vole admin index rebuild` reproduces them from git. A ULID stays the identity: paths, front matter, `closes:` and audit entries are unchanged, and data/index.db only caches the mapping so a page render does not walk history. Every id-taking command accepts a number, `#42` links in a body through a kind-agnostic /r/<repo>/n/42 route, and --closes resolves an alias to the ULID before writing. Closes #45
server/web/issues.go +7−2
| @@ -140,8 +140,11 @@ func issueListURL(name, state, query, label, assignee string, page int) string { | |||
| 140 | 140 | // rebuilding the whole page. | |
| 141 | 141 | type issueSidebarView struct { | |
| 142 | 142 | Page | |
| 143 | Name string | ||
| 144 | Issue *metadata.Issue | ||
| 143 | Name string | ||
| 144 | Issue *metadata.Issue | ||
| 145 | // Number is the `#42` alias. It is a display convenience: the issue's ID is | ||
| 146 | // the identity, and the number is derived from the creation order in history. | ||
| 147 | Number int | ||
| 145 | 148 | CanClose bool | |
| 146 | 149 | CanDiscuss bool | |
| 147 | 150 | CanEditLabels bool | |
| @@ -165,10 +168,12 @@ func (w *Web) issueSidebar(r *http.Request, m *repo.Meta, iss *metadata.Issue, t | |||
| 165 | 168 | _ = w.Index.EnsureIssues(m) | |
| 166 | 169 | labels, _ := w.Index.Labels(m.ID) | |
| 167 | 170 | assignable := mergeNames(w.assignableAccounts(m), iss.Assignees) | |
| 171 | number, _, _ := w.Index.Number(m.ID, iss.ID) | ||
| 168 | 172 | return issueSidebarView{ | |
| 169 | 173 | Page: w.page(r, title), | |
| 170 | 174 | Name: m.Name, | |
| 171 | 175 | Issue: iss, | |
| 176 | Number: number, | ||
| 172 | 177 | CanClose: canManage, | |
| 173 | 178 | CanDiscuss: w.canDiscuss(r, acl), | |
| 174 | 179 | CanEditLabels: canManage, | |