Change requests#
Use a change request to review a branch before it lands. Vole records the exact
base and head under review, the discussion, and each approval on the
repository's vole branch. CI results remain on the instance and appear beside
the review.
Start from a clone whose Vole remote is origin. The examples use a fix-search
branch, issue #1, and change request #2. Issues and requests share one number
sequence, so your request may have a different number.
1. Push a branch#
Create a branch, commit your changes, and push it. Replace <file> with the
paths you changed:
git switch -c fix-search
git add <file>
git commit -m "Handle an empty search index"
git push -u origin fix-search
A maintainer can push an ordinary branch. A contributor must push into their account namespace instead:
git push -u origin HEAD:refs/heads/contrib/<account>/fix-search
Use that full contributor branch name for --head below.
Contributor branches and CI
CI waits for a maintainer to choose Allow CI for the exact contributor commit. Every new head needs another decision. See Contributor branches.
2. Open the request#
Open a request from fix-search into main:
vole change new \
--title "Handle an empty search index" \
--base main \
--head fix-search \
--closes 1 \
-m "Explain the cause, the fix, and how you tested it."
Omit --closes 1 when there is no issue to close. Repeat it to link multiple
issues. The command prints the request's durable ULID and ends with:
opened as #2
The browser's Open change request form offers the same fields and lists branches your account may propose.
The request follows the remote head branch. If your local branch is behind, Vole records the remote tip rather than your stale commit. The head must contain a change: Vole refuses a head that is already the base or one of its ancestors.
3. Review and discuss#
List open requests and inspect one:
vole change list
vole change show 2
change show prints the exact base and head, followed branch, approval state,
mergeability, and combined-result state when a merge is needed. It also prints
comment IDs for replies and edits.
In the browser, use Conversation for discussion and approvals, Commits for the branch history, Files for the diff and line comments, and Runs for workflow results.
Add general feedback or comment on a diff line:
vole change comment 2 -m "Does this handle an empty repository?"
vole change comment 2 --path <file> --line <line> \
-m "This drops the empty-index check."
Replace <file> and <line> with a path and line number from the diff. Use
--side old for a removed line. If the CLI reports that the relevant commits
are missing, run git fetch origin and try again.
Reply to a comment, or edit and delete your own:
vole change comment 2 --reply-to <comment-id> -m "Added a regression test."
vole change edit-comment 2 <comment-id> -m "Corrected review note."
vole change rm-comment 2 <comment-id>
A line comment retains the source blob it reviewed, so Vole can show its original context and mark it outdated when that file changes. Deleted comments leave tombstones; their old text remains in Git history.
4. Address review#
Commit on the same branch and push again:
git push origin fix-search
The request follows the new remote tip automatically. Do not run
vole change update --head after an ordinary push. A new head makes approvals
of the old head stop counting and needs new CI results. Contributor-branch CI
also waits for approval of the new tip.
Use change update --head <branch> only to follow a different branch, or
--head <commit> to pin the request to one commit. Use --base <branch> to
retarget the review; changing the base also invalidates earlier approvals.
5. Approve and merge#
A reviewer other than the author, with maintainer or admin access, approves the exact displayed head:
vole change approve 2
Vole refuses self-approval. After the required approvals and trusted CI checks pass, a maintainer can merge the request:
vole change merge <request-ulid>
Use the full ULID printed by change new or change show for this server-side
operation. The browser's Merge action applies the same rules.
If the base moved and the branches cannot fast-forward, Vole tests the combined result before landing it. When that result is still running, the merge command or Merge when ready waits to land a passing result. A new head, a closed request, lost merge permission, or a conflict cancels the wait.
After merging, update your local base branch and inspect the result:
git switch main
git pull
vole change show 2
vole issue show 1
The request is now merged. A linked issue is closed; omit the issue command
if the request did not link one.
Correct the title or description#
Correct prose without starting the review over, including on a closed or merged request:
vole change update 2 --title "Handle an empty search index safely"
vole change update 2 -m "Corrected explanation; the reviewed head is unchanged."
--title replaces the title; -m or -F replaces the description. These edits
leave the base, head, and approvals untouched because approvals name commits,
not prose.
Link issues to a change#
The request's closes: metadata, not prose such as Fixes #1, closes issues
when the change lands:
vole change update 2 --closes 1
vole change update 2 --closes 1 --closes 3
vole change update 2 --no-closes
Each update replaces the complete list. --closes accepts an issue number or
ULID and stores the full ULID. Linking does not close an issue immediately, and
closing a request without merging leaves its issues open. Only an open request's
author or a maintainer can change the list.
Instance admins can require at least one linked issue for new requests:
vole admin acl require-issues enable demo
Existing requests are unaffected when this policy changes.
Close a request without merging#
Close a request you do not intend to land, or reopen it to continue:
vole change close 2
vole change reopen 2
Closing without merging leaves linked issues open and does not move the base branch.
Stack dependent requests#
With both branches pushed, open the upper request against the lower branch to isolate its diff:
vole change new --title "Add ranking" \
--base fix-search --head add-ranking \
-m "Depends on the empty-index fix."
After the lower request lands, retarget the upper request:
vole change update 3 --base main
Retargeting changes the diff and invalidates earlier approvals.
Configure review policy#
Instance admins can protect branches and require approvals and CI:
vole admin acl protect add demo refs/heads/main
vole admin acl set-approvals demo 1
vole admin acl checks enable demo
Admins can push protected branches directly. Merges through review and privileged
overrides are recorded in data/audit.log. Required checks count only results
from accounts with the runner role; maintainers and admins count implicitly.
See Who can run jobs and report results.
Change-request semantics#
A change request connects a base branch, a proposed head, review records, and CI results. This section defines the storage and validation rules behind the workflow above.
Storage layout#
changes/<ulid>/change.md
changes/<ulid>/comments/<ulid>.md
changes/<ulid>/approvals/<account-name>.md
change.md records the title, state, author, base, head, followed head ref, and
closes: issue IDs. Discussion and approvals use the same metadata branch and
pre-receive validation as issues. CI records remain in data/instance.db.
Branch following and pinning#
A request opened from a branch stores that branch in head_ref: and its current
remote tip in head:. After every accepted push to the followed branch, Vole
moves head: to the new tip.
Vole resolves the branch on the remote. If the local clone is behind, the command records the remote tip and reports that difference on stderr. A branch that exists only locally can be recorded with a warning that it is not yet on the remote.
A request opened from a bare commit has no followed branch and stays pinned to that commit. For an open request:
vole change update <id> --head <branch>follows a branch;--head <commit>pins one commit;--base <branch>changes the review's target and diff.
Deleting a followed branch leaves its last observed commit in head:, and the
request page reports that the branch is gone.
Contributors can propose only branches below
refs/heads/contrib/<account>/. Maintainers and admins can propose ordinary
shared branches. The browser and pre-receive hook apply the same restriction.
Linked issues#
change.md stores full issue ULIDs in closes:. --closes resolves each issue
when the request is written and rejects a number that names another change
request.
Landing a merged request closes its linked issues in the same metadata commit.
Only an open request can be relinked because a merged request's list records what
its merge did. When require-issues is enabled, the browser and push gate reject
new requests with an empty list; existing requests remain valid.
Approval validity#
An approval names the base branch and proposed head commit. Only the account
named by approvals/<account-name>.md can create, change, or remove that file.
The request's author cannot approve their own request. An admin repair is
recorded in the audit log.
An approval counts only while:
- its account is active;
- the account currently has
maintaineroradminon the repository; - its head is still the request's head;
- its base is still the request's base.
Retiring an approver or reducing its role therefore stops the approval counting without deleting its file. The page marks it no longer counts. Moving the head or base invalidates the approval; moving only the base branch's current tip does not, because the approval names the base branch rather than its old commit.
Browser approvals carry the base and head displayed by the form. Vole refuses an approval submitted after either target moved, preventing an approver from approving a diff they did not see.
Approvals and combined results#
A protected branch accepts the reviewed head directly when it can fast-forward. If the base moved and cannot fast-forward, Vole builds the merge of the current base and reviewed head, tests that combined tree, and lands the commit it tested.
The combined result:
- uses workflow files from the merge tree, including changes from the base;
- runs when the head is pushed and again when the base moves for a request under review or waiting to merge;
- does not deploy the repository's site;
- uses the contributor's cache namespace and CI allow decision when derived from a contributor branch.
The base move does not invalidate the head approval, but the combined result must pass. Once that same merge commit lands, ordinary branch jobs do not repeat work that the combined run already performed. Site deployment still runs on the branch because the combined result never publishes it.
A hand-created merge push is accepted only when its tree equals a clean merge of
the base tip and reviewed head and its combined checks passed. Extra content and
manual conflict resolutions are rejected because they were not reviewed under
that approval. Use vole change merge or the browser's merge action instead.
Every landing rechecks approval, permission, and combined-result state when the branch moves. The request page reports these combined states:
- Passed with the latest main — the merge can land.
- Testing the merge with the latest main — merge can wait for the run.
- The combined result failed — inspect the named run and push a fix.
- Conflicts with the latest main — resolve the conflict on the head branch.
Vole checks mergeability with Git without modifying a working copy. If the needed
commits or base are unavailable, it reports that the answer is unknown rather
than guessing. A merged request retains merged_base, the base tip before
landing, so its Files tab can still show the reviewed diff.
Queue statuses#
The change list derives one status from the current head, approvals, checks, and mergeability:
| Status | Meaning |
|---|---|
| Waiting on CI approval | A maintainer has not allowed this contributor tip to run. |
| Waiting on CI jobs | Checks are queued or running. |
| CI failed | A check ran and failed against this commit. |
| CI could not run | The runner could not start the job; rerun after fixing the machine. |
| Waiting for review | Fewer valid approvals exist than the base requires. |
| Merge conflict | The head no longer merges cleanly into the base. |
| Ready to merge | Required approvals and checks are satisfied. |
| Merged / Closed | The request landed or was closed without landing. |
The list sorts by the newest metadata commit in each request directory, including edits, comments, and approvals.
Review comments#
A general comment belongs to the request discussion. A line comment also records its path, line, old or new side, and source blob. The web interface shows it in both Conversation and Files and marks it outdated when the file changes.
Conversation comments use #c-<ulid> anchors; line comments in Files use
#inline-c-<ulid>. A conversation excerpt reads the exact blob named by the
comment, so later edits do not change the reviewed context.
Comments support replies, one-level display nesting, editing, and deletion. Only the author can edit or delete a comment; an admin override is audited. Deletion leaves a tombstone for replies and does not erase Git history.
Protected branches#
Protected-branch patterns are exact refs such as refs/heads/main or prefixes
ending in one *, such as refs/heads/release/*. Invalid patterns are rejected
rather than stored without effect.
set-approvals controls the number of valid approvals; 0 means admin-only.
checks enable additionally requires passing trusted CI results. Admins can push
protected branches directly. Merges through review and privileged overrides are
recorded in data/audit.log.
Next#
- Workflows — run the checks a protected branch requires.
- Issues — link the work a request closes.
- CLI reference — look up every change command and option.