diff --git a/.github/workflows/pr-review.yml b/.github/workflows/pr-review.yml new file mode 100644 index 00000000..3a765681 --- /dev/null +++ b/.github/workflows/pr-review.yml @@ -0,0 +1,26 @@ +name: Automated Review + +on: + pull_request: + types: [opened, synchronize, reopened, edited, ready_for_review] + +concurrency: + group: codex-review-${{ github.event.pull_request.number }} + cancel-in-progress: true + +permissions: + pull-requests: write + issues: write + checks: write + contents: read + actions: read + +jobs: + review: + runs-on: ubuntu-latest + steps: + - uses: replit/codex-review/actions/review@main + with: + openai_api_key: ${{ secrets.OPENAI_API_KEY }} + github_token: ${{ secrets.GITHUB_TOKEN }} + allow_search: 'true'