From 0abfea5d79d558134ea22b5b7db47573ebc61fae Mon Sep 17 00:00:00 2001 From: "review-router-ai[bot]" <281702430+review-router-ai[bot]@users.noreply.github.com> Date: Sat, 9 May 2026 11:13:08 +0000 Subject: [PATCH 1/2] chore: add ReviewRouter workflows --- .github/workflows/reviewrouter.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/reviewrouter.yml diff --git a/.github/workflows/reviewrouter.yml b/.github/workflows/reviewrouter.yml new file mode 100644 index 00000000..893857d5 --- /dev/null +++ b/.github/workflows/reviewrouter.yml @@ -0,0 +1,36 @@ +name: ReviewRouter + +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + merge_group: + workflow_dispatch: + inputs: + pr_number: + description: "Pull request number for manual reruns" + required: false + type: string + +permissions: + contents: read + pull-requests: write + issues: write + id-token: write + +jobs: + review: + name: review + uses: 777genius/review-router/.github/workflows/reviewrouter-reusable.yml@v1 + with: + runtime_ref: v1 + api_url: "https://api.reviewrouter.site" + runtime_config_mode: oidc + static_runtime_env_json: >- + {"REVIEWROUTER_CONFIG_SCHEMA_VERSION":"1","CODEX_MODEL":"gpt-5.5","CODEX_REASONING_EFFORT":"medium","CODEX_AGENTIC_CONTEXT":"true","INLINE_MAX_COMMENTS":"5","TARGET_TOKENS_PER_BATCH":"50000","FAIL_ON_SEVERITY":"critical","REVIEW_AUTH_MODE":"codex-oauth"} + pr_number: ${{ github.event.pull_request.number || inputs.pr_number }} + secrets: + REVIEW_ROUTER_LEDGER_KEY: ${{ secrets.REVIEW_ROUTER_LEDGER_KEY }} + CODEX_AUTH_JSON: ${{ secrets.CODEX_AUTH_JSON }} + CODEX_CONFIG_TOML: ${{ secrets.CODEX_CONFIG_TOML }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} From d01949ce6e35aab33960cae6befeedf81d07d11a Mon Sep 17 00:00:00 2001 From: "review-router-ai[bot]" <281702430+review-router-ai[bot]@users.noreply.github.com> Date: Sat, 9 May 2026 11:13:09 +0000 Subject: [PATCH 2/2] chore: add ReviewRouter workflows --- .../workflows/reviewrouter-interaction.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/reviewrouter-interaction.yml diff --git a/.github/workflows/reviewrouter-interaction.yml b/.github/workflows/reviewrouter-interaction.yml new file mode 100644 index 00000000..15ba9b9b --- /dev/null +++ b/.github/workflows/reviewrouter-interaction.yml @@ -0,0 +1,25 @@ +name: ReviewRouter Interaction + +on: + pull_request_review_comment: + types: [created, edited] + workflow_dispatch: + +permissions: + actions: write + contents: read + pull-requests: write + issues: write + id-token: write + +jobs: + interaction: + name: interaction + uses: 777genius/review-router/.github/workflows/reviewrouter-interaction-reusable.yml@v1 + with: + runtime_ref: v1 + api_url: "https://api.reviewrouter.site" + runtime_config_mode: oidc + review_workflow_file: reviewrouter.yml + secrets: + REVIEW_ROUTER_LEDGER_KEY: ${{ secrets.REVIEW_ROUTER_LEDGER_KEY }}