Sign in

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

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.

Store changes under changes/<ulid>/change.md

b492b557f5cc5633b3dcb21fdbb5e2ad98d0bc16 · Keenan Nemetz · 3d ago · parent 9bce3723

Store changes under changes/<ulid>/change.md

The web, the CLI, and the docs call these items changes; only the metadata
tree still said requests. Rename the directory and the record file so the
format and the product use one word.

The tree is a contract, so this is a format change rather than a display
change: the top-level layout stays closed, and a request path no longer
validates. An existing repository is migrated by rewriting its vole branch,
which is an audited admin force-push; the index rebuilds from the new tip
and the #N aliases keep their ULIDs because the rewrite preserves commit
order.

Refs #202 (01M6S3JC3Y2KA6EFJK6APX7A1T).

metadata/number.go +2−2

@@ -41,7 +41,7 @@ var (
41 41 // entity, not every file under it: a comment added to an existing issue in the
42 42 // same commit must not take a number, and an approval never held one.
43 43 numberIssuePathRE = regexp.MustCompile(`^issues/([0-9A-HJKMNP-TV-Z]{26})/issue\.md$`)
44 numberRequestPathRE = regexp.MustCompile(`^requests/([0-9A-HJKMNP-TV-Z]{26})/request\.md$`)
44 numberRequestPathRE = regexp.MustCompile("^" + regexp.QuoteMeta(ChangesDir) + `/([0-9A-HJKMNP-TV-Z]{26})/change\.md$`)
45 45 numberRE = regexp.MustCompile(`^[0-9]{1,9}$`)
46 46 )
47 47
@@ -77,7 +77,7 @@ func LoadNumbersAt(g *git.Repo, commit string) (*Numbers, error) {
77 77 if commit == "" {
78 78 return newNumbers(), nil
79 79 }
80 groups, err := g.AddedPathsPerCommit(commit, IssuesDir, RequestsDir)
80 groups, err := g.AddedPathsPerCommit(commit, IssuesDir, ChangesDir)
81 81 if err != nil {
82 82 return nil, err
83 83 }