Demo: --headless can't give an editor the pull request's files #82
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
revue-companion's
task shoot:websitetakes the website's editor screenshots (#73) againstREVUE_DEMO=1 revue. Most questions work without a window:--pulls,--branch-pull,--pull,--reviewwith its threads,--pending,--submit-options, and the sides of files.Getting the pull request's files into the editor's clone doesn't work headless:
The headless demo's own clones are also deleted when the command exits, so there's nothing to fetch from afterwards.
The cost: the task has to start a real
revue --demowindow on a virtual display, which needs Xvfb with Mesa, just to have a demo clone to fetch from. Revue'sshoot:editorsdoes the same.Ask:
--fetch-branchand--worktreefetch from the demo's own local clone of the repository.Related: the demo's commit dates follow the clock (e.g.
origin/mainabout nine days before the run). If two demos also produce different SHAs, then the project and the answers must come from the same demo. A reproducible demo history would remove that constraint.Done in
7a6da09(in the next release).refs/pull/N/head), and the demo's git sends the repository's addresses there:https://github.com/tidewater/atlas-api(.git),git@github.com:…,ssh://git@github.com/…. So--fetch-branchand--worktreework in any clone whose remote is one of those, headless or with the window (the window had the sametransport 'https' not allowed).REVUE_DEMO_NOW(RFC 3339, or a date such as2026-11-01) fixes the moment the demo's history counts back from. Demos started with the same value have the same commits, ids included, so the project and the answers can come from different demos.No window or Xvfb needed:
--fetch-branchbrings only the pull request's branch (with its history), notorigin/main.