Advanced · Optional lab · about 40 minutes · Automator Badge
Claude review on a pull request
The job
Sam: "Gift boxes online are on a branch. Have Claude review the pull request, and don't merge on a red run." Nadia has said yes to gift boxes online, once their test passes on a reviewed commit.
After this Lesson you can
- run Claude Code in GitHub Actions with every limit in the workflow file
- read a failed run's log and find what it names
- give a review's job token only what a review needs
- tie a green run to the exact commit it judged, and merge or hold on it
What you practise
gh run watch 1: Follows a run to the end, or shows how a finished one endedgh run view 1 --log-failed: Shows the log of the step that failedgh secret set ANTHROPIC_API_KEY: With no value on the command line,gh secret setasks you to paste it, so it never lands in your shell history.gh run view 2 --web: Withdisplay_report: true, Claude's report is on the run's summary page, beside the commit it judged.gh pr create --fill: Opening it starts the review workflow on the pull request's latest commit.gh secret delete ANTHROPIC_API_KEY: Deleting a secret leaves the key it held valid.
Intermediate and Advanced open with a free Account.