Skip to content

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 09 Oct 10:37
· 22 commits to main since this release
116466a

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 reset does, pushes the lesson's parent to origin as pr-base/<lesson-id>, and builds pr/<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 for pr/<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 what gh pr create --fill would 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 origin to be a GitHub repository, and asks before replacing an existing local pr/<lesson-id> branch.