Skip to content

fix(app-server): surface turn errors and process events #98

fix(app-server): surface turn errors and process events

fix(app-server): surface turn errors and process events #98

name: Codex Autonomous Code Review
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
permissions:
contents: write # needed for act mode pushes; safe for review mode
pull-requests: write
concurrency:
group: codex-review-${{ github.event.pull_request.number || github.event.issue.number || github.ref }}
cancel-in-progress: false
jobs:
review:
name: Review
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Codex binary fetch dependencies
run: python3 -m pip install zstandard
- name: Fetch bundled codex binary
env:
CODEX_BINARY_RELEASE_TAG: ${{ vars.CODEX_BINARY_RELEASE_TAG || 'rust-v0.131.0' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
python3 scripts/fetch_codex_binary.py \
--release-tag "$CODEX_BINARY_RELEASE_TAG" \
--target-triple x86_64-unknown-linux-musl
test -x codex/vendor/x86_64-unknown-linux-musl/codex/codex
- name: Codex autonomous review
uses: gersmann/codex-review-action@v1
with:
mode: review
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
model: gpt-5
reasoning_effort: medium
debug_level: 1
act:
name: Act on /codex comments
if: >-
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '/codex')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '/codex'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Codex binary fetch dependencies
run: python3 -m pip install zstandard
- name: Fetch bundled codex binary
env:
CODEX_BINARY_RELEASE_TAG: ${{ vars.CODEX_BINARY_RELEASE_TAG || 'rust-v0.131.0' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
python3 scripts/fetch_codex_binary.py \
--release-tag "$CODEX_BINARY_RELEASE_TAG" \
--target-triple x86_64-unknown-linux-musl
test -x codex/vendor/x86_64-unknown-linux-musl/codex/codex
- name: Codex autonomous edits
uses: gersmann/codex-review-action@v1
with:
mode: act
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
model: gpt-5
debug_level: 1