integrations/github.md +6 −6
20Make sure you have:20Make sure you have:
21 21
22- A GitHub repository connected to Codex. For legacy integration setup, see [Codex Cloud (Legacy)](https://learn.chatgpt.com/docs/environments/cloud-environment).22- A GitHub repository connected to Codex. For legacy integration setup, see [Codex Cloud (Legacy)](https://learn.chatgpt.com/docs/environments/cloud-environment).
2323- Access to [Codex code review settings](https://app.chatgpt.com/settings/code-review).- Access to [Codex code review settings](https://chatgpt.com/settings/code-review).
24- An `AGENTS.md` file if you want Codex to follow repository-specific review guidance.24- An `AGENTS.md` file if you want Codex to follow repository-specific review guidance.
25 25
26## Set up Codex code review26## Set up Codex code review
29GitHub push or admin permission for its settings.29GitHub push or admin permission for its settings.
30 30
311. Connect your GitHub repository to Codex.311. Connect your GitHub repository to Codex.
32322. Go to [Codex settings](https://app.chatgpt.com/settings/code-review).2. Go to [Codex settings](https://chatgpt.com/settings/code-review).
333. Choose your repository, then turn on **Automatic review** under **Review code**.333. Choose your repository, then turn on **Automatic review** under **Review code**.
34 34
35 35
86## Enable automatic reviews86## Enable automatic reviews
87 87
88To enable automatic reviews for your pull requests, turn on **Automatic review**88To enable automatic reviews for your pull requests, turn on **Automatic review**
8989under **Personal preferences** in [Codex settings](https://app.chatgpt.com/settings/code-review).under **Personal preferences** in [Codex settings](https://chatgpt.com/settings/code-review).
90Choose when reviews run with **Review trigger**. This applies to repositories90Choose when reviews run with **Review trigger**. This applies to repositories
91with code review enabled and doesn't require an `@codex review` comment.91with code review enabled and doesn't require an `@codex review` comment.
92 92
155Review](https://learn.chatgpt.com/docs/security/security-review).155Review](https://learn.chatgpt.com/docs/security/security-review).
156 156
1571. Connect your GitHub repository to Codex.1571. Connect your GitHub repository to Codex.
1581582. Go to [Codex settings](https://app.chatgpt.com/settings/code-review).2. Go to [Codex settings](https://chatgpt.com/settings/code-review).
1593. Choose your repository. Under **Review security vulnerabilities**, turn on1593. Choose your repository. Under **Review security vulnerabilities**, turn on
160 **Auto security review** and choose whose pull requests receive reviews with160 **Auto security review** and choose whose pull requests receive reviews with
161 **Review**. Set **Trigger** to **Whenever code review runs** to run it161 **Review**. Set **Trigger** to **Whenever code review runs** to run it
195 195
196If Codex doesn't react or post a review:196If Codex doesn't react or post a review:
197 197
198198- Confirm you turned on code review for the repository in [Codex settings](https://app.chatgpt.com/settings/code-review).- Confirm you turned on code review for the repository in [Codex settings](https://chatgpt.com/settings/code-review).
199- Confirm the pull request belongs to a GitHub repository connected to Codex.199- Confirm the pull request belongs to a GitHub repository connected to Codex.
200- Use the exact trigger `@codex review` in a pull request comment.200- Use the exact trigger `@codex review` in a pull request comment.
201- For automatic reviews, check **Automatic review** under the repository201- For automatic reviews, check **Automatic review** under the repository
202202 settings and **Personal preferences** in [Codex settings](https://app.chatgpt.com/settings/code-review). Confirm the pull request event matches your review trigger settings. settings and **Personal preferences** in [Codex settings](https://chatgpt.com/settings/code-review). Confirm the pull request event matches your review trigger settings.