A GitHub Action that automatically fixes unresolved CodeRabbit review comments using Claude.
- Detects and summarizes unresolved CodeRabbit reviews, then auto-fixes code with Claude Code
- CodeRabbit auto resume (automatically posts
@coderabbitai resumewhen rate-limited or review fails, optional) - Reads failed CI logs and auto-fixes errors
- Keeps PR branches up to date with the base branch and resolves merge conflicts
- Optionally auto-merges PRs after all fixes are applied
- Tracks progress with PR labels and state comments
Run the following command in your repository root:
bash <(curl -fsSL https://raw.githubusercontent.com/HappyOnigiri/Refix/main/scripts/init.sh)This creates .github/workflows/run-refix.yml, which triggers automatically on
PR events, CI completion, and comments.
Go to your repository's Settings > Secrets and variables > Actions and add:
GH_TOKEN- Classic Personal Access Token- Create at: GitHub Settings > Developer settings > Personal access tokens > Tokens (classic)
- Required scopes:
repo,workflow,read:org,read:discussion
CLAUDE_CODE_OAUTH_TOKEN- Claude Code OAuth token- Generate with the
claude setup-tokencommand
- Generate with the
You can customize Refix behavior by placing a .refix.yaml file at your
repository root, or by setting REFIX_CONFIG_YAML as a GitHub Actions Variable.
See .refix.sample.yaml for all available options.
Contributions are welcome.
- Open an issue for bugs, ideas, or questions.
- Submit a pull request for fixes, improvements, or documentation updates.
- Use the provided issue and pull request templates to keep reports actionable.
This project is licensed under the MIT License. See LICENSE.
