| ... | ... | @@ -1,7 +1,6 @@ |
| 1 | 1 | import { defineConfig, type CodeRabbitContext } from "@coderabbitai/config"; |
| 2 | 2 | |
| 3 | | // Org members and collaborators merge their own pull requests. On anyone else's, CodeRabbit |
| 4 | | // requests changes until its comments are resolved, then approves. |
| 3 | // Org members and collaborators can approve their own pull requests. |
| 5 | 4 | const UNGATED_AUTHORS = new Set(["OWNER", "MEMBER", "COLLABORATOR"]); |
| 6 | 5 | const isGated = ({ pr }: CodeRabbitContext) => !UNGATED_AUTHORS.has(pr?.authorAssociation ?? ""); |
| 7 | 6 | |
| ... | ... | @@ -9,7 +8,7 @@ export default defineConfig((ctx) => ({ |
| 9 | 8 | reviews: { |
| 10 | 9 | high_level_summary: false, |
| 11 | 10 | review_status: false, |
| 12 | | request_changes_workflow: isGated(ctx), |
| 11 | request_changes_workflow: false, |
| 13 | 12 | allow_author_approval: !isGated(ctx), |
| 14 | 13 | auto_review: { |
| 15 | 14 | enabled: true, |