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

This commit is contained in:
Yash Singh authored and GitHub committed 2026-10-13 04:16:35 -03:00
1 parent e82a1ce3f3
commit 6524a8d437
1 file changed
+2 -3
+2 -3
View File
@@ -1,7 +1,6 @@
import { defineConfig, type CodeRabbitContext } from "@coderabbitai/config";
// Org members and collaborators merge their own pull requests. On anyone else's, CodeRabbit
// requests changes until its comments are resolved, then approves.
// Org members and collaborators can approve their own pull requests.
const UNGATED_AUTHORS = new Set(["OWNER", "MEMBER", "COLLABORATOR"]);
const isGated = ({ pr }: CodeRabbitContext) => !UNGATED_AUTHORS.has(pr?.authorAssociation ?? "");
@@ -9,7 +8,7 @@ export default defineConfig((ctx) => ({
reviews: {
high_level_summary: false,
review_status: false,
request_changes_workflow: isGated(ctx),
request_changes_workflow: false,
allow_author_approval: !isGated(ctx),
auto_review: {
enabled: true,