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