Elffuss BraidHub

kikocis/continue public

main · 3.9 KiBSourceRawPermalink

Continue PR Review Actions

GitHub Actions that provide automated code reviews for pull requests using Continue CLI.

Available Actions

This repository provides a GitHub Action for automated PR reviews:

General Review Action

Provides high-level PR assessment with overall feedback and recommendations.

Quick Start

Setting up General Review

name: PR General Review
on:
  pull_request:
    types: [opened, ready_for_review]
  issue_comment:
    types: [created]

permissions:
  contents: read
  pull-requests: write
  issues: write

jobs:
  review:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - uses: continuedev/continue/actions/general-review@main
        with:
          continue-api-key: ${{ secrets.CONTINUE_API_KEY }}
          continue-org: "your-org-name"
          continue-config: "your-org-name/review-bot"

Inputs

The action accepts the following inputs:

InputDescriptionRequired
continue-api-keyAPI key for Continue serviceYes
continue-orgOrganization for Continue configYes
continue-configConfig path (e.g., "myorg/review-bot")Yes

Setup Requirements

1. Continue API Key

Add your Continue API key as a secret named CONTINUE_API_KEY in your repository:

  1. Go to your repository's Settings
  2. Navigate to Secrets and variables → Actions
  3. Click "New repository secret"
  4. Name: CONTINUE_API_KEY
  5. Value: Your Continue API key

2. Continue Configuration

Set up your review bot configuration in Continue:

  1. Create a configuration for your organization
  2. Configure the review bot settings
  3. Note your organization name and config path

3. Workflow Permissions

The workflow requires these permissions:

Triggering Reviews

The action can be triggered in two ways:

Automatic Triggers

Manual Triggers

Team members can trigger reviews by commenting on any pull request:

Review Output

The general review provides a structured comment that includes:

How It Works

  1. Checks out repository code
  2. Fetches PR diff using GitHub CLI
  3. Generates a comprehensive review prompt
  4. Runs Continue CLI with specified configuration
  5. Posts review as a PR comment

Versioning

We recommend using the main branch:

Example:

uses: continuedev/continue/actions/general-review@main

Troubleshooting

Review not triggering

No review output generated

Support

For issues or questions: