Make StringToMap entries self-contained for direct round-trip #1030
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Codex Code Review — Analysis Workflow | |
| # | |
| # Thin wrapper around .github/workflows/ai-review-analysis.yml so provider | |
| # specific triggers and workflow_dispatch inputs stay stable while the shared | |
| # implementation lives in one reusable workflow. | |
| name: Codex Code Review | |
| on: | |
| workflow_run: | |
| workflows: ["facebook/rocksdb/pr-jobs"] | |
| types: [completed] | |
| # The early pull_request_target path is limited to same-repo PRs by the job | |
| # condition below. Fork PRs skip this path and rely on workflow_run instead. | |
| pull_request_target: | |
| types: [opened, reopened, synchronize] | |
| issue_comment: | |
| types: [created] | |
| workflow_dispatch: | |
| inputs: | |
| pr_number: | |
| description: PR number to review | |
| required: true | |
| type: number | |
| model: | |
| description: Codex model to use | |
| required: false | |
| type: choice | |
| options: | |
| - gpt-5.5 | |
| - gpt-5.3-codex | |
| - gpt-5.2-codex | |
| default: gpt-5.5 | |
| thinking_budget: | |
| description: Override MAX_THINKING_TOKENS (blank = auto-classify) | |
| required: false | |
| type: string | |
| default: "" | |
| permissions: | |
| contents: read | |
| # The shared analysis workflow polls check state, inspects prior runs, and | |
| # reads PR metadata. Keep those permissions read-only in the caller. | |
| actions: read | |
| checks: read | |
| pull-requests: read | |
| jobs: | |
| review: | |
| if: >- | |
| github.event_name != 'pull_request_target' || | |
| github.event.pull_request.head.repo.full_name == github.repository | |
| uses: ./.github/workflows/ai-review-analysis.yml | |
| with: | |
| provider: codex | |
| display_name: Codex | |
| review_command: /codex-review | |
| query_command: /codex-query | |
| result_artifact_name: codex-review-result | |
| comment_file: codex-review-comment.md | |
| default_model: gpt-5.5 | |
| selected_model: ${{ github.event_name == 'workflow_dispatch' && inputs.model || '' }} | |
| thinking_budget: ${{ github.event_name == 'workflow_dispatch' && inputs.thinking_budget || '' }} | |
| dispatch_pr_number: ${{ github.event_name == 'workflow_dispatch' && inputs.pr_number || '' }} | |
| secrets: inherit |