authorgravatar for saiansh2525@gmail.comYash Singh <saiansh2525@gmail.com> 2026-10-13 02:16:35-05:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-13 04:16:35-03:00
log6524a8d43795dc543f7cfb572388cdea3662ad48
tree326d68720c653f49e0276a77ecb98d2d41f3f899
parente82a1ce3f369f113b0b33dff8249569c345e30e8
signature Signed by PGP key B5690EEEBB952194

fix(ci): CodeRabbit reviews no longer request changes (#18954)


1 files changed, 2 insertions(+), 3 deletions(-)

.coderabbit.config.ts+2-3
...@@ -1,7 +1,6 @@...@@ -1,7 +1,6 @@
1import { defineConfig, type CodeRabbitContext } from "@coderabbitai/config";1import { defineConfig, type CodeRabbitContext } from "@coderabbitai/config";
22
3// Org members and collaborators merge their own pull requests. On anyone else's, CodeRabbit3// Org members and collaborators can approve their own pull requests.
4// requests changes until its comments are resolved, then approves.
5const UNGATED_AUTHORS = new Set(["OWNER", "MEMBER", "COLLABORATOR"]);4const UNGATED_AUTHORS = new Set(["OWNER", "MEMBER", "COLLABORATOR"]);
6const isGated = ({ pr }: CodeRabbitContext) => !UNGATED_AUTHORS.has(pr?.authorAssociation ?? "");5const isGated = ({ pr }: CodeRabbitContext) => !UNGATED_AUTHORS.has(pr?.authorAssociation ?? "");
76
...@@ -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,