repo_name
stringlengths
1
62
dataset
stringclasses
1 value
lang
stringclasses
11 values
pr_id
int64
1
20.1k
owner
stringlengths
2
34
reviewer
stringlengths
2
39
diff_hunk
stringlengths
15
262k
code_review_comment
stringlengths
1
99.6k
ai-pr-reviewer
github_2023
typescript
521
coderabbitai
github-actions[bot]
@@ -84,6 +93,9 @@ export class Options { info(`review_token_limits: ${this.heavyTokenLimits.string()}`) info(`api_base_url: ${this.apiBaseUrl}`) info(`language: ${this.language}`) + info(`azureApiInstance: ${this.azureApiInstance}`) + info(`azureApiDeployment: ${this.azureApiDeployment}`) + info...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit While it's good to log the values of `azureApiInstance`, `azureApiDeployment`, and `azureApiVersion` for debugging purposes, it's important to consider that these might contain sensitive informa...
ai-pr-reviewer
github_2023
others
521
coderabbitai
github-actions[bot]
@@ -144,6 +144,15 @@ inputs: required: false description: 'Disable release notes' default: 'false' + azure_api_instance_name: + required: false + description: 'Instance name of your Azure API. For example, if your Azure instance is hosted under https://{INSTANCE_NAME}.openai.azure.com/openai/dep...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The new inputs for Azure API instance name, deployment name, and API version are optional (`required: false`). However, if the user wants to use the Azure bot functionality, these fields would b...
ai-pr-reviewer
github_2023
typescript
521
coderabbitai
github-actions[bot]
@@ -29,7 +33,10 @@ async function run(): Promise<void> { getInput('openai_concurrency_limit'), getInput('github_concurrency_limit'), getInput('openai_base_url'), - getInput('language') + getInput('language'), + getInput('azure_api_instance_name'), + getInput('azure_api_deployment_name'), + ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The new inputs for Azure API instance name, deployment name, and API version are not validated. It's a good practice to validate user inputs to ensure they meet certain criteria before using the...
ai-pr-reviewer
github_2023
typescript
521
coderabbitai
github-actions[bot]
@@ -42,29 +49,33 @@ // Create two bots, one for summary and one for review - let lightBot: Bot | null = null - try { - lightBot = new Bot( - options, - new OpenAIOptions(options.openaiLightModel, options.lightTokenLimits) - ) - } catch (e: any) { - warning( - `Skipped: failed to create...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `createBot` function now handles both Azure bot and regular bot creation based on the provided options. However, it seems that the error message is still specific to OpenAI key issues. It wo...
ai-pr-reviewer
github_2023
typescript
521
coderabbitai
github-actions[bot]
@@ -0,0 +1,112 @@ +import './fetch-polyfill' + +import {info, setFailed, warning} from '@actions/core' +import {ConversationChain} from 'langchain/chains' +import {ChatOpenAI} from 'langchain/chat_models/openai' +import {BufferMemory} from 'langchain/memory' +import {ChatPromptTemplate, MessagesPlaceholder} from 'langc...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `AzureBot` class seems to be well implemented, following the `BotProtocol` interface. However, there are a few areas that could be improved for better error handling and maintainability. ...
ai-pr-reviewer
github_2023
typescript
521
coderabbitai
github-actions[bot]
@@ -0,0 +1,112 @@ +import './fetch-polyfill' + +import {info, setFailed, warning} from '@actions/core' +import {ConversationChain} from 'langchain/chains' +import {ChatOpenAI} from 'langchain/chat_models/openai' +import {BufferMemory} from 'langchain/memory' +import {ChatPromptTemplate, MessagesPlaceholder} from 'langc...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The constructor of the `AzureBot` class is doing too much work. It's not only setting up the options but also initializing the OpenAI API and creating a new `ConversationChain`. This can make it...
ai-pr-reviewer
github_2023
typescript
521
coderabbitai
github-actions[bot]
@@ -0,0 +1,112 @@ +import './fetch-polyfill' + +import {info, setFailed, warning} from '@actions/core' +import {ConversationChain} from 'langchain/chains' +import {ChatOpenAI} from 'langchain/chat_models/openai' +import {BufferMemory} from 'langchain/memory' +import {ChatPromptTemplate, MessagesPlaceholder} from 'langc...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `chat` method catches errors but only logs a warning and returns the default response. This might hide potential issues with the chat functionality. Consider rethrowing the error after loggi...
ai-pr-reviewer
github_2023
typescript
521
coderabbitai
github-actions[bot]
@@ -0,0 +1,112 @@ +import './fetch-polyfill' + +import {info, setFailed, warning} from '@actions/core' +import {ConversationChain} from 'langchain/chains' +import {ChatOpenAI} from 'langchain/chat_models/openai' +import {BufferMemory} from 'langchain/memory' +import {ChatPromptTemplate, MessagesPlaceholder} from 'langc...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `chat_` method is also doing too much work. It's responsible for sending the message, handling the response, and formatting the response text. Consider breaking this method into smaller meth...
ai-pr-reviewer
github_2023
others
521
coderabbitai
github-actions[bot]
@@ -198,18 +200,152 @@ "node": ">=6.0.0" } }, + "node_modules/@anthropic-ai/sdk": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.9.1.tgz", + "integrity": "sha512-wa1meQ2WSfoY8Uor3EdrJq0jTiZJoKoSii2ZVWRY1oN4Tlr5s59pADg9T79FTbPe1/se5c3pBe...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The new dependencies introduced in the `package-lock.json` file are part of the `@anthropic-ai/sdk` and `@babel/code-frame` packages. However, it's not clear from the PR summary why these depend...
ai-pr-reviewer
github_2023
others
521
coderabbitai
github-actions[bot]
@@ -250,21 +386,21 @@ } }, "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `semver` has been updated from `6.3.0` to `6.3.1`. This is a patch version update, so it should be safe. However, it would be good to test this change thoroughly to ensure that it...
ai-pr-reviewer
github_2023
others
521
coderabbitai
github-actions[bot]
@@ -250,21 +386,21 @@ } }, "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@babel/generator` has been updated from `7.21.3` to `7.23.6`. This is a minor version update, so it should be backward compatible according to semantic versioning rules. However,...
ai-pr-reviewer
github_2023
typescript
513
coderabbitai
github-actions[bot]
@@ -34,7 +34,7 @@ IMPORTANT: Entire response must be in the language with ISO code: ${options.lang ` this.api = new ChatGPTAPI({ - apiBaseUrl: options.apiBaseUrl, + apiBaseUrl: process.env.OPENAI_API_BASE_URL,
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The change from using a value from `options` to directly using an environment variable for `apiBaseUrl` could potentially limit the flexibility of your code. If you want to instantiate `ChatGPTA...
ai-pr-reviewer
github_2023
typescript
513
coderabbitai
github-actions[bot]
@@ -32,8 +32,8 @@ export class Options { reviewCommentLGTM = false, pathFilters: string[] | null = null, systemMessage = '', - openaiLightModel = 'gpt-3.5-turbo', - openaiHeavyModel = 'gpt-3.5-turbo', + openaiLightModel = 'pai-001-light', + openaiHeavyModel = 'pai-001',
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The model names for `openaiLightModel` and `openaiHeavyModel` have been changed from 'gpt-3.5-turbo' to 'pai-001-light' and 'pai-001' respectively. Please ensure that these new models exist and ...
ai-pr-reviewer
github_2023
others
513
coderabbitai
github-actions[bot]
@@ -152,11 +152,11 @@ inputs: required: false description: 'Model to use for simple tasks like summarizing diff on a file.' - default: 'gpt-3.5-turbo' + default: 'pai-001-light' openai_heavy_model: required: false description: 'Model to use for complex tasks such as code reviews.' - ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The indentation for the `default` field under `openai_heavy_model` is incorrect. It should be aligned with the other fields like `required` and `description`. Also, there's a missing space befor...
ai-pr-reviewer
github_2023
others
513
coderabbitai
github-actions[bot]
@@ -104,6 +104,9 @@ jobs: - `OPENAI_API_KEY`: use this to authenticate with OpenAI API. You can get one [here](https://platform.openai.com/account/api-keys). Please add this key to your GitHub Action secrets. +- `OPENAI_API_BASE_URL`: (optional) use this to use a custom OpenAI API base + URL. This is useful if ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The addition of the `OPENAI_API_BASE_URL` environment variable is a good idea for flexibility, especially for users who might be using a custom OpenAI API server. However, it would be helpful to...
ai-pr-reviewer
github_2023
others
511
coderabbitai
github-actions[bot]
@@ -123,3 +123,11 @@ tags.lock .env .secrets bin/act +/.idea/.gitignore +/.idea/ai-pr-reviewer.iml +/.idea/codeStyles/codeStyleConfig.xml +/.idea/misc.xml +/.idea/modules.xml +/.idea/codeStyles/Project.xml +/.idea/inspectionProfiles/Project_Default.xml +/.idea/vcs.xml
The changes to the `.gitignore` file seem to be ignoring IDE-specific files, which is a good practice. However, instead of listing each file in the `.idea` directory individually, you can ignore the entire directory by simply adding `/.idea/`. This will make your `.gitignore` file cleaner and easier to maintain. ```dif...
ai-pr-reviewer
github_2023
typescript
508
coderabbitai
github-actions[bot]
@@ -28,7 +28,6 @@ async function run(): Promise<void> { getInput('openai_timeout_ms'), getInput('openai_concurrency_limit'), getInput('github_concurrency_limit'), - getInput('openai_base_url'), getInput('language') )
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The removal of the `openai_base_url` input seems to be in line with the changes made to the `Bot` class and its interaction with the OpenAI API. However, please ensure that this change doesn't a...
ai-pr-reviewer
github_2023
others
508
coderabbitai
github-actions[bot]
@@ -15,6 +15,7 @@ "@octokit/action": "^6.0.4", "@octokit/plugin-retry": "^4.1.3", "@octokit/plugin-throttling": "^6.1.0", + "langchain": "^0.0.195",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The addition of the "langchain" package is noted. However, without a description or context about why this new dependency is needed, it's hard to assess its impact. Please provide more informati...
ai-pr-reviewer
github_2023
others
508
coderabbitai
github-actions[bot]
@@ -198,6 +199,68 @@ "node": ">=6.0.0" } }, + "node_modules/@anthropic-ai/sdk": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.9.1.tgz", + "integrity": "sha512-wa1meQ2WSfoY8Uor3EdrJq0jTiZJoKoSii2ZVWRY1oN4Tlr5s59pADg9T79FTbPe1/se5c3pBeZg...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit A new package "@anthropic-ai/sdk" has been added as a dependency. This seems to be a significant change, but there's no explanation provided in the PR description. It would be helpful to underst...
ai-pr-reviewer
github_2023
others
508
coderabbitai
github-actions[bot]
@@ -2136,7 +2199,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "dev": true, + "devOptional": true,
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The "devOptional" property has been added to the "@tootallnate/once" package. This change seems fine, but it would be helpful to understand why this was necessary. ```diff + "devOptional": ...
ai-pr-reviewer
github_2023
others
508
coderabbitai
github-actions[bot]
@@ -2230,8 +2293,29 @@ "node_modules/@types/node": { "version": "20.4.2", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.2.tgz", - "integrity": "sha512-Dd0BYtWgnWJKwO1jkmTrzofjK2QXXcai0dmtzvIBhcA+RsG5h8R3xlyta0kGOZRNfL9GuRtb1knmPEhQrePCEw==", - "dev": true + "integrity...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit A new package "@types/node-fetch" has been added as a dependency. This seems to be a significant change, but there's no explanation provided in the PR description. It would be helpful to underst...
ai-pr-reviewer
github_2023
others
508
coderabbitai
github-actions[bot]
@@ -2262,6 +2346,11 @@ "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", "dev": true }, + "node_modules/@types/uuid": { + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.7.tgz", + "int...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit A new package "@types/uuid" has been added as a dependency. This seems to be a significant change, but there's no explanation provided in the PR description. It would be helpful to understand wh...
ai-pr-reviewer
github_2023
others
508
coderabbitai
github-actions[bot]
@@ -2500,13 +2589,24 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", - "dev": true + "devOptional": true + }, + "node_modules/abort-...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit A new package "abort-controller" has been added as a dependency. This seems to be a significant change, but there's no explanation provided in the PR description. It would be helpful to understa...
ai-pr-reviewer
github_2023
others
508
coderabbitai
github-actions[bot]
@@ -2518,7 +2618,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "dev": true, + "devOptional": true,
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The "devOptional" property has been added to the "acorn-globals" package. This change seems fine, but it would be helpful to understand why this was necessary. ```diff + "devOptional": true...
ai-pr-reviewer
github_2023
others
508
coderabbitai
github-actions[bot]
@@ -2528,7 +2628,7 @@ "version": "7.4.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true, + "devOptional": true,
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The "devOptional" property has been added to the "acorn" package. This change seems fine, but it would be helpful to understand why this was necessary. ```diff + "devOptional": true, ``` ...
ai-pr-reviewer
github_2023
others
508
coderabbitai
github-actions[bot]
@@ -2549,7 +2649,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true, + "devOptional": true,
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The "devOptional" property has been added to the "acorn-walk" package. This change seems fine, but it would be helpful to understand why this was necessary. ```diff + "devOptional": true, `...
ai-pr-reviewer
github_2023
typescript
508
coderabbitai
github-actions[bot]
@@ -1,14 +1,11 @@ import './fetch-polyfill' import {info, setFailed, warning} from '@actions/core' -import { - ChatGPTAPI, - ChatGPTError, - ChatMessage, - SendMessageOptions - // eslint-disable-next-line import/no-unresolved -} from 'chatgpt' -import pRetry from 'p-retry' +import {ConversationChain} from 'lan...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The import statements have been modified to use the `langchain` package instead of `chatgpt`. This change seems to be in line with the PR's goal of switching to Azure OpenAI. However, it's impor...
ai-pr-reviewer
github_2023
typescript
508
coderabbitai
github-actions[bot]
@@ -18,83 +15,78 @@ export interface Ids { } export class Bot { - private readonly api: ChatGPTAPI | null = null // not free + private readonly model: ChatOpenAI | null = null + private readonly api: ConversationChain | null = null
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `api` property has been replaced with `model` and `api` properties. It's crucial to verify that these new properties are used correctly throughout the class. ```diff - private readonly api: ...
ai-pr-reviewer
github_2023
typescript
508
coderabbitai
github-actions[bot]
@@ -18,83 +15,78 @@ export interface Ids { } export class Bot { - private readonly api: ChatGPTAPI | null = null // not free + private readonly model: ChatOpenAI | null = null + private readonly api: ConversationChain | null = null private readonly options: Options constructor(options: Options, openaiO...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The constructor now initializes the `model` and `api` properties using environment variables related to Azure OpenAI. The error message when these environment variables are not available has als...
ai-pr-reviewer
github_2023
typescript
508
coderabbitai
github-actions[bot]
@@ -18,83 +15,78 @@ export interface Ids { } export class Bot { - private readonly api: ChatGPTAPI | null = null // not free + private readonly model: ChatOpenAI | null = null + private readonly api: ConversationChain | null = null private readonly options: Options constructor(options: Options, openaiO...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `chat` method has been simplified and no longer returns an array. It's important to ensure that all calls to this method have been updated accordingly. ```diff - chat = async (message: strin...
ai-pr-reviewer
github_2023
typescript
508
coderabbitai
github-actions[bot]
@@ -18,83 +15,78 @@ export interface Ids { } export class Bot { - private readonly api: ChatGPTAPI | null = null // not free + private readonly model: ChatOpenAI | null = null + private readonly api: ConversationChain | null = null private readonly options: Options constructor(options: Options, openaiO...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `chat_` method has been significantly modified. It no longer uses the `pRetry` function or the `SendMessageOptions` type from the old `chatgpt` package. Instead, it directly calls the `api` ...
ai-pr-reviewer
github_2023
typescript
504
coderabbitai
github-actions[bot]
@@ -6,18 +6,28 @@ export class TokenLimits { constructor(model = 'gpt-3.5-turbo') { this.knowledgeCutOff = '2021-09-01' - if (model === 'gpt-4-32k') { - this.maxTokens = 32600 - this.responseTokens = 4000 - } else if (model === 'gpt-3.5-turbo-16k') { - this.maxTokens = 16300 - this.r...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The switch-case statement is a good improvement over the previous if-else chain for readability and maintainability. However, there's no error handling or notification when an unsupported model ...
ai-pr-reviewer
github_2023
others
500
coderabbitai
github-actions[bot]
@@ -1,6 +1,12 @@ -# AI-based PR reviewer and summarizer +# CodeRabbit Pro + +This is an old version of [CodeRabbit](http://coderabbit.ai) and is now in the mainatance mode.
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit There's a typo in the word "maintenance". It should be corrected to maintain professionalism and clarity. ```diff - This is an old version of [CodeRabbit](http://coderabbit.ai) and is now in the...
ai-pr-reviewer
github_2023
others
500
coderabbitai
github-actions[bot]
@@ -1,6 +1,12 @@ -# AI-based PR reviewer and summarizer +# CodeRabbit Pro + +This is an old version of [CodeRabbit](http://coderabbit.ai) and is now in the maintenance mode. +We recommend installing the Pro version from [CodeRabbit](http://coderabbit.ai). The Pro version is a total redesign and offers significantly bet...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The changes made to the README file are clear and informative. However, it seems like there's a formatting issue with the badges for Discord, license, and last commit information. They should be...
ai-pr-reviewer
github_2023
python
499
coderabbitai
github-actions[bot]
@@ -0,0 +1,9 @@ + +def add(x, y): + z = x + y + k = 3 + l = 'ff' + return z
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The variables `k` and `l` are defined but not used in the function `add`. This is unnecessary and can lead to confusion. If these variables are not needed, consider removing them. ```diff - k...
ai-pr-reviewer
github_2023
others
499
coderabbitai
github-actions[bot]
@@ -0,0 +1,36 @@ +name: OpenAI Reviewer + +permissions: + contents: read + pull-requests: write + +on: [push] + + +concurrency: + group: + ${{ github.repository }}-${{ github.event.number || github.head_ref || + github.sha }}-${{ github.workflow }}-${{ github.event_name == + 'pull_request_review_comment' ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The workflow file seems to be well structured and follows the standard conventions for GitHub Actions. However, there's a typo in line 28 where `GGITHUB_TOKEN` should be `GITHUB_TOKEN`. This cou...
ai-pr-reviewer
github_2023
others
499
coderabbitai
github-actions[bot]
@@ -0,0 +1,39 @@ +name: OpenAI Reviewer + +permissions: + contents: read + pull-requests: write + +on: + pull_request_target: + types: [opened, synchronize, reopened] + pull_request_review_comment: + types: [created] + +concurrency: + group: + ${{ github.repository }}-${{ github.event.number || github.hea...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The workflow file seems to be well structured and follows the standard conventions for GitHub Actions. It correctly sets up the job to run on `ubuntu-latest`, checks out the repository, and runs...
ai-pr-reviewer
github_2023
others
487
coderabbitai
github-actions[bot]
@@ -39,7 +39,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.8.0",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `@typescript-eslint/eslint-plugin` package has been updated from version `5.59.6` to `6.8.0`. Please ensure that this update does not introduce breaking changes and is compatible with other ...
ai-pr-reviewer
github_2023
others
479
coderabbitai
github-actions[bot]
@@ -39,7 +39,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.7.5",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@typescript-eslint/eslint-plugin` has been updated from `5.59.6` to `6.7.5`. Please ensure that this new version is compatible with the other packages in your project and that it...
ai-pr-reviewer
github_2023
others
479
coderabbitai
github-actions[bot]
@@ -23,7 +23,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.7.5",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@typescript-eslint/eslint-plugin` has been updated from `5.59.6` to `6.7.5`. Please ensure that this update does not introduce breaking changes and is compatible with the rest of...
ai-pr-reviewer
github_2023
others
479
coderabbitai
github-actions[bot]
@@ -2216,9 +2216,9 @@ } }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/json-schema` has been updated from `7.0.11` to `7.0.13`. Ensure that this new version is compatible with your project. ```diff - "version": "7.0.11", - "resolved...
ai-pr-reviewer
github_2023
others
479
coderabbitai
github-actions[bot]
@@ -2251,9 +2251,9 @@ "integrity": "sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==" }, "node_modules/@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/semver` has been updated from `7.3.13` to `7.5.3`. Please ensure that this update does not introduce breaking changes and is compatible with the rest of the codebase. ```d...
ai-pr-reviewer
github_2023
others
481
coderabbitai
github-actions[bot]
@@ -1,39 +1,77 @@ -name: OpenAI Reviewer +name: ai-pr-reviewer permissions: contents: read pull-requests: write
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The permissions set for the GitHub Actions workflow are appropriate and follow the principle of least privilege. The `contents: read` permission allows the action to read repository content, and...
ai-pr-reviewer
github_2023
others
481
coderabbitai
github-actions[bot]
@@ -1,39 +1,77 @@ -name: OpenAI Reviewer +name: ai-pr-reviewer permissions: contents: read pull-requests: write on: - pull_request_target: - types: [opened, synchronize, reopened] + pull_request: + types: [opened] + branches-ignore: + - master + - main pull_request_review_comment: ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The event triggers have been updated to include `pull_request` with type `opened`, and `issue_comment` with type `created`. However, the `pull_request_review_comment` trigger is not correctly in...
ai-pr-reviewer
github_2023
others
481
coderabbitai
github-actions[bot]
@@ -1,39 +1,77 @@ -name: OpenAI Reviewer +name: ai-pr-reviewer permissions: contents: read pull-requests: write on: - pull_request_target: - types: [opened, synchronize, reopened] + pull_request: + types: [opened] + branches-ignore: + - master + - main pull_request_review_comment: ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The concurrency settings seem fine. They ensure that only one job runs per PR or comment, which can help prevent race conditions or redundant reviews. <!-- This is an auto-generated comment b...
ai-pr-reviewer
github_2023
others
481
coderabbitai
github-actions[bot]
@@ -1,39 +1,77 @@ -name: OpenAI Reviewer +name: ai-pr-reviewer permissions: contents: read pull-requests: write on: - pull_request_target: - types: [opened, synchronize, reopened] + pull_request: + types: [opened] + branches-ignore: + - master + - main pull_request_review_comment: ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The job setup looks good. It's set to run on `ubuntu-latest` and has a timeout of 15 minutes. The condition for running the job seems complex but valid, triggering on issue comments, pull reques...
ai-pr-reviewer
github_2023
others
481
coderabbitai
github-actions[bot]
@@ -1,39 +1,77 @@ -name: OpenAI Reviewer +name: ai-pr-reviewer permissions: contents: read pull-requests: write on: - pull_request_target: - types: [opened, synchronize, reopened] + pull_request: + types: [opened] + branches-ignore: + - master + - main pull_request_review_comment: ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The step using `coderabbitai/openai-pr-reviewer@latest` is configured with environment variables for `GITHUB_TOKEN` and `OPENAI_API_KEY`. The `with:` parameters seem reasonable, although `debug:...
ai-pr-reviewer
github_2023
others
481
coderabbitai
github-actions[bot]
@@ -1,39 +1,77 @@ -name: OpenAI Reviewer +name: ai-pr-reviewer permissions: contents: read pull-requests: write on: - pull_request_target: - types: [opened, synchronize, reopened] + pull_request: + types: [opened] + branches-ignore: + - master + - main pull_request_review_comment: ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The path filters exclude database files and lock files from the review. This seems reasonable as these files typically don't need code review. <!-- This is an auto-generated comment by OSS Co...
ai-pr-reviewer
github_2023
others
481
coderabbitai
github-actions[bot]
@@ -1,39 +1,77 @@ -name: OpenAI Reviewer +name: ai-pr-reviewer permissions: contents: read pull-requests: write on: - pull_request_target: - types: [opened, synchronize, reopened] + pull_request: + types: [opened] + branches-ignore: + - master + - main pull_request_review_comment: ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The system message is written in Japanese and provides a detailed explanation of the bot's purpose and capabilities. This is a good practice for clarity and user understanding. <!-- This is a...
ai-pr-reviewer
github_2023
others
481
coderabbitai
github-actions[bot]
@@ -1,39 +1,77 @@ -name: OpenAI Reviewer +name: ai-pr-reviewer permissions: contents: read pull-requests: write on: - pull_request_target: - types: [opened, synchronize, reopened] + pull_request: + types: [opened] + branches-ignore: + - master + - main pull_request_review_comment: ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `summarize` and `summarize_release_notes` options are set with detailed instructions in Japanese. These settings seem to be well thought out and should provide useful summaries and release n...
ai-pr-reviewer
github_2023
others
474
coderabbitai
github-actions[bot]
@@ -39,7 +39,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.7.4",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The update from `@typescript-eslint/eslint-plugin` version `5.62.0` to `6.7.4` is a major version change. This could potentially introduce breaking changes. Please ensure that you have thoroughl...
ai-pr-reviewer
github_2023
others
474
coderabbitai
github-actions[bot]
@@ -23,7 +23,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.7.4",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@typescript-eslint/eslint-plugin` has been updated from `5.59.6` to `6.7.4`. Please ensure that this update does not introduce breaking changes and is compatible with the rest of...
ai-pr-reviewer
github_2023
others
474
coderabbitai
github-actions[bot]
@@ -2216,9 +2216,9 @@ } }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/json-schema` has been updated from `7.0.11` to `7.0.13`. As this is a patch version update, it's unlikely to cause issues but please verify that there are no breaking chan...
ai-pr-reviewer
github_2023
others
474
coderabbitai
github-actions[bot]
@@ -2251,9 +2251,9 @@ "integrity": "sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==" }, "node_modules/@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/semver` has been updated from `7.3.13` to `7.5.3`. This is a minor version update, so while it should not introduce breaking changes, it may add new features or improvemen...
ai-pr-reviewer
github_2023
others
476
coderabbitai
github-actions[bot]
@@ -30,6 +30,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + BASE_API_URL: ${{ secrets.BASE_API_URL }}
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The addition of the `BASE_API_URL` environment variable is a good practice for maintaining flexibility and configurability in your application. However, please ensure that the `secrets.BASE_API_...
ai-pr-reviewer
github_2023
others
469
coderabbitai
github-actions[bot]
@@ -39,7 +39,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.7.3",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@typescript-eslint/eslint-plugin` has been updated from `5.59.6` to `6.7.3`. Please ensure that this update does not introduce breaking changes and is compatible with other depen...
ai-pr-reviewer
github_2023
others
469
coderabbitai
github-actions[bot]
@@ -23,7 +23,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.7.3",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@typescript-eslint/eslint-plugin` has been updated from `^5.59.6` to `^6.7.3`. Please ensure that this update does not introduce breaking changes and is compatible with the rest ...
ai-pr-reviewer
github_2023
others
469
coderabbitai
github-actions[bot]
@@ -2216,9 +2216,9 @@ } }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/json-schema` has been updated from `7.0.11` to `7.0.13`. Ensure that this minor version bump doesn't affect any functionalities in your application. ```diff - "versio...
ai-pr-reviewer
github_2023
others
469
coderabbitai
github-actions[bot]
@@ -2251,9 +2251,9 @@ "integrity": "sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==" }, "node_modules/@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/semver` has been updated from `7.3.13` to `7.5.3`. Ensure that this minor version bump doesn't affect any functionalities in your application. ```diff - "version": "7...
ai-pr-reviewer
github_2023
others
463
coderabbitai
github-actions[bot]
@@ -39,7 +39,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.7.2",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The update of the `@typescript-eslint/eslint-plugin` from version `5.62.0` to `6.7.2` is a major version change. This could potentially introduce breaking changes. Please ensure that this update...
ai-pr-reviewer
github_2023
others
463
coderabbitai
github-actions[bot]
@@ -23,7 +23,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.7.2",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@typescript-eslint/eslint-plugin` has been updated from `^5.59.6` to `^6.7.2`. Please ensure that this update does not introduce breaking changes and is compatible with the rest ...
ai-pr-reviewer
github_2023
others
463
coderabbitai
github-actions[bot]
@@ -2216,9 +2216,9 @@ } }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/json-schema` has been updated from `7.0.11` to `7.0.13`. Ensure that this new version is compatible with your project and doesn't introduce any breaking changes. ```diff -...
ai-pr-reviewer
github_2023
others
463
coderabbitai
github-actions[bot]
@@ -2251,9 +2251,9 @@ "integrity": "sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==" }, "node_modules/@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/semver` has been updated from `7.3.13` to `7.5.2`. Please ensure that this update does not introduce breaking changes and is compatible with the rest of the codebase. ```d...
ai-pr-reviewer
github_2023
others
359
coderabbitai
github-actions[bot]
@@ -1999,18 +1999,45 @@ } }, "node_modules/@octokit/plugin-retry": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-4.1.3.tgz", - "integrity": "sha512-3YKBj7d0J/4mpEc4xzMociWsMNl5lZqrpAnYcW6mqiSGF3wFjU+c6GHih6GLClk31JNvKDr0x9jc5cfm7ev...
:robot: OpenAI The updated version of `@octokit/plugin-retry` requires Node.js version 18 or higher and `@octokit/core` version 5 or higher. Please ensure that your project meets these requirements before merging this PR to avoid compatibility issues. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
460
coderabbitai
github-actions[bot]
@@ -39,7 +39,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.7.0",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@typescript-eslint/eslint-plugin` has been updated from `5.62.0` to `6.7.0`. Please ensure that this new version is compatible with the rest of your codebase and doesn't introduc...
ai-pr-reviewer
github_2023
others
460
coderabbitai
github-actions[bot]
@@ -23,7 +23,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.7.0",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@typescript-eslint/eslint-plugin` has been updated from `5.59.6` to `6.7.0`. Please ensure that this update does not introduce breaking changes and is compatible with the rest of...
ai-pr-reviewer
github_2023
others
460
coderabbitai
github-actions[bot]
@@ -2216,9 +2216,9 @@ } }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/json-schema` has been updated from `7.0.11` to `7.0.12`. This is a minor version update, so it should not introduce any breaking changes, but please verify that it's compa...
ai-pr-reviewer
github_2023
others
460
coderabbitai
github-actions[bot]
@@ -2251,9 +2251,9 @@ "integrity": "sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==" }, "node_modules/@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/semver` has been updated from `7.3.13` to `7.5.1`. This is a minor version update, so it should not introduce any breaking changes, but please verify that it's compatible ...
ai-pr-reviewer
github_2023
typescript
461
coderabbitai
github-actions[bot]
@@ -1,4 +1,4 @@ -import {info, warning} from '@actions/core' +import {getInput, info, warning} from '@actions/core'
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `getInput` function from '@actions/core' has been added to the import statement. This function is used to get the input parameters passed to the GitHub Action. However, it's important to val...
ai-pr-reviewer
github_2023
typescript
461
coderabbitai
github-actions[bot]
@@ -7,7 +7,7 @@ import {octokit} from './octokit' const context = github_context const repo = context.repo -export const COMMENT_GREETING = `<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit` +export const COMMENT_GREETING = `${getInput('bot...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The hardcoded image tag has been replaced with a call to `getInput('bot_icon')`. This allows users to customize the bot icon. However, there is no validation or sanitization of the input. If the...
ai-pr-reviewer
github_2023
others
456
coderabbitai
github-actions[bot]
@@ -39,7 +39,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.6.0",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `@typescript-eslint/eslint-plugin` package has been updated from version `5.59.6` to `6.6.0`. Please ensure that this major version upgrade does not introduce breaking changes or incompatibi...
ai-pr-reviewer
github_2023
others
456
coderabbitai
github-actions[bot]
@@ -23,7 +23,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.6.0",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@typescript-eslint/eslint-plugin` has been updated from `5.59.6` to `6.6.0`. Please ensure that this new version is compatible with the rest of your codebase and doesn't introduc...
ai-pr-reviewer
github_2023
others
456
coderabbitai
github-actions[bot]
@@ -2216,9 +2216,9 @@ } }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/json-schema` has been updated from `7.0.11` to `7.0.12`. As this is a patch update, it's unlikely to cause issues, but please verify that this change doesn't affect your a...
ai-pr-reviewer
github_2023
others
456
coderabbitai
github-actions[bot]
@@ -2251,9 +2251,9 @@ "integrity": "sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==" }, "node_modules/@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/semver` has been updated from `7.3.13` to `7.5.1`. This is a minor version update, so while it shouldn't introduce breaking changes, it may add new features or improvement...
ai-pr-reviewer
github_2023
others
449
coderabbitai
github-actions[bot]
@@ -39,7 +39,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.5.0",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@typescript-eslint/eslint-plugin` has been updated from `5.59.6` to `6.5.0`. This is a major version update, so please ensure that this new version doesn't introduce breaking cha...
ai-pr-reviewer
github_2023
others
449
coderabbitai
github-actions[bot]
@@ -23,7 +23,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.5.0",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@typescript-eslint/eslint-plugin` has been updated from `^5.59.6` to `^6.5.0`. This is a major version update, so please ensure that this doesn't introduce any breaking changes i...
ai-pr-reviewer
github_2023
others
449
coderabbitai
github-actions[bot]
@@ -2216,9 +2216,9 @@ } }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/json-schema` has been updated from `7.0.11` to `7.0.12`. This is a patch version update and should not introduce any breaking changes, but it's still good to verify if eve...
ai-pr-reviewer
github_2023
others
453
coderabbitai
github-actions[bot]
@@ -1,12 +1,14 @@ # AI-based PR reviewer and summarizer [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) - <div> <a href="https://github.com/coderabbitai/ai-pr-reviewer)/commits/main"> <img alt="GitHub" src="https://img.shields.io/github/last-com...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The addition of the Discord badge is a good idea for community engagement. However, it's important to ensure that the link provided is correct and accessible. Please double-check the Discord inv...
ai-pr-reviewer
github_2023
others
443
coderabbitai
github-actions[bot]
@@ -39,7 +39,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.4.1",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@typescript-eslint/eslint-plugin` has been updated from `^5.59.6` to `^6.4.1`. This is a major version update, so please ensure that this new version doesn't introduce breaking c...
ai-pr-reviewer
github_2023
others
443
coderabbitai
github-actions[bot]
@@ -23,7 +23,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/eslint-plugin": "^6.4.1",
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@typescript-eslint/eslint-plugin` has been updated from `^5.59.6` to `^6.4.1`. This is a major version update, so please ensure that this doesn't introduce any breaking changes i...
ai-pr-reviewer
github_2023
others
443
coderabbitai
github-actions[bot]
@@ -2216,9 +2216,9 @@ } }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The version of `@types/json-schema` has been updated from `7.0.11` to `7.0.12`. This is a patch version update, which typically means bug fixes or minor improvements. It's unlikely to cause any ...
ai-pr-reviewer
github_2023
others
442
coderabbitai
github-actions[bot]
@@ -206,33 +206,30 @@ inputs: required: false description: 'The prompt for final summarization response' default: | - Provide your final response in the `markdown` format with - the following content: - - *Walkthrough*: A high-level summary of the - overall change instead of ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The changes made to the `action.yml` file are mostly about reformatting and adding more detailed instructions for generating a final summarization response and release notes. However, there's a ...
ai-pr-reviewer
github_2023
typescript
430
coderabbitai
github-actions[bot]
@@ -28,7 +28,8 @@ async function run(): Promise<void> { getInput('openai_timeout_ms'), getInput('openai_concurrency_limit'), getInput('github_concurrency_limit'), - getInput('openai_base_url') + getInput('openai_base_url'), + getInput('language')
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The new `language` parameter is being fetched from the input but there's no validation or sanitization performed on it. This could lead to potential issues if an invalid or unexpected language c...
ai-pr-reviewer
github_2023
typescript
430
coderabbitai
github-actions[bot]
@@ -21,6 +21,7 @@ export class Options { lightTokenLimits: TokenLimits heavyTokenLimits: TokenLimits apiBaseUrl: string + language: string
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `language` property has been added to the `Options` class. However, it would be beneficial to add a comment explaining what this property is for and what values it can take. ```suggestion ...
ai-pr-reviewer
github_2023
typescript
430
coderabbitai
github-actions[bot]
@@ -135,28 +135,27 @@ implications. Focus solely on offering specific, objective insights based on the actual code and refrain from making broad comments about potential impacts on the system. -Use Markdown format for review comment text and fenced code blocks for code -snippets. - -If needed, suggest new code s...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The instructions here are clear and concise, but it might be helpful to include an example of how to use `diff` code blocks for replacement snippets. This would provide a visual guide for users ...
ai-pr-reviewer
github_2023
typescript
430
coderabbitai
github-actions[bot]
@@ -323,8 +323,11 @@ ${ ins.fileDiff = fileDiff // render prompt based on inputs so far - const summarizePrompt = prompts.renderSummarizeFileDiff(ins, options.reviewSimpleChanges) - let tokens = getTokenCount(summarizePrompt) + const summarizePrompt = prompts.renderSummarizeFileDiff( + ins, + ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The change from a single line function call to a multi-line function call doesn't seem to have any functional impact. However, it does improve readability by making the code more clear and easie...
ai-pr-reviewer
github_2023
typescript
430
coderabbitai
github-actions[bot]
@@ -334,10 +337,7 @@ ${ // summarize content try { - const [summarizeResp] = await lightBot.chat( - summarizePrompt, - {} - ) + const [summarizeResp] = await lightBot.chat(summarizePrompt, {})
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit Similar to the previous comment, this change improves readability by breaking down the function call into multiple lines. This makes it easier to see what parameters are being passed to the func...
ai-pr-reviewer
github_2023
typescript
430
coderabbitai
github-actions[bot]
@@ -135,28 +135,27 @@ implications. Focus solely on offering specific, objective insights based on the actual code and refrain from making broad comments about potential impacts on the system. -Use Markdown format for review comment text and fenced code blocks for code -snippets. - -If needed, suggest new code s...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The instructions for formatting code snippets in review comments have been updated to specify the use of GitHub flavored markdown and the exclusion of line numbers. This is a good change as it e...
ai-pr-reviewer
github_2023
typescript
430
coderabbitai
github-actions[bot]
@@ -166,11 +165,6 @@ text \`LGTM!\` for that line range in the review section. z = x / y return z -15: def complex_function(x, y): -16: a = x * 2 -17: b = y / 3 -18: return a + b -19: 20: def add(x, y): 21: z = x + y 22: retrn z
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit There's a syntax error in the add function at line 170. The keyword `return` is misspelled as `retrn`. ```diff - 22: retrn z + 22: return z ``` <!-- This is an auto-generated comment b...
ai-pr-reviewer
github_2023
typescript
430
coderabbitai
github-actions[bot]
@@ -207,23 +197,11 @@ Please review this change. ### Example response -15-18: -I suggest the following improvements: -\`\`\`diff -def complex_function(x, y): -- a = x * 2 -- b = y / 3 -- return a + b -+ a = x ** 2 -+ b = y ** 3 -+ c = a + b -+ return c / 2 -\`\`\` ---- 22-22: There's ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The example response has been updated to reflect the new guidelines for providing replacement snippets. This is a good change as it provides a clear example of how to follow the new guidelines. ...
ai-pr-reviewer
github_2023
typescript
430
coderabbitai
github-actions[bot]
@@ -135,28 +135,27 @@ implications. Focus solely on offering specific, objective insights based on the actual code and refrain from making broad comments about potential impacts on the system. -Use Markdown format for review comment text and fenced code blocks for code -snippets. - -If needed, suggest new code s...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit > Note: This review was outside of the patch, but no patch was found that overlapped with it. Original lines [15-18] - I suggest the following improvements: - \`\`\`diff - def complex_function(...
ai-pr-reviewer
github_2023
others
430
coderabbitai
github-actions[bot]
@@ -66,7 +55,13 @@ FAQs, you can refer to the sections below. - [Contribute](#contribute) - [FAQs](#faqs) +## Professional Version of CodeRabbit +The professional version of `openai-pr-reviewer` project is now available at +[coderabbit.ai](http://Coderabbit.ai). Building upon our open-source foundation, +CodeRabb...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The professional version of CodeRabbit is mentioned again here. It seems redundant as it was already mentioned in the previous hunk. Consider removing this repetition to improve readability. ```...
ai-pr-reviewer
github_2023
others
430
coderabbitai
github-actions[bot]
@@ -212,7 +204,7 @@ appreciated. ### Developing > First, you'll need to have a reasonably modern version of `node` handy, tested -> with node 16. +> with node 17+.
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The Node.js version requirement has been updated from 16+ to 17+. Ensure that all dependencies are compatible with this new version and that this change is communicated to all developers. ```dif...
ai-pr-reviewer
github_2023
typescript
424
coderabbitai
github-actions[bot]
@@ -9,6 +9,9 @@ export class TokenLimits { if (model === 'gpt-4-32k') { this.maxTokens = 32600 this.responseTokens = 4000 + if (model === 'gpt-3.5-turbo-16k') { + this.maxTokens = 16300 + this.responseTokens = 3000
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The new model `gpt-3.5-turbo-16k` is added within the condition for `gpt-4-32k`. This could lead to logical errors as the conditions are not mutually exclusive. I suggest moving the condition fo...
ai-pr-reviewer
github_2023
typescript
416
coderabbitai
github-actions[bot]
@@ -171,7 +172,7 @@ text \`LGTM!\` for that line range in the review section. 18: return a + b 19: 20: def add(x, y): -21: z = x - y +21: z = x + y
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit There's a syntax error in the add function. The keyword `return` is misspelled as `retrn`. ```suggestion return z ``` <!-- This is an auto-generated comment by OSS CodeRabbit -->
ai-pr-reviewer
github_2023
typescript
416
coderabbitai
github-actions[bot]
@@ -868,21 +868,21 @@ function parseReview( ): Review[] { const reviews: Review[] = [] + response = sanitizeResponse(response.trim()) + const lines = response.split('\n') const lineNumberRangeRegex = /(?:^|\s)(\d+)-(\d+):\s*$/ - const lineNumberSingleRegex = /(?:^|\s)(\d+):\s*$/ // New single line regex ...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `sanitizeResponse` function is called on the `response` variable before it is split into lines. This is a good practice as it ensures that the entire response is sanitized before any further...
ai-pr-reviewer
github_2023
typescript
416
coderabbitai
github-actions[bot]
@@ -971,15 +971,14 @@ ${review.comment}` return comment } - function sanitizeComment(comment: string): string { + function sanitizeResponse(comment: string): string { comment = sanitizeCodeBlock(comment, 'suggestion') comment = sanitizeCodeBlock(comment, 'diff') return comment
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The `sanitizeResponse` function replaces the previous `sanitizeComment` function. It sanitizes code blocks for suggestions and diffs. This is a good improvement as it ensures that all parts of t...
ai-pr-reviewer
github_2023
typescript
416
coderabbitai
github-actions[bot]
@@ -990,15 +989,6 @@ ${review.comment}` info(`Found line number range: ${currentStartLine}-${currentEndLine}`) } continue - } else if (lineNumberSingleMatch != null) { - storeReview() - currentStartLine = parseInt(lineNumberSingleMatch[1], 10) - currentEndLine = currentStartLine...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The feature that allowed for single line comments has been removed. If this was intentional and single line comments are no longer needed, then this change is fine. However, if single line comme...
ai-pr-reviewer
github_2023
typescript
413
coderabbitai
github-actions[bot]
@@ -143,7 +143,7 @@ test cases), or within the same file at locations outside the provided hunks. Multiple new code snippets are allowed within a single review section. If necessary, provide a replacement snippet to fix an issue by using fenced code -blocks using with the \`diff\` format, marking additions with \`...
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The change is a correction of a typographical error in the comment. The word "with" was removed to make the sentence grammatically correct. ```suggestion blocks using the \`diff\` format, markin...
ai-pr-reviewer
github_2023
typescript
412
coderabbitai
github-actions[bot]
@@ -101,153 +101,137 @@ $short_summary ## Parsing changes -The format for changes provided below consists of multiple change -sections, each containing a new hunk (annotated with line numbers), -an old hunk, and optionally, existing comment chains. Note that the -old hunk code has been replaced by the new hunk....
<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit The text in these lines is a bit redundant and could be simplified for better readability. The phrase "The format for changes provided in the example below consists of multiple change sections, ...