Repository navigation
v0.10.0
Minor Changes
-
18c4eb0: Add
create-pr: opens a draft PR on your GitHub repo (origin) containing only one lesson's diff.ai-hero create-pr <lesson-id> --branch=live-run-through --upstream=<url>
It resolves the lesson commit exactly as
resetdoes, pushes the lesson's parent tooriginaspr-base/<lesson-id>, and buildspr/<lesson-id>as a single commit on top of it carrying the lesson's tree (message with the<lesson-id>:prefix stripped). Both branches are owned by the CLI and are force-pushed, so retakes work after the course stack is rewritten. If an open PR forpr/<lesson-id>already exists, its title, body and base are reset and it is turned back into a draft; otherwise a new draft PR is created. Either way the title and body are whatgh pr create --fillwould write: the lesson commit's subject (prefix stripped) and body.Draft PRs on private repos need a paid GitHub plan. When
--draft(or turning an existing PR back into a draft) is rejected, the PR is opened or left ready-for-review instead, and the CLI prints a note saying so.It refuses to run with uncommitted changes, needs the GitHub CLI installed and logged in, needs
originto be a GitHub repository, and asks before replacing an existing localpr/<lesson-id>branch.