From a708996a95d0bde7774a00a5aad61249497d905a Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 8 Oct 2025 10:34:41 -0400 Subject: [PATCH 1/3] coderabbit yaml added --- .coderabbit.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .coderabbit.yaml diff --git a/.coderabbit.yaml b/.coderabbit.yaml new file mode 100644 index 0000000000..674ea50c26 --- /dev/null +++ b/.coderabbit.yaml @@ -0,0 +1,13 @@ +# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json +# Minimal configuration for getting started +language: "en-US" +reviews: + profile: "chill" + high_level_summary: true + poem: false + sequence_diagrams: false + suggested_labels: false + suggested_reviewers: false + auto_review: + enabled: true + drafts: false From d8a9ae6640f8613350c350976e79c4a9dc8f8e22 Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 8 Oct 2025 10:40:54 -0400 Subject: [PATCH 2/3] editted yaml --- .coderabbit.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.coderabbit.yaml b/.coderabbit.yaml index 674ea50c26..331d34da74 100644 --- a/.coderabbit.yaml +++ b/.coderabbit.yaml @@ -4,10 +4,14 @@ language: "en-US" reviews: profile: "chill" high_level_summary: true + request_changes_workflow: true poem: false + in_progress_fortune: false sequence_diagrams: false suggested_labels: false suggested_reviewers: false auto_review: enabled: true drafts: false +chat: + art: false From 7dc2b2d3ec458073abc056c05b528e5e2c931b8e Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 8 Oct 2025 10:46:17 -0400 Subject: [PATCH 3/3] test guide added for coderabbit --- content/800-guides/550-test-guide.mdx | 61 +++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 content/800-guides/550-test-guide.mdx diff --git a/content/800-guides/550-test-guide.mdx b/content/800-guides/550-test-guide.mdx new file mode 100644 index 0000000000..3c3e9f171a --- /dev/null +++ b/content/800-guides/550-test-guide.mdx @@ -0,0 +1,61 @@ +--- +title: Testing CodeRabbit Integration +description: A guide to test CodeRabbit's review capabilities +--- + +# Testing CodeRabbit Integration + +This guide helps test CodeRabbit's review capabilities with specific test cases. + +## Test Case 1: Code Snippet Handling + +This section contains code snippets that should not be modified: + +```typescript +// This is a test code block that should not trigger any review comments +const testFunction = () => { + console.log("This should be ignored by the reviewer"); +}; +``` + +## Test Case 2: Single Review Enforcement + +This PR should only generate one review comment from CodeRabbit, even if there are multiple potential issues. + +## Test Case 3: No Art or Poetry + +This section intentionally avoids any creative writing, art, or poetry to test the no-art rule. + +## Test Case 4: Scope Limitation + +Only the following line should be considered for review: + +```typescript +const needsReview = true; // This line is intentionally problematic +``` + +## Test Case 5: Duplicate Resolution + +This issue was previously fixed and should not be suggested again: + +```typescript +const alreadyFixed = "This was fixed in a previous PR"; +``` + +## Test Case 6: Performance Considerations + +This section tests the performance of the review system with a larger block of code: + +```typescript +// This is a performance test block +const testPerformance = () => { + const items = Array(1000).fill(0).map((_, i) => i); + return items.reduce((acc, curr) => acc + curr, 0); +}; +``` + +## Conclusion + +This guide is specifically designed to test CodeRabbit's review capabilities according to the specified requirements. + +> **Note**: This is a test document for CI/CD pipeline validation.