Skip to content

feat: add hosted subscription runtime session mode #256

feat: add hosted subscription runtime session mode

feat: add hosted subscription runtime session mode #256

Workflow file for this run

name: ReviewRouter
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
inputs:
pr_number:
description: Pull request number to review
required: true
type: string
review_head_sha:
description: Exact pull request head SHA
required: true
type: string
concurrency:
group: review-router-${{ github.event.pull_request.number || inputs.pr_number || github.ref }}
cancel-in-progress: false
permissions: {}
jobs:
review:
name: review
if: >-
${{
vars.REVIEW_ROUTER_HOSTED_POOL_ENABLED == 'true' &&
(
github.event_name == 'workflow_dispatch' ||
(
github.event.pull_request.draft == false &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.type != 'Bot'
)
)
}}
permissions:
contents: read
pull-requests: read
id-token: write
uses: ./.github/workflows/reviewrouter-t0-reusable.yml
with:
runtime_ref: ${{ github.event.pull_request.head.sha || inputs.review_head_sha }}
api_url: https://api.reviewrouter.site
control_plane_url: https://api.reviewrouter.site
runtime_config_mode: oidc
pr_number: ${{ github.event.pull_request.number || inputs.pr_number }}
review_head_sha: ${{ github.event.pull_request.head.sha || inputs.review_head_sha }}
provider_instance_id: ${{ vars.REVIEW_ROUTER_PROVIDER_INSTANCE_ID }}
workflow_schema_version: 1
codex_session_mode: codex_subscription_oauth_hosted_pool
session_binding_id: ${{ vars.REVIEW_ROUTER_SESSION_BINDING_ID }}
session_binding_version: ${{ fromJSON(vars.REVIEW_ROUTER_SESSION_BINDING_VERSION || '0') }}
review_timeout_minutes: 240
max_changed_lines: '0'