Get startedGet started for free

Video: GitHub Actions and Code Review

1. Video: GitHub Actions and Code Review

The best place to hand off repetitive work is the pull request. There are two ways to get that. The managed one is code review, an anthropic hosted service that reviews PRs through the Claude GitHub app and posts findings as inline comments with nothing for you to build or host. The do-it-yourself one is the Claude Code GitHub action for when the job goes beyond review and into custom CI. An organization admin turns it on from the Claude Code admin settings, then installs the Claude GitHub app, and picks which repos it watches and when it runs. Once when a PR opens on every push, or only when someone comments at Claude, review. And from there, it runs on Anthropic's infrastructure. A set of review agents analyzes the diff against the full codebase and posts findings as inline comments on the specific lines, tagged by severity with a summary table and the check run. It deduplicates and ranks so you read a handful of real findings instead of a wall of nits. It never approves or blocks the PR, the judgment call stays with a human. Code review is a research preview, currently for team and enterprise plans, so expect the behavior to keep on moving. And there's no managed autofix, the service posts findings only. Applying them is a local move from your own terminal where the /code-review command reviews a diff and its --fix flag applies the findings to your working tree. The action covers the jobs beyond review, implementing changes from a comment, schedule reports, anything you'd write a workflow for. It runs the agent on PR comments, schedule jobs and any GitHub event. So from inside Claude Code, you can run the /install-github-app command. And you need repo admin to do this. The slash command walks you through installing the GitHub app and setting the Anthropic API key secret on the repo. The action itself is Anthropic's slash Claude Code action at V1. And the inputs you'll use is the Anthropic API key, which is required. The GitHub token, which defaults to secret.github token, the trigger phrase, which is what the action listens for in comments, which just defaults to at Claude. If you use bedrock or vertex, you can switch to those providers, the prompt, which is the instruction for the run, and then the Claude arguments, which is a string of CLI arguments passed through to Claude Code. So if you drop this into dot GitHub slash workflows slash Claude dot YAML, it listens for at Claude on PR comments and issue comments. So someone writes at Claude, implement the spec and the linked linear issue on a pull request. And the action picks it up. Claude pushes commits and post comments with what it did. This one's the daily roll up. Cron fires at nine UTC. The action runs Claude post the results. The workflow dispatch trigger also lets you run it manually from the actions tab. So the Claude args line is where all this fine tuning happens. I set the max turns to five. This just puts a hard cap on the agent loop permission mode. I put don't ask. This is the unattended mode. Allow tools is exactly what this job needs. So read only for a report for PR reviews. Take the managed path, enable code review, let the GitHub app post inline findings and apply fixes locally with /code-review --fix reach for the action when the job is more than review, install GitHub app for setup one workflow for at Claude mentions one for Cron all the tuning and Claude arcs.

2. Let's practice!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.