From 25ea4964390696e7edb1666a9001ffccf6697169 Mon Sep 17 00:00:00 2001 From: Philip Offtermatt Date: Thu, 2 May 2024 12:16:43 +0200 Subject: [PATCH 1/3] Add coderabbit configuration file --- .coderabbit.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .coderabbit.yml diff --git a/.coderabbit.yml b/.coderabbit.yml new file mode 100644 index 0000000000..917eb52c0c --- /dev/null +++ b/.coderabbit.yml @@ -0,0 +1,38 @@ +language: "en" +early_access: false +reviews: + request_changes_workflow: false + high_level_summary: true + poem: false + review_status: true + collapse_walkthrough: true + path_filters: + - "!api/" + path_instructions: + - path: "**/*.go" + instructions: "Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations." + - path: "tests/e2e/*" + instructions: | + "Assess the e2e test code assessing sufficient code coverage for the changes associated in the pull request" + - path: "tests/integration/*" + instructions: | + "Assess the e2e test code assessing sufficient code coverage for the changes associated in the pull request" + - path: "**/*_test.go" + instructions: | + "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request" + - path: "**/*.md" + instructions: | + "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness" + - path: ".changelog/*" + instructions: | + "Assess the changes in the changelog for correctness and completeness, particularly flagging missing changes" + auto_review: + enabled: true + ignore_title_keywords: + - "WIP" + - "DO NOT MERGE" + drafts: false + base_branches: + - "main" +chat: + auto_reply: true From b8e50ca8ac067c4d847defc985cec354742bbd0e Mon Sep 17 00:00:00 2001 From: Philip Offtermatt Date: Thu, 2 May 2024 12:19:20 +0200 Subject: [PATCH 2/3] Add release and feat base branches to coderabbit --- .coderabbit.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.coderabbit.yml b/.coderabbit.yml index 917eb52c0c..78011fe584 100644 --- a/.coderabbit.yml +++ b/.coderabbit.yml @@ -34,5 +34,7 @@ reviews: drafts: false base_branches: - "main" + - "feat/*" + - "release/*" chat: auto_reply: true From 32e54300800ebe02eb27e148075c755c4ab37d51 Mon Sep 17 00:00:00 2001 From: Philip Offtermatt Date: Thu, 2 May 2024 12:51:37 +0200 Subject: [PATCH 3/3] Change config to not auto-post review status on unreviewed PRs --- .coderabbit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.coderabbit.yml b/.coderabbit.yml index 78011fe584..6083e965da 100644 --- a/.coderabbit.yml +++ b/.coderabbit.yml @@ -4,7 +4,7 @@ reviews: request_changes_workflow: false high_level_summary: true poem: false - review_status: true + review_status: false collapse_walkthrough: true path_filters: - "!api/"