Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/codex/build_code_review_with_codex_sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ With [Code Review](https://chatgpt.com/codex/settings/code-review) in Codex Clou

Luckily, we can replicate Codex's cloud hosted review process in our own CI/CD runners. In this guide, we'll build our own Code Review action using the Codex CLI headless mode with both GitHub Actions and Jenkins.

To build our own Code review, we'll take the following steps:
To build our own Code review, we'll take the follong stes:

1. Install the Codex CLI in our CI/CD runner
2. Prompt Codex in headless (exec) mode with the Code Review prompt that ships with the CLI
3. Specify a structured output JSON schema for Codex
4. Parse the JSON result and use it to make API calls to our SCM to create review comments

Once implemented, Codex will be able to leave inline code review comments:
<img src="../../images/codex_code_review.png" alt="Codex Code Review in GitHub" width="500"/>
`<img src="../../images/codex_code_review.png" alt="Codex Code Review in GitHub" width="500"/>`

## The Code Review Prompt

Expand Down