From a2740eb5e4a56cd596b008945224016b38993c2c Mon Sep 17 00:00:00 2001 From: zzaaiinn Date: Fri, 6 Nov 2026 10:22:53 -0600 Subject: [PATCH 1/3] fix: use included CodeRabbit checks on all bases and drafts --- .coderabbit.config.ts | 120 +++++++++++++++++++++++++++++++++++------- 1 file changed, 100 insertions(+), 20 deletions(-) diff --git a/.coderabbit.config.ts b/.coderabbit.config.ts index d7e17b2652ed8..85f3543452a28 100644 --- a/.coderabbit.config.ts +++ b/.coderabbit.config.ts @@ -1,55 +1,135 @@ -import { defineConfig, type CodeRabbitConfig, type CodeRabbitContext } from "@coderabbitai/config"; +import { + defineConfig, + type CodeRabbitConfig, + type CodeRabbitContext, +} from "@coderabbitai/config"; // The SDK requires unexported enums here; these literals match the service's configuration schema. type KnowledgeBase = NonNullable; const localScope = "local" as NonNullable["scope"]; -const disabledIntegration = "disabled" as NonNullable["usage"]; +const disabledIntegration = "disabled" as NonNullable< + KnowledgeBase["mcp"] +>["usage"]; const UNGATED_AUTHORS = new Set(["OWNER", "MEMBER", "COLLABORATOR"]); -const isGated = ({ pr }: CodeRabbitContext) => !UNGATED_AUTHORS.has(pr?.authorAssociation ?? ""); +const isGated = ({ pr }: CodeRabbitContext) => + !UNGATED_AUTHORS.has(pr?.authorAssociation ?? ""); export default defineConfig((ctx) => ({ inheritance: false, reviews: { - high_level_summary: false, - review_status: false, + profile: "assertive", + enable_prompt_for_ai_agents: true, + suggested_reviewers: true, + suggested_labels: true, + assess_linked_issues: true, + estimate_code_review_effort: true, + sequence_diagrams: true, + changed_files_summary: true, + review_details: true, + review_info: true, + high_level_summary: true, + review_status: true, request_changes_workflow: false, - related_issues: false, - related_prs: false, + related_issues: true, + related_prs: true, allow_author_approval: !isGated(ctx), auto_review: { - enabled: false, + enabled: true, + auto_incremental_review: true, + auto_pause_after_reviewed_commits: 0, + base_branches: [".*"], + drafts: true, + }, + tools: { + gitleaks: { enabled: true }, + shellcheck: { enabled: true }, + markdownlint: { enabled: true }, + "github-checks": { enabled: true }, + yamllint: { enabled: true }, + semgrep: { enabled: true }, + opengrep: { enabled: true }, + osvScanner: { enabled: true }, + presidio: { enabled: true }, + oxc: { enabled: true }, + reactDoctor: { enabled: true }, + hadolint: { enabled: true }, + checkov: { enabled: true }, + trivy: { enabled: true }, + clippy: { enabled: true }, + psscriptanalyzer: { enabled: true }, + actionlint: { enabled: true }, + zizmor: { enabled: true }, + }, + finishing_touches: { + docstrings: { + enabled: true, + }, + autofix: { + enabled: true, + }, + unit_tests: { + enabled: false, + }, + fix_ci: { + enabled: false, + }, + resolve_merge_conflict: { + enabled: false, + }, + simplify: { + enabled: false, + }, }, pre_merge_checks: { - docstrings: { mode: "off" }, + title: { mode: "warning" }, + description: { mode: "warning" }, + issue_assessment: { mode: "warning" }, + docstrings: { mode: "warning" }, override_requested_reviewers_only: isGated(ctx), }, path_filters: ["!.repos/**"], path_instructions: [ { path: "{apps,packages,infra}/**/*.ts", - instructions: "Hold changed code to the rules in docs/internals/effect-services.md.", + instructions: + "Hold changed code to the rules in docs/internals/effect-services.md.", }, { path: "apps/web/src/**/*.{tsx,css}", - instructions: "Hold changed code to the rules in docs/internals/web-ui.md.", + instructions: + "Hold changed code to the rules in docs/internals/web-ui.md.", }, ], }, + chat: { auto_reply: true }, knowledge_base: { + opt_out: false, automatic_linking_mode: "disabled", - linked_repositories: [], - issues: { scope: localScope }, - pull_requests: { scope: localScope }, + linked_repositories: [ + { + repository: "zainmitchell/t3-native-connectors", + instructions: + "Use only committed engineering source and rules as context. Do not copy private identifiers into findings.", + }, + ], + issues: { scope: "local" }, + pull_requests: { scope: "local" }, learnings: { scope: localScope }, - jira: { usage: disabledIntegration }, - linear: { usage: disabledIntegration }, - mcp: { usage: disabledIntegration }, - web_search: { enabled: false }, + jira: { usage: "disabled" }, + linear: { usage: "disabled" }, + mcp: { usage: "disabled" }, + web_search: { enabled: true }, code_guidelines: { filePatterns: [ - { files: "docs/internals/effect-services.md", applyTo: "{apps,packages,infra}/**/*.ts" }, - { files: "docs/internals/web-ui.md", applyTo: "apps/web/src/**/*.{tsx,css}" }, + { + files: "docs/internals/effect-services.md", + applyTo: "{apps,packages,infra}/**/*.ts", + }, + { + files: "docs/internals/web-ui.md", + applyTo: "apps/web/src/**/*.{tsx,css}", + }, ], }, }, From 7e7c00ebeec44c09df3dedba6a28bae22ae9046f Mon Sep 17 00:00:00 2001 From: zzaaiinn Date: Fri, 6 Nov 2026 10:27:09 -0600 Subject: [PATCH 2/3] fix: preserve CodeRabbit SDK enum types --- .coderabbit.config.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.coderabbit.config.ts b/.coderabbit.config.ts index 85f3543452a28..1fc0ca2a66780 100644 --- a/.coderabbit.config.ts +++ b/.coderabbit.config.ts @@ -113,12 +113,12 @@ export default defineConfig((ctx) => ({ "Use only committed engineering source and rules as context. Do not copy private identifiers into findings.", }, ], - issues: { scope: "local" }, - pull_requests: { scope: "local" }, + issues: { scope: localScope }, + pull_requests: { scope: localScope }, learnings: { scope: localScope }, - jira: { usage: "disabled" }, - linear: { usage: "disabled" }, - mcp: { usage: "disabled" }, + jira: { usage: disabledIntegration }, + linear: { usage: disabledIntegration }, + mcp: { usage: disabledIntegration }, web_search: { enabled: true }, code_guidelines: { filePatterns: [ From f320ad858d5cbc188f93eab439203b7085735c30 Mon Sep 17 00:00:00 2001 From: zzaaiinn Date: Fri, 6 Nov 2026 10:29:33 -0600 Subject: [PATCH 3/3] fix: preserve CodeRabbit SDK enum types --- .coderabbit.config.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.coderabbit.config.ts b/.coderabbit.config.ts index 1fc0ca2a66780..e7ca1ddb9121a 100644 --- a/.coderabbit.config.ts +++ b/.coderabbit.config.ts @@ -106,13 +106,7 @@ export default defineConfig((ctx) => ({ knowledge_base: { opt_out: false, automatic_linking_mode: "disabled", - linked_repositories: [ - { - repository: "zainmitchell/t3-native-connectors", - instructions: - "Use only committed engineering source and rules as context. Do not copy private identifiers into findings.", - }, - ], + linked_repositories: [], issues: { scope: localScope }, pull_requests: { scope: localScope }, learnings: { scope: localScope },