levior pr: list, view, checks, edit, review, close, merge and more, as the user #25
No reviewers
Labels
No labels
agent:scotland-yard
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
levior/cli!25
Loading…
Reference in a new issue
No description provided.
Delete branch "simlau/pr-commands"
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?
levior prgets most of whatgh prdoes, acting as the user on code.levior.io instead of levior-bot, so Claude can close the PRs it replaces itself and every action shows who did it.New:
list,view,diff,checkout,checks,edit,ready,comment,review,close,reopen,merge(flags as in gh, persistent-R).levior loginnow also signs in to code.levior.io (OAuth app from infra #138, PKCE on the same loopback ports);whoamishows the Forgejo login,logoutforgets both tokens. Design:docs/superpowers/specs/2026-10-26-pr-commands-design.md, plan next to it.Changed behaviour:
pr createopens the PR as the user, not levior-bot. Same-repo branch PRs still get Actions secrets (checked on infra #139). Needs the new login: after upgrading, everyone runslevior loginonce.levior login --deviceskips code.levior.io (Forgejo has no device grant), solevior prdoesn't work after a device-only login. The cli-apipullsroute stays for older CLIs.prcommand says a person must runlevior login; an agent can't.apply_to_admins) and the CLI never sendsforce_merge.Tested:
go test ./...green. Live against code.levior.io: whoami, list, view (--json,-c), diff, checks, ready/--undo, comment, edit, review--comment, create--draft, close-c -d, AGit topics. Not live:merge,reopen, a real token refresh.Follow-ups: release with the client id; drop the cli-api
pullsroute later; CLAUDE.md/skills still say levior-bot openspr createPRs.