From 0c4736a9734dd29d0f6d1a45b7249e60064a09cc Mon Sep 17 00:00:00 2001 From: roachdev codereview Date: Thu, 23 Jul 2026 16:04:49 +0530 Subject: [PATCH] ci: add roachdev AI PR review workflow Add the caller workflow that runs roachdev's reusable ai-review.yml pipeline on PRs. Posts inline review comments. Co-Authored-By: roachdev-claude --- .github/workflows/review.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/review.yml diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml new file mode 100644 index 00000000..a11d6846 --- /dev/null +++ b/.github/workflows/review.yml @@ -0,0 +1,32 @@ +# Managed by `roachdev codereview`: triggers roachdev's reusable AI PR review. +name: Roachdev AI PR Review + +on: + pull_request_target: + types: [opened, synchronize, ready_for_review] + workflow_dispatch: + inputs: + pr_number: + description: "PR number to review" + required: true + type: number + +concurrency: + group: review-${{ github.event.pull_request.number || github.event.inputs.pr_number }} + cancel-in-progress: true + +jobs: + ai-review: + permissions: + contents: read + pull-requests: write + id-token: write + if: > + github.event_name == 'workflow_dispatch' || + (github.event.action == 'synchronize' && !github.event.pull_request.draft) || + (github.event.action == 'opened' && !github.event.pull_request.draft) || + github.event.action == 'ready_for_review' + uses: cockroachlabs/roachdev/.github/workflows/ai-review.yml@main + with: + pr_number: ${{ fromJSON(github.event.inputs.pr_number || github.event.pull_request.number) }} + secrets: inherit