From e8c9f5f2539eba862985bb350b45eca78ffa4c19 Mon Sep 17 00:00:00 2001 From: Harjot Gill Date: Mon, 20 Jan 2025 12:22:34 -0800 Subject: [PATCH 1/7] add LLM_PROVIDER config var name for bedrock-anthropic --- docs/self-hosted/azure-devops.md | 4 +--- docs/self-hosted/bitbucket.md | 5 +++-- docs/self-hosted/github.md | 4 +--- docs/self-hosted/gitlab.md | 4 +--- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/docs/self-hosted/azure-devops.md b/docs/self-hosted/azure-devops.md index 04681002..46a079ab 100644 --- a/docs/self-hosted/azure-devops.md +++ b/docs/self-hosted/azure-devops.md @@ -67,15 +67,13 @@ AZURE_O1MINI_DEPLOYMENT_NAME=[] AZURE_O1_DEPLOYMENT_NAME=[] # if using AWS Bedrock +LLM_PROVIDER=bedrock-anthropic AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_REGION= TEMP_PATH=/cache -AST_GREP_RULES_PATH=/home/jailuser/ast-grep-rules -AST_GREP_ESSENTIALS=ast-grep-essentials - SELF_HOSTED=azure-devops AZURE_DEVOPS_BOT_TOKEN= diff --git a/docs/self-hosted/bitbucket.md b/docs/self-hosted/bitbucket.md index a2879c65..a9fdb182 100644 --- a/docs/self-hosted/bitbucket.md +++ b/docs/self-hosted/bitbucket.md @@ -60,15 +60,16 @@ AZURE_O1MINI_DEPLOYMENT_NAME=[] AZURE_O1_DEPLOYMENT_NAME=[] # if using AWS Bedrock +LLM_PROVIDER=bedrock-anthropic AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_REGION= # System Configuration TEMP_PATH=/cache -AST_GREP_RULES_PATH=/home/jailuser/ast-grep-rules -AST_GREP_ESSENTIALS=ast-grep-essentials + SELF_HOSTED=bitbucket-server + BITBUCKET_SERVER_URL=/rest BITBUCKET_SERVER_WEBHOOK_SECRET= BITBUCKET_SERVER_BOT_TOKEN= diff --git a/docs/self-hosted/github.md b/docs/self-hosted/github.md index 7bb7ed56..ff795252 100644 --- a/docs/self-hosted/github.md +++ b/docs/self-hosted/github.md @@ -71,6 +71,7 @@ AZURE_O1MINI_DEPLOYMENT_NAME=[] AZURE_O1_DEPLOYMENT_NAME=[] # if using AWS Bedrock +LLM_PROVIDER=bedrock-anthropic AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_REGION= @@ -83,9 +84,6 @@ ANTHROPIC_BASE_URL=[] TEMP_PATH=/cache -AST_GREP_RULES_PATH=/home/jailuser/ast-grep-rules -AST_GREP_ESSENTIALS=ast-grep-essentials - SELF_HOSTED=github GH_WEBHOOK_SECRET= diff --git a/docs/self-hosted/gitlab.md b/docs/self-hosted/gitlab.md index ae402ebd..30385ddd 100644 --- a/docs/self-hosted/gitlab.md +++ b/docs/self-hosted/gitlab.md @@ -66,6 +66,7 @@ AZURE_O1MINI_DEPLOYMENT_NAME=[] AZURE_O1_DEPLOYMENT_NAME=[] # if using AWS Bedrock +LLM_PROVIDER=bedrock-anthropic AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_REGION= @@ -78,9 +79,6 @@ ANTHROPIC_BASE_URL=[] TEMP_PATH=/cache -AST_GREP_RULES_PATH=/home/jailuser/ast-grep-rules -AST_GREP_ESSENTIALS=ast-grep-essentials - SELF_HOSTED=gitlab GITLAB_BOT_TOKEN= From 8c74850b6428770d3495ec8e3f2af9b83cde5e78 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 21:23:49 +0000 Subject: [PATCH 2/7] Update schema.v2.json --- static/schema/schema.v2.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/static/schema/schema.v2.json b/static/schema/schema.v2.json index 49112fbf..23319d33 100644 --- a/static/schema/schema.v2.json +++ b/static/schema/schema.v2.json @@ -211,6 +211,27 @@ "default": true, "description": "Generate a poem in the walkthrough comment." }, + "finishing_touches": { + "type": "object", + "properties": { + "docstrings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": true, + "description": "Allow CodeRabbit to generate docstrings for PRs/MRs." + } + }, + "additionalProperties": false, + "default": {}, + "description": "Docstrings | Options for generating Docstrings for your PRs/MRs." + } + }, + "additionalProperties": false, + "default": {}, + "description": "Finishing Touches | Options for adding finishing touches to your PRs/MRs, like Docstrings." + }, "labeling_instructions": { "type": "array", "items": { From 81b0c17782fe8ddfa814e9b24c780fd177b28991 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 23:21:38 +0000 Subject: [PATCH 3/7] Update schema.v2.json --- static/schema/schema.v2.json | 86 +++++++++++++++++++++++++++--------- 1 file changed, 65 insertions(+), 21 deletions(-) diff --git a/static/schema/schema.v2.json b/static/schema/schema.v2.json index 23319d33..b9948686 100644 --- a/static/schema/schema.v2.json +++ b/static/schema/schema.v2.json @@ -211,27 +211,6 @@ "default": true, "description": "Generate a poem in the walkthrough comment." }, - "finishing_touches": { - "type": "object", - "properties": { - "docstrings": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": true, - "description": "Allow CodeRabbit to generate docstrings for PRs/MRs." - } - }, - "additionalProperties": false, - "default": {}, - "description": "Docstrings | Options for generating Docstrings for your PRs/MRs." - } - }, - "additionalProperties": false, - "default": {}, - "description": "Finishing Touches | Options for adding finishing touches to your PRs/MRs, like Docstrings." - }, "labeling_instructions": { "type": "array", "items": { @@ -333,6 +312,26 @@ "additionalProperties": false, "default": {} }, + "finishing_touches": { + "type": "object", + "properties": { + "docstrings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": true, + "description": "Docstrings | Allow CodeRabbit to generate docstrings for PRs/MRs." + } + }, + "additionalProperties": false, + "default": {}, + "description": "Docstrings | Options for generating Docstrings for your PRs/MRs." + } + }, + "additionalProperties": false, + "default": {} + }, "tools": { "type": "object", "properties": { @@ -771,6 +770,39 @@ "type": "boolean", "default": true, "description": "Enable the bot to reply automatically without requiring the user to tag it." + }, + "integrations": { + "type": "object", + "properties": { + "jira": { + "type": "object", + "properties": { + "enabled": { + "type": "string", + "enum": ["auto", "true", "false"], + "default": "auto", + "description": "Jira | Enable the Jira integration for opening issues, etc. 'auto' disables the integration for public repositories." + } + }, + "additionalProperties": false, + "default": {} + }, + "linear": { + "type": "object", + "properties": { + "enabled": { + "type": "string", + "enum": ["auto", "true", "false"], + "default": "auto", + "description": "Linear | Enable the Linear integration for opening issues, etc. 'auto' disables the integration for public repositories." + } + }, + "additionalProperties": false, + "default": {} + } + }, + "additionalProperties": false, + "default": {} } }, "additionalProperties": false, @@ -813,6 +845,12 @@ "jira": { "type": "object", "properties": { + "enabled": { + "type": "string", + "enum": ["auto", "true", "false"], + "default": "auto", + "description": "Jira | Enable the Jira knowledge base integration. 'auto' disables the integration for public repositories." + }, "project_keys": { "type": "array", "items": { @@ -828,6 +866,12 @@ "linear": { "type": "object", "properties": { + "enabled": { + "type": "string", + "enum": ["auto", "true", "false"], + "default": "auto", + "description": "Linear | Enable the Linear knowledge base integration. 'auto' disables the integration for public repositories." + }, "team_keys": { "type": "array", "items": { From 3e8ec95a62a3a023b229239cc9e04b8d48a32bcd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 01:18:28 +0000 Subject: [PATCH 4/7] Update schema.v2.json --- static/schema/schema.v2.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/static/schema/schema.v2.json b/static/schema/schema.v2.json index b9948686..3717926b 100644 --- a/static/schema/schema.v2.json +++ b/static/schema/schema.v2.json @@ -777,9 +777,9 @@ "jira": { "type": "object", "properties": { - "enabled": { + "usage": { "type": "string", - "enum": ["auto", "true", "false"], + "enum": ["auto", "enabled", "disabled"], "default": "auto", "description": "Jira | Enable the Jira integration for opening issues, etc. 'auto' disables the integration for public repositories." } @@ -790,9 +790,9 @@ "linear": { "type": "object", "properties": { - "enabled": { + "usage": { "type": "string", - "enum": ["auto", "true", "false"], + "enum": ["auto", "enabled", "disabled"], "default": "auto", "description": "Linear | Enable the Linear integration for opening issues, etc. 'auto' disables the integration for public repositories." } @@ -845,9 +845,9 @@ "jira": { "type": "object", "properties": { - "enabled": { + "usage": { "type": "string", - "enum": ["auto", "true", "false"], + "enum": ["auto", "enabled", "disabled"], "default": "auto", "description": "Jira | Enable the Jira knowledge base integration. 'auto' disables the integration for public repositories." }, @@ -866,9 +866,9 @@ "linear": { "type": "object", "properties": { - "enabled": { + "usage": { "type": "string", - "enum": ["auto", "true", "false"], + "enum": ["auto", "enabled", "disabled"], "default": "auto", "description": "Linear | Enable the Linear knowledge base integration. 'auto' disables the integration for public repositories." }, From 3873a49932b537db905f652c44b3782bc5783dde Mon Sep 17 00:00:00 2001 From: Aravind Putrevu Date: Mon, 20 Jan 2025 18:35:19 +0530 Subject: [PATCH 5/7] nav bar ui fix --- src/css/custom.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/css/custom.css b/src/css/custom.css index 30237809..10fbbe4d 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -303,3 +303,13 @@ a[docid="docs"] > svg { .center-image { text-align: center; } +/* Hide "docs" text that overlays the logo */ +.navbar__items a[href="/"] { + font-size: 0; + visibility: hidden; +} + +/* Ensure the logo remains visible */ +.navbar__logo { + visibility: visible; +} \ No newline at end of file From d5f476e48745f02534d4abdf0babbfac3abd8ed7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 13:06:08 +0000 Subject: [PATCH 6/7] =?UTF-8?q?=F0=9F=8E=A8=20pnpm=20run=20lint:fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [dependabot skip] --- src/css/custom.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css/custom.css b/src/css/custom.css index 10fbbe4d..d3339284 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -312,4 +312,4 @@ a[docid="docs"] > svg { /* Ensure the logo remains visible */ .navbar__logo { visibility: visible; -} \ No newline at end of file +} From a3d4349fd07ad3eea4d9ed5daccf73d6acffe15e Mon Sep 17 00:00:00 2001 From: ankitjena Date: Tue, 21 Jan 2025 12:44:29 +0530 Subject: [PATCH 7/7] remove unnecessary styles, add media query --- src/css/custom.css | 43 ++++++++++--------------------------------- 1 file changed, 10 insertions(+), 33 deletions(-) diff --git a/src/css/custom.css b/src/css/custom.css index d3339284..b94b469d 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -90,19 +90,6 @@ a[docid="docs"] > svg { align-items: center; } -@media screen and (max-width: 480px) { - a.navbar__item.navbar__link[docid="docs"] { - display: none !important; - } -} - -@media screen and (max-width: 480px) { - a.navbar__item.navbar__link[href="https://coderabbit.ai/blog"] - { - display: none; - } -} - [data-theme="light"] img[src$="#gh-dark-mode-only"], [data-theme="dark"] img[src$="#gh-light-mode-only"] { display: none; @@ -157,19 +144,6 @@ a[docid="docs"] > svg { align-items: center; } -@media screen and (max-width: 480px) { - a.navbar__item.navbar__link[docid="docs"] { - display: none !important; - } -} - -@media screen and (max-width: 480px) { - a.navbar__item.navbar__link[href="https://coderabbit.ai/blog"] - { - display: none; - } -} - /* Light mode Discord icon */ /* .header-discord-link:before { -webkit-filter: invert(100%); @@ -303,13 +277,16 @@ a[docid="docs"] > svg { .center-image { text-align: center; } -/* Hide "docs" text that overlays the logo */ -.navbar__items a[href="/"] { - font-size: 0; - visibility: hidden; + +@media screen and (max-width: 480px) { + a.navbar__item.navbar__link[href="/"] { + display: none; + } } -/* Ensure the logo remains visible */ -.navbar__logo { - visibility: visible; +@media screen and (max-width: 480px) { + a.navbar__item.navbar__link[href="https://coderabbit.ai/blog"] + { + display: none; + } }