From 2c50937c352955118b018435d4b1df588ac6a885 Mon Sep 17 00:00:00 2001 From: Aakanksha Date: Thu, 17 Oct 2024 14:43:30 +0530 Subject: [PATCH 1/9] Integrated coderabbit for AI powered PR reviews --- .coderrabbit.yml | 22 ++++++++++++++++++++++ .github/workflows/ai-pr-review.yml | 21 +++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .coderrabbit.yml create mode 100644 .github/workflows/ai-pr-review.yml diff --git a/.coderrabbit.yml b/.coderrabbit.yml new file mode 100644 index 000000000000..da32185b907a --- /dev/null +++ b/.coderrabbit.yml @@ -0,0 +1,22 @@ +language: "en-US" +reviews: + request_changes_workflow: false + high_level_summary: true + poem: false + review_status: true + auto_review: + enabled: true + ignore_title_keywords: + - "WIP" + - "Do Not Merge" + drafts: false + base_branches: ["master"] +tools: + spellcheck: + enabled: true + markdownlint: + enabled: true + biome: + enabled: true +chat: + auto_reply: true \ No newline at end of file diff --git a/.github/workflows/ai-pr-review.yml b/.github/workflows/ai-pr-review.yml new file mode 100644 index 000000000000..53b39e073208 --- /dev/null +++ b/.github/workflows/ai-pr-review.yml @@ -0,0 +1,21 @@ +name: AI PR Review + +on: + pull_request: + branches: [ master ] + +jobs: + ai_review: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install dependencies + run: npm install + + - name: Run AI PR Review + run: npx coderabbit review --config ./.coderabbit.yml + env: + CODERABBIT_API_KEY: ${{ secrets.CODERABBIT_API_KEY }} From 38027417ca7ab3e1c169c9f8a70fb2d746fa1c09 Mon Sep 17 00:00:00 2001 From: Aakanksha Date: Thu, 17 Oct 2024 18:33:06 +0530 Subject: [PATCH 2/9] Removed gh separate work flow --- .github/workflows/ai-pr-review.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/workflows/ai-pr-review.yml diff --git a/.github/workflows/ai-pr-review.yml b/.github/workflows/ai-pr-review.yml deleted file mode 100644 index 53b39e073208..000000000000 --- a/.github/workflows/ai-pr-review.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: AI PR Review - -on: - pull_request: - branches: [ master ] - -jobs: - ai_review: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install dependencies - run: npm install - - - name: Run AI PR Review - run: npx coderabbit review --config ./.coderabbit.yml - env: - CODERABBIT_API_KEY: ${{ secrets.CODERABBIT_API_KEY }} From 148fcd5818541f43c204fca738b63c4c25b3f1a7 Mon Sep 17 00:00:00 2001 From: Aakanksha Date: Thu, 17 Oct 2024 18:35:04 +0530 Subject: [PATCH 3/9] Added new line --- .coderrabbit.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.coderrabbit.yml b/.coderrabbit.yml index da32185b907a..80722fbaeb0a 100644 --- a/.coderrabbit.yml +++ b/.coderrabbit.yml @@ -19,4 +19,5 @@ tools: biome: enabled: true chat: - auto_reply: true \ No newline at end of file + auto_reply: true + \ No newline at end of file From 57863e457f691ec6dfa6670106478f08cc5d5bfc Mon Sep 17 00:00:00 2001 From: Aakanksha Date: Mon, 21 Oct 2024 14:51:01 +0530 Subject: [PATCH 4/9] Removed space --- .coderrabbit.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.coderrabbit.yml b/.coderrabbit.yml index 80722fbaeb0a..a77204372ff8 100644 --- a/.coderrabbit.yml +++ b/.coderrabbit.yml @@ -20,4 +20,3 @@ tools: enabled: true chat: auto_reply: true - \ No newline at end of file From 5cb721c60961275e3804217397494bbf8cd3c2e9 Mon Sep 17 00:00:00 2001 From: Aakanksha Date: Wed, 23 Oct 2024 19:28:42 +0530 Subject: [PATCH 5/9] Added more tools and made suggested changes --- .coderrabbit.yml | 37 +++++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/.coderrabbit.yml b/.coderrabbit.yml index a77204372ff8..f5d60fa8a1de 100644 --- a/.coderrabbit.yml +++ b/.coderrabbit.yml @@ -1,22 +1,47 @@ language: "en-US" reviews: + profile: "assertive" request_changes_workflow: false high_level_summary: true - poem: false + poem: true review_status: true auto_review: enabled: true - ignore_title_keywords: - - "WIP" - - "Do Not Merge" - drafts: false - base_branches: ["master"] tools: spellcheck: enabled: true markdownlint: enabled: true biome: + enabled: true + ruff: + enabled: true + github-checks: + enabled: true + timeout_ms: 90000 + languagetool: + enabled: true + enabled_only: false + level: default + hadolint: + enabled: true + yamllint: + enabled: true + gitleaks: + enabled: true + eslint: + enabled: true + actionlint: + enabled: true + semgrep: enabled: true chat: auto_reply: true +knowledge_base: + opt_out: false + learnings: + scope: "local" + issues: + scope: "local" + pull_requests: + scope: "local" From b050ca39904d907a6e002270a7d6885916991917 Mon Sep 17 00:00:00 2001 From: Aakanksha Date: Wed, 23 Oct 2024 19:39:30 +0530 Subject: [PATCH 6/9] Added auto-reply custom messages --- .coderrabbit.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.coderrabbit.yml b/.coderrabbit.yml index f5d60fa8a1de..dd317cd6452b 100644 --- a/.coderrabbit.yml +++ b/.coderrabbit.yml @@ -13,7 +13,7 @@ tools: markdownlint: enabled: true biome: - enabled: true + enabled: true ruff: enabled: true github-checks: @@ -37,6 +37,9 @@ tools: enabled: true chat: auto_reply: true + custom_messages: + greeting: "Thanks for the mention! I'll review your code shortly." + farewell: "I've completed the review. Let me know if you need any clarification!" knowledge_base: opt_out: false learnings: From d3084766d32d20789b51ffe8aa17d96dfe0e07a4 Mon Sep 17 00:00:00 2001 From: Aakanksha Date: Wed, 23 Oct 2024 22:04:29 +0530 Subject: [PATCH 7/9] Increased github timeout --- .coderrabbit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.coderrabbit.yml b/.coderrabbit.yml index dd317cd6452b..a378e754859b 100644 --- a/.coderrabbit.yml +++ b/.coderrabbit.yml @@ -18,7 +18,7 @@ tools: enabled: true github-checks: enabled: true - timeout_ms: 90000 + timeout_ms: 180000 languagetool: enabled: true enabled_only: false From 1bb39c55cb6b01a27f1e3969df68b8ff1bdc1998 Mon Sep 17 00:00:00 2001 From: Aakanksha Date: Wed, 30 Oct 2024 10:54:33 +0530 Subject: [PATCH 8/9] Removed custom messages --- .coderrabbit.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.coderrabbit.yml b/.coderrabbit.yml index a378e754859b..61b859931880 100644 --- a/.coderrabbit.yml +++ b/.coderrabbit.yml @@ -37,9 +37,6 @@ tools: enabled: true chat: auto_reply: true - custom_messages: - greeting: "Thanks for the mention! I'll review your code shortly." - farewell: "I've completed the review. Let me know if you need any clarification!" knowledge_base: opt_out: false learnings: From a5c850a1fa3341211490470f1d78d795095cc21c Mon Sep 17 00:00:00 2001 From: Akshat Nema <76521428+akshatnema@users.noreply.github.com> Date: Fri, 8 Nov 2024 22:51:37 +0530 Subject: [PATCH 9/9] Update .coderrabbit.yml --- .coderrabbit.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.coderrabbit.yml b/.coderrabbit.yml index 61b859931880..e673f66e890d 100644 --- a/.coderrabbit.yml +++ b/.coderrabbit.yml @@ -14,8 +14,6 @@ tools: enabled: true biome: enabled: true - ruff: - enabled: true github-checks: enabled: true timeout_ms: 180000