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 @@
11import { defineConfig, type CodeRabbitContext } from "@coderabbitai/config";
22
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.
54const UNGATED_AUTHORS = new Set(["OWNER", "MEMBER", "COLLABORATOR"]);
65const isGated = ({ pr }: CodeRabbitContext) => !UNGATED_AUTHORS.has(pr?.authorAssociation ?? "");
76
......@@ -9,7 +8,7 @@ export default defineConfig((ctx) => ({
98 reviews: {
109 high_level_summary: false,
1110 review_status: false,
12 request_changes_workflow: isGated(ctx),
11 request_changes_workflow: false,
1312 allow_author_approval: !isGated(ctx),
1413 auto_review: {
1514 enabled: true,