An open API service indexing awesome lists of open source software.

https://github.com/koki-develop/claude-renovate-review

Review Renovate PRs using Claude Code.
https://github.com/koki-develop/claude-renovate-review

Last synced: about 1 hour ago
JSON representation

Review Renovate PRs using Claude Code.

Awesome Lists containing this project

README

          

# Claude Renovate Review Action

[![GitHub License](https://img.shields.io/github/license/koki-develop/claude-renovate-review)](./LICENSE)
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/koki-develop/claude-renovate-review/release-please.yml)](./.github/workflows/release-please.yml)

Review Renovate PRs using Claude Code.

## Usage

```yaml
name: Claude Renovate Review

on:
pull_request:
types:
- opened
- edited

jobs:
claude-renovate-review:
if: github.event.pull_request.user.login == 'renovate[bot]'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write # for commenting on the PR
steps:
- uses: actions/checkout@v4
- uses: koki-develop/claude-renovate-review@v1
id: review
with:
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
# or
claude-code-oauth-token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}

# Use the safety-assessment output
- name: Check safety assessment
run: echo "Safety Assessment: ${{ steps.review.outputs.safety-assessment }}"
```

### Using the safety-assessment output

You can use the `safety-assessment` output to automate PR workflows based on the safety level.

#### Auto-approve safe PRs

```yaml
- name: Auto-approve if safe
if: steps.review.outputs.safety-assessment == 'safe'
run: gh pr review "$PR_NUMBER" --approve
env:
GITHUB_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
```

#### Auto-merge safe PRs

```yaml
- name: Auto-merge if safe
if: steps.review.outputs.safety-assessment == 'safe'
run: gh pr merge "$PR_NUMBER" --auto
env:
GITHUB_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
```

## Inputs

| Name | Description | Required | Default |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------ |
| `anthropic-api-key` | Anthropic API key for Claude Code | No\* | - |
| `claude-code-oauth-token` | Claude Code OAuth token (alternative to anthropic-api-key) | No\* | - |
| `github-token` | GitHub token with repo and pull request permissions | No | `${{ github.token }}` |
| `create-comment` | Create the review result as a comment on the pull request | No | `true` |
| `pull-request-number` | The number of the pull request to review. If not provided, it will use the pull request number from the event context | No | - |
| `allowed-tools` | Newline-separated list of allowed tools for Claude Code. Each tool should be on a separate line | No | `WebFetch(domain:github.com)`
`WebFetch(domain:raw.githubusercontent.com)` |

\* Either `anthropic-api-key` or `claude-code-oauth-token` must be provided.

## Outputs

| Name | Description |
| ------------------- | ------------------------------------------------------------------------- |
| `report` | The review report generated by Claude Code |
| `safety-assessment` | Safety assessment result: `safe`, `needs-manual-migration`, or `not-safe` |

## License

[MIT](./LICENSE)