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.
Rewrite documentation around reader tasks
d1f44d838966c0a4762073f12375ec7562582fdf · Keenan Nemetz · 21h ago · parent 9103f6a8
docs/issues.md +183−49
| @@ -1,96 +1,230 @@ | |||
| 1 | 1 | # Issues | |
| 2 | 2 | ||
| 3 | Use issues to plan work and discuss it beside the code. Vole stores every issue | ||
| 4 | and comment on the repository's `vole` branch, so clones include their contents | ||
| 5 | and history. | ||
| 3 | Use issues to plan work, record bugs, and discuss decisions beside the code. | ||
| 4 | Vole stores every issue and comment as Markdown on the repository's `vole` | ||
| 5 | branch, so a clone includes both their contents and their history. | ||
| 6 | |||
| 7 | Start from a repository clone whose Vole remote is `origin`. You need contributor | ||
| 8 | access to create and discuss issues, and maintainer access to triage other | ||
| 9 | people's work. Reads work offline; CLI writes use the SSH identity for `origin`, | ||
| 10 | not the author name in `git config`. | ||
| 6 | 11 | ||
| 7 | 12 | ## Create an issue | |
| 8 | 13 | ||
| 9 | From a repository clone, provide a title and description: | ||
| 14 | Give the issue a title and a Markdown description: | ||
| 10 | 15 | ||
| 11 | 16 | ```sh | |
| 12 | 17 | vole issue new \ | |
| 13 | 18 | --title "Search returns no results" \ | |
| 14 | 19 | -m "Steps to reproduce the empty result." \ | |
| 15 | -l bug \ | ||
| 16 | -a wilbur | ||
| 20 | -l bug | ||
| 17 | 21 | ``` | |
| 18 | 22 | ||
| 19 | Repeat `-l` to add labels and `-a` to add assignees. Use `-F <file>` instead of | ||
| 20 | `-m` to read a Markdown description from a file. | ||
| 23 | The command prints the issue's durable ID and its number, ending with a line | ||
| 24 | such as: | ||
| 25 | |||
| 26 | ```text | ||
| 27 | filed as #1 | ||
| 28 | ``` | ||
| 21 | 29 | ||
| 22 | The command prints the issue's 26-character ULID and its `#number`. Use the | ||
| 23 | number in conversation and the full ULID in scripts, commit messages, and durable | ||
| 24 | links. [Issue identifiers](reference/issue-format.md#numbers) explains why a | ||
| 25 | rewritten metadata history can change numbers. | ||
| 30 | Use the number in conversation and everyday commands. The examples below use | ||
| 31 | issue `1` and account `you`; substitute your own values. Use the full | ||
| 32 | 26-character ULID in scripts, commit messages, and durable links. [Numbers](#numbers) | ||
| 33 | explains the difference. | ||
| 34 | |||
| 35 | Repeat `-l` to add more labels and use `-a <account>` to assign the issue. Use | ||
| 36 | `-F <file>` instead of `-m` to read the description from a Markdown file, or | ||
| 37 | `-F -` to read it from standard input. | ||
| 26 | 38 | ||
| 27 | 39 | ## Find and read issues | |
| 28 | 40 | ||
| 41 | List open issues, then read one: | ||
| 42 | |||
| 43 | ```sh | ||
| 44 | vole issue list | ||
| 45 | vole issue show 1 | ||
| 46 | ``` | ||
| 47 | |||
| 48 | `issue show` prints the description, labels, assignees, and discussion. Comment | ||
| 49 | headings include the IDs you need for replies and edits. | ||
| 50 | |||
| 51 | Filter by label or assignee, or include closed issues: | ||
| 52 | |||
| 53 | ```sh | ||
| 54 | vole issue list -l bug | ||
| 55 | vole issue list --assignee you | ||
| 56 | vole issue list --state all | ||
| 57 | ``` | ||
| 58 | |||
| 59 | Format a compact list for a terminal or script: | ||
| 60 | |||
| 61 | ```sh | ||
| 62 | vole issue list --format '%(number) %(state) %(author) %(title)' | ||
| 63 | ``` | ||
| 64 | |||
| 65 | ```text | ||
| 66 | #1 open you Search returns no results | ||
| 67 | ``` | ||
| 68 | |||
| 69 | An issue ID can be a number, a full ULID, or an unambiguous ULID prefix. Quote a | ||
| 70 | number written with `#` so the shell does not treat it as a comment: | ||
| 71 | |||
| 29 | 72 | ```sh | |
| 30 | vole issue list --state open | ||
| 31 | vole issue list -l bug --assignee wilbur | ||
| 32 | vole issue list --format '%(number) %(state) %(title)' | ||
| 33 | vole issue show 42 | ||
| 73 | vole issue show '#1' | ||
| 34 | 74 | ``` | |
| 35 | 75 | ||
| 36 | An issue id can be a full ULID, a ULID prefix, or a number with or without `#`. | ||
| 37 | Quote the `#` form so your shell does not treat it as a comment: | ||
| 76 | Use `--remote <name>` when the clone has more than one Vole remote. The browser's | ||
| 77 | issue list provides the same state, label, and assignee filters, plus search | ||
| 78 | across titles and bodies. | ||
| 79 | |||
| 80 | ## Discuss an issue | ||
| 81 | |||
| 82 | Add a comment: | ||
| 38 | 83 | ||
| 39 | 84 | ```sh | |
| 40 | vole issue show '#42' | ||
| 85 | vole issue comment 1 -m "I can reproduce this on the latest commit." | ||
| 41 | 86 | ``` | |
| 42 | 87 | ||
| 43 | Read-only commands work offline from a clone. Commands that write metadata use | ||
| 44 | the SSH identity for the repository remote, not the author name in `git config`. | ||
| 45 | Use `--remote <name>` when the clone has more than one remote. | ||
| 88 | The command prints the new comment ID after `commented on …`. You can also find | ||
| 89 | it in `vole issue show 1`. Use that ID, or an unambiguous prefix, to reply: | ||
| 46 | 90 | ||
| 47 | ## Discuss and edit an issue | ||
| 91 | ```sh | ||
| 92 | vole issue comment 1 --reply-to <comment-id> \ | ||
| 93 | -m "That case is covered now." | ||
| 94 | ``` | ||
| 48 | 95 | ||
| 49 | Add a comment, reply to one, or correct your own text: | ||
| 96 | Edit or delete one of your own comments: | ||
| 50 | 97 | ||
| 51 | 98 | ```sh | |
| 52 | vole issue comment 42 -m "I can reproduce this on the latest commit." | ||
| 53 | vole issue comment 42 --reply-to <comment-id> -m "That case is covered now." | ||
| 54 | vole issue edit-comment 42 <comment-id> -m "Corrected reproduction steps." | ||
| 55 | vole issue rm-comment 42 <comment-id> | ||
| 99 | vole issue edit-comment 1 <comment-id> -m "Corrected reproduction steps." | ||
| 100 | vole issue rm-comment 1 <comment-id> | ||
| 56 | 101 | ``` | |
| 57 | 102 | ||
| 58 | The issue author or a maintainer can edit the issue's title and description. | ||
| 59 | Only a comment's author can edit or delete that comment; an admin override is | ||
| 103 | Only a comment's author can edit or delete it; an administrator override is | ||
| 60 | 104 | recorded in the audit log. Deletion leaves a tombstone so replies retain their | |
| 61 | thread, but the old text remains in Git history. | ||
| 105 | thread. The old text remains in Git history, so deletion is not redaction. | ||
| 106 | |||
| 107 | ## Triage an issue | ||
| 62 | 108 | ||
| 63 | ## Triage and close | ||
| 109 | Correct the title or replace the description: | ||
| 64 | 110 | ||
| 65 | 111 | ```sh | |
| 66 | vole issue edit 42 --title "Search returns no results for an exact match" | ||
| 67 | vole issue assign 42 wilbur | ||
| 68 | vole issue unassign 42 wilbur | ||
| 69 | vole issue close 42 | ||
| 70 | vole issue reopen 42 | ||
| 112 | vole issue edit 1 --title "Search returns no results for an exact match" | ||
| 113 | vole issue edit 1 -m "Updated reproduction steps." | ||
| 71 | 114 | ``` | |
| 72 | 115 | ||
| 73 | Maintainers can triage any issue. Contributors can manage issues they authored. | ||
| 74 | The browser's issue page offers the same actions to the same roles, plus filters | ||
| 75 | and search across titles and bodies. | ||
| 116 | Set the complete label list with repeated `-l` options: | ||
| 76 | 117 | ||
| 77 | To close an issue when a change lands, link it with the change request's | ||
| 78 | `--closes` option. Writing `Fixes #42` in a description is only prose. See | ||
| 79 | [Link issues to a change](change-requests.md#link-issues-to-a-change). | ||
| 118 | ```sh | ||
| 119 | vole issue edit 1 -l bug -l search | ||
| 120 | ``` | ||
| 121 | |||
| 122 | This example replaces the existing labels with `bug` and `search`; it does not | ||
| 123 | append to them. Omit `-l` to leave labels unchanged. Other fields that you omit | ||
| 124 | also stay unchanged. | ||
| 125 | |||
| 126 | Assign or unassign accounts: | ||
| 127 | |||
| 128 | ```sh | ||
| 129 | vole issue assign 1 you | ||
| 130 | vole issue unassign 1 you | ||
| 131 | ``` | ||
| 132 | |||
| 133 | Close the issue when the work is done, or reopen it if the problem returns: | ||
| 134 | |||
| 135 | ```sh | ||
| 136 | vole issue close 1 | ||
| 137 | vole issue reopen 1 | ||
| 138 | ``` | ||
| 139 | |||
| 140 | Contributors can manage issues they authored. Maintainers can triage any issue. | ||
| 141 | The browser offers the same actions under the same role rules. | ||
| 142 | |||
| 143 | To close an issue automatically when a change lands, link it with the change | ||
| 144 | request's `--closes` option. Writing `Fixes #1` in a description is only prose. | ||
| 145 | See [Link issues to a change](change-requests.md#link-issues-to-a-change). | ||
| 146 | |||
| 147 | ## Mention people and link work | ||
| 148 | |||
| 149 | Issue descriptions and comments support Markdown, account mentions, and work | ||
| 150 | links: | ||
| 80 | 151 | ||
| 81 | ## Inspect the underlying files | ||
| 152 | - `@you` mentions an account and links to that profile when the account exists. | ||
| 153 | - `#1` links to the issue or change request with that number. | ||
| 154 | - `#<ulid>` links by durable ID, even if metadata history is later rewritten. | ||
| 155 | - A commit that mentions an issue or request ID appears as a backlink on its page. | ||
| 82 | 156 | ||
| 83 | Each issue is Markdown with YAML metadata: | ||
| 157 | Mentions inside inline code or fenced code blocks remain plain text. They also | ||
| 158 | do not match workflow `mentioned` filters. See | ||
| 159 | [React to repository events](workflows.md#react-to-repository-events) for | ||
| 160 | issue-driven automation. | ||
| 161 | |||
| 162 | ## Issue format | ||
| 163 | |||
| 164 | The CLI and browser are the normal way to write issues. The CLI commits to | ||
| 165 | `vole` and pushes over SSH; the browser uses the same writers on the server. | ||
| 166 | Both enforce authorship and role rules and serialize concurrent updates. Read | ||
| 167 | commands such as `issue list` and `issue show` use the clone directly and work | ||
| 168 | without a network. | ||
| 169 | |||
| 170 | Each issue and comment is a separate file: | ||
| 84 | 171 | ||
| 85 | 172 | ```text | |
| 86 | 173 | issues/<ulid>/issue.md | |
| 87 | 174 | issues/<ulid>/comments/<ulid>.md | |
| 88 | 175 | ``` | |
| 89 | 176 | ||
| 90 | Use the CLI or browser for normal writes. They preserve authorship rules, | ||
| 91 | serialize concurrent updates, and push the resulting commit. The | ||
| 92 | [issue format reference](reference/issue-format.md) documents the files, | ||
| 93 | validation rules, mentions, backlinks, and comment behavior for tooling authors. | ||
| 177 | An issue file contains YAML front matter followed by its Markdown body: | ||
| 178 | |||
| 179 | ```markdown | ||
| 180 | --- | ||
| 181 | title: "Search returns no results" | ||
| 182 | state: open | ||
| 183 | author: you | ||
| 184 | created: 2026-10-22T21:30:00Z | ||
| 185 | labels: | ||
| 186 | - bug | ||
| 187 | assignees: | ||
| 188 | - you | ||
| 189 | --- | ||
| 190 | Steps to reproduce the empty result. | ||
| 191 | ``` | ||
| 192 | |||
| 193 | A comment file contains `author`, `created`, and optional `reply_to` metadata. | ||
| 194 | The web interface collects a root comment's descendants beneath it and displays | ||
| 195 | one level of nesting. A deleted comment carries a tombstone instead of a body. | ||
| 196 | |||
| 197 | ### Numbers | ||
| 198 | |||
| 199 | Issues and change requests share one number sequence, ordered by creation. Vole | ||
| 200 | derives each number from the position of the entity's creation commit in the | ||
| 201 | metadata branch's history; the issue file does not store a counter. | ||
| 202 | |||
| 203 | Clones of the same history therefore derive the same numbers, and | ||
| 204 | `vole admin index rebuild` can reconstruct them from Git. Rewriting the `vole` | ||
| 205 | branch, such as an administrator's redaction force-push, can renumber entities | ||
| 206 | created after the rewritten commit. | ||
| 207 | |||
| 208 | Use `#1` for current conversation and commands. Use a full ULID when a reference | ||
| 209 | must survive rewritten history or an abbreviated ID might be ambiguous. In | ||
| 210 | Markdown, `#<ulid>` is the durable link form. | ||
| 211 | |||
| 212 | ### Writes and validation | ||
| 213 | |||
| 214 | The CLI, browser, and pre-receive hook use the same metadata validation. Each | ||
| 215 | write reads the current branch, validates the change, and retries if another | ||
| 216 | writer moved the branch first. Metadata history must remain linear; Vole rejects | ||
| 217 | merge commits on the `vole` branch. | ||
| 218 | |||
| 219 | Direct Git writes are possible for tooling, but they must use the documented | ||
| 220 | layout and pass the same validation. Prefer the CLI or Vole's `metadata` Go | ||
| 221 | package over constructing front matter with string concatenation. Force-pushing | ||
| 222 | `vole` requires repository admin and is recorded in `data/audit.log`; that path | ||
| 223 | is for redaction, not ordinary edits. | ||
| 224 | |||
| 225 | The web index in `data/index.db` supports filters and search, but it is derived | ||
| 226 | state. The files and history on the repository's `vole` branch are the source of | ||
| 227 | truth. | ||
| 94 | 228 | ||
| 95 | 229 | ## Next | |
| 96 | 230 | ||