Skip to content

feat(actions): add GitHub App authentication support for review actions #21

feat(actions): add GitHub App authentication support for review actions

feat(actions): add GitHub App authentication support for review actions #21

name: AI Code Review
on:
pull_request:
types: [opened, synchronize, ready_for_review]
issue_comment:
types: [created]
permissions:
contents: read
pull-requests: write
issues: write
actions: read
checks: write
jobs:
review:
# Only run on PRs (for automatic reviews) or when @continue-agent is mentioned in a comment
if: |
github.event_name == 'pull_request' ||
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '@continue-agent'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# This will use GitHub App token if available, otherwise falls back to github.token
- uses: continuedev/continue/actions/base-review@bdougie/continue-agent
with:
continue-api-key: ${{ secrets.CONTINUE_API_KEY }}
# Optional: Provide these if you have a GitHub App installed
# app-id: ${{ secrets.CONTINUE_APP_ID }}
# app-private-key: ${{ secrets.CONTINUE_APP_PRIVATE_KEY }}