diff --git a/.github/workflows/continue-general-review.yaml b/.github/workflows/continue-general-review.yaml index 8bdb309a0..6a8a337f9 100644 --- a/.github/workflows/continue-general-review.yaml +++ b/.github/workflows/continue-general-review.yaml @@ -17,13 +17,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - name: Checkout Repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 # Fetch full history for better context - - name: Run Continue PR Review Action - uses: ./pr-review-action # Using local action since we're in the same repo + uses: continuedev/continue/pr-review-action@main with: continue-api-key: ${{ secrets.CONTINUE_API_KEY }} continue-org: 'continuedev' diff --git a/pr-review-action/README.md b/pr-review-action/README.md index 4d139ee41..78dffb120 100644 --- a/pr-review-action/README.md +++ b/pr-review-action/README.md @@ -24,9 +24,6 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: continuedev/continue/pr-review-action@v1 with: continue-api-key: ${{ secrets.CONTINUE_API_KEY }} @@ -104,9 +101,6 @@ jobs: review: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: continuedev/continue/pr-review-action@v1 with: continue-api-key: ${{ secrets.CONTINUE_API_KEY }} @@ -116,7 +110,7 @@ jobs: ## How It Works -1. The action checks out your repository code +1. The action automatically checks out your repository code 2. Installs the Continue CLI (v1.4.25) 3. Fetches the PR diff using GitHub CLI 4. Generates a comprehensive review prompt diff --git a/pr-review-action/action.yml b/pr-review-action/action.yml index 5b2b4a0a1..2550e0324 100644 --- a/pr-review-action/action.yml +++ b/pr-review-action/action.yml @@ -16,6 +16,11 @@ inputs: runs: using: 'composite' steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 # Fetch full history for better context + - name: Check Authorization shell: bash run: |