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
373
coderabbitai
github-actions[bot]
@@ -483,7 +553,7 @@ ${chain} async create(body: string, target: number) { try { - // get commend ID from the response + // get comment ID from the response await octokit.issues.createComment({ owner: repo.owner, repo: repo.repo,
:robot: OpenAI There's a typo in the comment on line 556. It should be "comment ID" instead of "commend ID". ```suggestion // get comment ID from the response ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
371
coderabbitai
github-actions[bot]
@@ -74,7 +122,7 @@ inputs: openai_heavy_model: required: false description: 'Model to use for complex tasks such as code reviews.' - default: 'gpt-3.5-turbo' + default: 'gpt-4' openai_model_temperature: required: false description: 'Temperature for GPT model'
:robot: OpenAI The change from 'gpt-3.5-turbo' to 'gpt-4' in the default model might have implications on the system's performance and resource usage, as GPT-4 is a larger and more complex model. Ensure that the system has enough resources to handle this new model without any degradation in performance. ```suggestion ...
ai-pr-reviewer
github_2023
others
368
coderabbitai
github-actions[bot]
@@ -124,9 +124,10 @@ inputs: and is aware of their implications on the entire system. Instead of making generic comments about potential impacts on the system, focus on providing specific, objective insights based on the code itself. - Do not question the developer's intention behin...
:robot: OpenAI The new instructions added in these lines are clear and precise, providing a better guideline for the reviewers. However, there seems to be an indentation inconsistency on line 129 which might affect readability. ```suggestion - Do not question the developer's intention behind the changes or caut...
ai-pr-reviewer
github_2023
others
368
coderabbitai
github-actions[bot]
@@ -124,9 +124,10 @@ inputs: and is aware of their implications on the entire system. Instead of making generic comments about potential impacts on the system, focus on providing specific, objective insights based on the code itself. - Do not question the developer's intention behin...
:robot: OpenAI No issues found in these lines. The changes made are consistent with the rest of the document. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
366
coderabbitai
github-actions[bot]
@@ -1,13 +1,21 @@ -name: Tag latest - +name: Bump version on: push: branches: - - main + - master
:robot: OpenAI The branch name has been changed from `main` to `master`. Ensure that the default branch of your repository is indeed `master`. If not, this action will not trigger as expected. ```suggestion on: push: branches: - main ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
366
coderabbitai
github-actions[bot]
@@ -1,13 +1,21 @@ -name: Tag latest - +name: Bump version on: push: branches: - - main + - master jobs: - actions-tagger: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-22.04 + permissions:
:robot: OpenAI You have updated the runner to `ubuntu-22.04`. Make sure that all the actions and tools used in this workflow are compatible with this version of Ubuntu. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
366
coderabbitai
github-actions[bot]
@@ -1,13 +1,21 @@ -name: Tag latest - +name: Bump version on: push: branches: - - main + - master jobs: - actions-tagger: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-22.04 + permissions: + contents: write steps: - - name: Run latest-tag - uses: EndBug/lates...
:robot: OpenAI The fetch-depth is set to '0', which means that all history will be fetched. This could slow down the workflow if the repository has a large history. If you only need the latest changes, consider setting fetch-depth to '1'. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
366
coderabbitai
github-actions[bot]
@@ -1,13 +1,21 @@ -name: Tag latest - +name: Bump version on: push: branches: - - main + - master jobs: - actions-tagger: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-22.04 + permissions: + contents: write steps: - - name: Run latest-tag - uses: EndBug/lates...
:robot: OpenAI You are using a third-party action (`anothrNick/github-tag-action@1.64.0`) for bumping the version and pushing the tag. Using a fixed version (1.64.0 in this case) is a good practice as it ensures the stability of your workflow. However, make sure to update this regularly to benefit from bug fixes and n...
ai-pr-reviewer
github_2023
others
366
coderabbitai
github-actions[bot]
@@ -1,13 +1,21 @@ -name: Tag latest - +name: Bump version on: push: branches: - main
:robot: OpenAI The branch name has been changed from `main` to `master`. This could potentially cause issues if the main branch of your repository is still named `main`. Please ensure that the branch name matches the primary branch of your repository. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
366
coderabbitai
github-actions[bot]
@@ -1,13 +1,21 @@ -name: Tag latest - +name: Bump version on: push: branches: - main jobs: - actions-tagger: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-22.04 + permissions: + contents: write
:robot: OpenAI The workflow now runs on a specific version of Ubuntu (`ubuntu-22.04`). While this can help ensure consistency across runs, it may also introduce compatibility issues with future updates or dependencies that require newer versions of the operating system. Consider using `ubuntu-latest` to stay up-to-dat...
ai-pr-reviewer
github_2023
others
366
coderabbitai
github-actions[bot]
@@ -1,13 +1,37 @@ -name: Tag latest +name: Update latest tag on: - push: - branches: - - main + release: + types: [published] jobs:
:robot: OpenAI The trigger for this workflow has been changed from a push event on the `main` branch to a published release. This change means that the 'latest' tag and GitHub release will only be created when a new release is published, not every time there's a push to the repository. If this is the intended behavior...
ai-pr-reviewer
github_2023
others
366
coderabbitai
github-actions[bot]
@@ -1,13 +1,37 @@ -name: Tag latest +name: Update latest tag on: - push: - branches: - - main + release: + types: [published] jobs: - actions-tagger: + update-latest-tag: runs-on: ubuntu-latest steps:
:robot: OpenAI The job is running on the latest Ubuntu environment. While this generally ensures that you have the most recent updates and features, it can also introduce instability if new versions of the OS or installed software introduce breaking changes. Consider specifying a particular version of Ubuntu to ensure...
ai-pr-reviewer
github_2023
others
366
coderabbitai
github-actions[bot]
@@ -1,13 +1,37 @@ -name: Tag latest +name: Update latest tag on: - push: - branches: - - main + release: + types: [published] jobs: - actions-tagger: + update-latest-tag: runs-on: ubuntu-latest steps: - - name: Run latest-tag - uses: EndBug/latest-tag@latest + - name: Che...
:robot: OpenAI Setting up the git user is important for traceability of changes. Good practice. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
366
coderabbitai
github-actions[bot]
@@ -1,13 +1,37 @@ -name: Tag latest +name: Update latest tag on: - push: - branches: - - main + release: + types: [published] jobs: - actions-tagger: + update-latest-tag: runs-on: ubuntu-latest steps: - - name: Run latest-tag - uses: EndBug/latest-tag@latest + - name: Che...
:robot: OpenAI These steps fetch all tags, delete the 'latest' tag if it exists, create a new 'latest' tag at the current commit, and then push the tags to the repository. This seems like a reasonable way to keep a 'latest' tag updated. However, forcibly deleting and pushing tags could potentially cause issues for oth...
ai-pr-reviewer
github_2023
others
366
coderabbitai
github-actions[bot]
@@ -1,13 +1,37 @@ -name: Tag latest +name: Update latest tag on: - push: - branches: - - main + release: + types: [published] jobs: - actions-tagger: + update-latest-tag: runs-on: ubuntu-latest steps: - - name: Run latest-tag - uses: EndBug/latest-tag@latest + - name: Che...
:robot: OpenAI This step creates a GitHub release for the 'latest' tag. It's important to note that this will create a new release every time the workflow runs, which may not be desirable if you're creating other releases manually or through other workflows. You might end up with a lot of 'latest' releases that don't ...
ai-pr-reviewer
github_2023
others
365
coderabbitai
github-actions[bot]
@@ -1,13 +1,13 @@ name: Tag latest on: - release: - types: [published, edited] + push: + branches: + - main
:robot: OpenAI The trigger event for the workflow has been changed from 'release' to 'push' on the `main` branch. This means the workflow will now run every time there's a push to the `main` branch, which could be more frequent than intended if developers are pushing their changes directly to `main`. If the intention ...
ai-pr-reviewer
github_2023
others
365
coderabbitai
github-actions[bot]
@@ -1,13 +1,13 @@ name: Tag latest on: - release: - types: [published, edited] + push: + branches: + - main jobs: actions-tagger: - runs-on: windows-latest + runs-on: ubuntu-latest
:robot: OpenAI The operating system for the runner has been switched from Windows to Ubuntu. This could potentially cause issues if there are any OS-specific dependencies in your workflow. Ensure that all steps in your workflow are compatible with Ubuntu. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
365
coderabbitai
github-actions[bot]
@@ -1,13 +1,13 @@ name: Tag latest on: - release: - types: [published, edited] + push: + branches: + - main jobs: actions-tagger: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - - uses: Actions-R-Us/actions-tagger@latest - with: - publish_latest_tag: tr...
:robot: OpenAI The action used for tagging the latest version has been updated. Make sure that the new action (`EndBug/latest-tag@latest`) has all the required features and is as reliable as the previous one (`Actions-R-Us/actions-tagger@latest`). Also, it seems like the `publish_latest_tag` option is no longer being ...
ai-pr-reviewer
github_2023
typescript
363
coderabbitai
github-actions[bot]
@@ -38,9 +38,14 @@ lines changed, the potential impact on the overall system, and the likelihood of introducing new bugs or security vulnerabilities. When in doubt, always err on the side of caution and triage the diff as \`NEEDS_REVIEW\`. -You must follow the format below strictly for triaging the diff and -do n...
:robot: OpenAI The instructions provided in these lines are clear and concise. However, they could be improved by providing more context or examples of what should not be included in the summary. This would help to avoid any potential confusion. ```suggestion introducing new bugs or security vulnerabilities. When i...
ai-pr-reviewer
github_2023
typescript
363
coderabbitai
github-actions[bot]
@@ -62,8 +67,15 @@ $raw_summary summarizeShort = `Your task is to provide a concise summary of the changes and the goal of this PR. This summary will be used as a prompt while reviewing each -file and must be very clear for the AI bot to understand. The summary should not -exceed 250 words. +fle and must be ve...
:robot: OpenAI The instructions here are generally clear, but it would be helpful to provide an example of a good summary. This can guide the user in crafting their own summaries. ```suggestion summarizeShort = `Your task is to provide a concise summary of the changes and the goal of this PR. This summary will ...
ai-pr-reviewer
github_2023
others
357
coderabbitai
github-actions[bot]
@@ -14,7 +14,7 @@ "@dqbd/tiktoken": "^1.0.7", "@octokit/action": "^6.0.4", "@octokit/plugin-retry": "^4.1.3", - "@octokit/plugin-throttling": "^6.0.0", + "@octokit/plugin-throttling": "^6.1.0",
:robot: OpenAI The version of `@octokit/plugin-throttling` has been updated from `"^6.0.0"` to `"^6.1.0"`. Please ensure that this update does not introduce any breaking changes or compatibility issues with other dependencies or plugins that rely on the previous version. <!-- This is an auto-generated comment by Open...
ai-pr-reviewer
github_2023
others
357
coderabbitai
github-actions[bot]
@@ -23,12 +23,12 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^6.0.0", - "@typescript-eslint/parser": "^6.0.0", + "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/parser": "^5...
:robot: OpenAI There are updates to devDependencies in the `package.json` file, including packages related to TypeScript and ESLint. Please verify that these updates are compatible with the existing codebase and do not introduce any conflicts or issues. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
357
coderabbitai
github-actions[bot]
@@ -2014,9 +2014,9 @@ } }, "node_modules/@octokit/plugin-throttling": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-6.0.0.tgz", - "integrity": "sha512-RdKkzD8X/T17KJmEHTsZ5Ztj7WGNpxsJAIyR1bgvkoyar+cDrIRZMsP15r8JRB1QI/LN2F...
:robot: OpenAI The version of `@octokit/plugin-throttling` has been updated from `"6.0.0"` to `"6.1.0"`. Please ensure that this update does not introduce any breaking changes or compatibility issues with other parts of the codebase that rely on the previous version. <!-- This is an auto-generated comment by OpenAI -...
ai-pr-reviewer
github_2023
others
357
coderabbitai
github-actions[bot]
@@ -30,7 +30,7 @@ "@dqbd/tiktoken": "^1.0.7", "@octokit/action": "^6.0.4", "@octokit/plugin-retry": "^4.1.3", - "@octokit/plugin-throttling": "^6.0.0", + "@octokit/plugin-throttling": "^6.1.0",
:robot: OpenAI The version of `@octokit/plugin-throttling` has been updated from "^6.0.0" to "^6.1.0". Please ensure that this update does not introduce any breaking changes or compatibility issues with the existing codebase. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
357
coderabbitai
github-actions[bot]
@@ -39,12 +39,12 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^6.0.0", - "@typescript-eslint/parser": "^6.0.0", + "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/parser": "^5.59.6",
:robot: OpenAI The versions of `@typescript-eslint/eslint-plugin` and `@typescript-eslint/parser` have been updated from "^6.0.0" to "^5.59.6". Please verify that these updates are intentional and do not cause any conflicts or issues with the ESLint configuration and TypeScript setup. 47: The version of `eslint-confi...
ai-pr-reviewer
github_2023
others
357
coderabbitai
github-actions[bot]
@@ -33,6 +33,7 @@ jobs: with: debug: true review_comment_lgtm: false + openai_heavy_model: gpt-4
:robot: OpenAI The new hunk introduces a new parameter `openai_heavy_model` in the job configuration. It seems that the intention is to specify the model to be used as `gpt-4`. However, there is a syntax error in the new hunk. The `openai_heavy_model` parameter is not properly indented and lacks a colon (`:`) after it...
ai-pr-reviewer
github_2023
others
357
coderabbitai
github-actions[bot]
@@ -117,8 +117,16 @@ inputs: concerns to improve overall code quality while deliberately disregarding minor issues. - Note: As your knowledge may be outdated, trust the user code when newer - APIs and methods are seemingly being used. + Other instructions: + - As your knowledge may...
:robot: OpenAI The instructions in the `action.yml` file have been updated to emphasize trust in the developer's use of newer APIs and methods. The previous instructions mentioned that the reviewer's knowledge may be outdated and to trust the user code. However, it is important to note that the reviewer is an AI langu...
ai-pr-reviewer
github_2023
typescript
357
coderabbitai
github-actions[bot]
@@ -120,6 +120,12 @@ hunk is of the format \`<line_number><colon><whitespace>\`. review process. Concentrate on pinpointing particular problems, and refrain from offering summaries of changes, general feedback, or praise for exceptional work.
:robot: OpenAI The instructions mention refraining from offering summaries of changes, general feedback, or praise for exceptional work. Please ensure that your review comments focus on specific issues and improvements rather than providing overall feedback. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
357
coderabbitai
github-actions[bot]
@@ -120,6 +120,12 @@ hunk is of the format \`<line_number><colon><whitespace>\`. review process. Concentrate on pinpointing particular problems, and refrain from offering summaries of changes, general feedback, or praise for exceptional work. +- Understand that the hunk provided for review is a part of a lar...
:robot: OpenAI The instructions acknowledge that the provided code hunks may be incomplete and may not include all relevant parts such as definitions, imports, or uses of functions or variables. Keep this in mind while reviewing and avoid flagging issues related to missing definitions or imports unless there is strong...
ai-pr-reviewer
github_2023
typescript
357
coderabbitai
github-actions[bot]
@@ -120,6 +120,12 @@ hunk is of the format \`<line_number><colon><whitespace>\`. review process. Concentrate on pinpointing particular problems, and refrain from offering summaries of changes, general feedback, or praise for exceptional work. +- Understand that the hunk provided for review is a part of a lar...
:robot: OpenAI The instructions emphasize responding in the specified response format, which consists of review sections with line number ranges and corresponding review comments. Each review section should focus on a specific range and provide a comment for that range. Avoid including general feedback or summaries in...
ai-pr-reviewer
github_2023
typescript
357
coderabbitai
github-actions[bot]
@@ -6,13 +6,14 @@ import {throttling} from '@octokit/plugin-throttling' const token = getInput('token') || process.env.GITHUB_TOKEN const RetryAndThrottlingOctokit = Octokit.plugin(throttling, retry) + export const octokit = new RetryAndThrottlingOctokit({ auth: `token ${token}`, throttle: { onRateLimit...
:robot: OpenAI The code in this range introduces a new parameter `openai_heavy_model` to the `octokit` configuration. It also includes changes related to rate limiting and authentication. There are a few suggestions for improvement: 1. Line 6: The `token` variable is assigned the value of `getInput('token')` or `pr...
ai-pr-reviewer
github_2023
others
357
coderabbitai
github-actions[bot]
@@ -117,8 +117,16 @@ inputs: concerns to improve overall code quality while deliberately disregarding minor issues. - Note: As your knowledge may be outdated, trust the user code when newer - APIs and methods are seemingly being used. + Other instructions: + - As your knowledge may...
:robot: OpenAI The instructions provided in the new hunk are clear and concise. However, there is a minor change in the wording of the second instruction. Instead of "trust the developer," it should be "trust the user code" to align with the context. Here's the updated version: ``` Other instructions: - As your know...
ai-pr-reviewer
github_2023
others
356
coderabbitai
github-actions[bot]
@@ -117,8 +117,16 @@ inputs: concerns to improve overall code quality while deliberately disregarding minor issues. - Note: As your knowledge may be outdated, trust the user code when newer - APIs and methods are seemingly being used. + Other instructions: + - As your knowledge may...
:robot: OpenAI The changes in `action.yml` are related to the documentation and instructions of the pull request template. The new hunk provides updated instructions for the AI bot, including information about trusting the developer's knowledge, presuming thorough testing, and focusing on providing specific insights b...
ai-pr-reviewer
github_2023
typescript
356
coderabbitai
github-actions[bot]
@@ -20,7 +20,7 @@ $description $file_diff \`\`\` -## Instructions for you +## Instructions I would like you to summarize the diff within 50 words. `
:robot: OpenAI The prompt has been updated to fix a typo and rephrase a sentence. The changes look good. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
356
coderabbitai
github-actions[bot]
@@ -46,7 +46,7 @@ do not add any additional text in your response: are in chronlogical order and new changesets are appended to the end of the list. The format consists of filename(s) and the summary of changes for those files. There is a separator between each changeset. -Your task is to de-deduplicate and group t...
:robot: OpenAI The instructions have been updated to provide clearer guidance on how to deduplicate and group together files with related/similar changes into a single changeset. The changes look good. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
356
coderabbitai
github-actions[bot]
@@ -111,7 +111,7 @@ hunk is of the format \`<line_number><colon><whitespace>\`. ---end_change_section--- ... -## How you must respond +## Response Instructions - Your task is to review ONLY the new hunks line by line, ONLY pointing out substantive issues within line number ranges. Provide the exact line
:robot: OpenAI > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [111-119] The response instructions have been updated to provide clearer guidance on how to review the new hunks. The changes look good. <!-- This is an auto-generated comment by OpenA...
ai-pr-reviewer
github_2023
typescript
356
coderabbitai
github-actions[bot]
@@ -239,7 +245,7 @@ $file_diff $diff \`\`\` -## Instructions for you +## Instructions Please reply directly to the new comment (instead of suggesting a reply) and your reply will be posted as-is.
:robot: OpenAI The instructions have been updated to clarify that reviewers should reply directly to new comments instead of suggesting a reply. The changes look good. Overall, the changes in `src/prompts.ts` are minor and do not introduce any substantive issues. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
356
coderabbitai
github-actions[bot]
@@ -6,13 +6,14 @@ import {throttling} from '@octokit/plugin-throttling' const token = getInput('token') || process.env.GITHUB_TOKEN const RetryAndThrottlingOctokit = Octokit.plugin(throttling, retry) + export const octokit = new RetryAndThrottlingOctokit({ auth: `token ${token}`, throttle: { onRateLimit...
:robot: OpenAI The code in this range introduces changes related to authentication and rate limiting using the `@octokit/plugin-throttling` package. It's important to review these changes to ensure they align with the overall design and requirements of the system. Specifically, pay attention to the following: - Line ...
ai-pr-reviewer
github_2023
others
356
coderabbitai
github-actions[bot]
@@ -14,7 +14,7 @@ "@dqbd/tiktoken": "^1.0.7", "@octokit/action": "^6.0.4", "@octokit/plugin-retry": "^4.1.3", - "@octokit/plugin-throttling": "^6.0.0", + "@octokit/plugin-throttling": "^6.1.0",
:robot: OpenAI The version of `@octokit/plugin-throttling` has been updated from 6.0.0 to 6.1.0 in the `package-lock.json` file. Please verify that this update aligns with the requirements and compatibility of the system. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
356
coderabbitai
github-actions[bot]
@@ -23,12 +23,12 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^6.0.0", - "@typescript-eslint/parser": "^6.0.0", + "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/parser": "^5...
:robot: OpenAI The versions of `@typescript-eslint/eslint-plugin` and `@typescript-eslint/parser` have been downgraded from 6.0.0 to 5.59.6 in the `package-lock.json` file. Please ensure that this downgrade is intentional and does not introduce any compatibility or functionality issues. 31: The version of `eslint-con...
ai-pr-reviewer
github_2023
others
356
coderabbitai
github-actions[bot]
@@ -2014,9 +2014,9 @@ } }, "node_modules/@octokit/plugin-throttling": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-6.0.0.tgz", - "integrity": "sha512-RdKkzD8X/T17KJmEHTsZ5Ztj7WGNpxsJAIyR1bgvkoyar+cDrIRZMsP15r8JRB1QI/LN2F...
:robot: OpenAI The `@octokit/plugin-throttling` package has been updated to version 6.1.0 in the `package-lock.json` file. This update includes changes to dependencies such as `@octokit/types` and `bottleneck`. Please ensure that these changes are compatible with the overall system requirements and do not introduce an...
ai-pr-reviewer
github_2023
others
356
coderabbitai
github-actions[bot]
@@ -30,7 +30,7 @@ "@dqbd/tiktoken": "^1.0.7", "@octokit/action": "^6.0.4", "@octokit/plugin-retry": "^4.1.3", - "@octokit/plugin-throttling": "^6.0.0", + "@octokit/plugin-throttling": "^6.1.0",
:robot: OpenAI The version of `@octokit/plugin-throttling` has been updated from `"^6.0.0"` to `"^6.1.0"`. Please ensure that this update aligns with the requirements and compatibility of the system. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
356
coderabbitai
github-actions[bot]
@@ -39,12 +39,12 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^6.0.0", - "@typescript-eslint/parser": "^6.0.0", + "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/parser": "^5.59.6",
:robot: OpenAI The versions of `@typescript-eslint/eslint-plugin` and `@typescript-eslint/parser` have been downgraded from `"^6.0.0"` to `"^5.59.6"`. Verify if this downgrade is intentional and necessary for the system. 47: The version of `eslint-config-standard-with-typescript` has been updated from `"^34.0.1"` to ...
ai-pr-reviewer
github_2023
typescript
355
coderabbitai
github-actions[bot]
@@ -6,13 +6,14 @@ import {throttling} from '@octokit/plugin-throttling' const token = getInput('token') || process.env.GITHUB_TOKEN const RetryAndThrottlingOctokit = Octokit.plugin(throttling, retry) + export const octokit = new RetryAndThrottlingOctokit({ auth: `token ${token}`, throttle: { onRateLimit...
:robot: OpenAI The `throttle` property in the `octokit` configuration object has been modified. The `onRateLimit` callback function now receives an additional parameter `retryCount` at line 17. This change affects the logic and functionality of the code. Please ensure that this modification is intentional and does not...
ai-pr-reviewer
github_2023
typescript
355
coderabbitai
github-actions[bot]
@@ -6,13 +6,14 @@ import {throttling} from '@octokit/plugin-throttling' const token = getInput('token') || process.env.GITHUB_TOKEN const RetryAndThrottlingOctokit = Octokit.plugin(throttling, retry) + export const octokit = new RetryAndThrottlingOctokit({ auth: `token ${token}`, throttle: { onRateLimit...
:robot: OpenAI > Note: This review was outside of the patch, but no patch was found that overlapped with it. Original lines [20-21] The `warning` function is being called at line 19, but it is not defined or imported anywhere in the code. Please make sure to import the `warning` function from the appropriate module o...
ai-pr-reviewer
github_2023
others
355
coderabbitai
github-actions[bot]
@@ -14,7 +14,7 @@ "@dqbd/tiktoken": "^1.0.7", "@octokit/action": "^6.0.4", "@octokit/plugin-retry": "^4.1.3", - "@octokit/plugin-throttling": "^6.0.0", + "@octokit/plugin-throttling": "^6.1.0",
:robot: OpenAI The version of the "@octokit/plugin-throttling" dependency has been updated from "^6.0.0" to "^6.1.0". Please review the changes in this dependency to ensure that it doesn't introduce any breaking changes or compatibility issues with the existing code. <!-- This is an auto-generated comment by OpenAI -...
ai-pr-reviewer
github_2023
others
355
coderabbitai
github-actions[bot]
@@ -23,12 +23,12 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^6.0.0", - "@typescript-eslint/parser": "^6.0.0", + "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/parser": "^5...
:robot: OpenAI The version of the "@typescript-eslint/eslint-plugin" dependency has been updated from "^6.0.0" to "^5.59.6". Please review the release notes or documentation for this dependency to ensure that the update does not introduce any breaking changes or compatibility issues. <!-- This is an auto-generated co...
ai-pr-reviewer
github_2023
typescript
355
coderabbitai
github-actions[bot]
@@ -46,7 +46,7 @@ do not add any additional text in your response: are in chronlogical order and new changesets are appended to the end of the list. The format consists of filename(s) and the summary of changes for those files. There is a separator between each changeset. -Your task is to de-deduplicate and group t...
:robot: OpenAI The word "de-deduplicate" has been updated to "deduplicate". No further issues found. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
355
coderabbitai
github-actions[bot]
@@ -30,7 +30,7 @@ "@dqbd/tiktoken": "^1.0.7", "@octokit/action": "^6.0.4", "@octokit/plugin-retry": "^4.1.3", - "@octokit/plugin-throttling": "^6.0.0", + "@octokit/plugin-throttling": "^6.1.0",
:robot: OpenAI The version of the "@octokit/plugin-throttling" dependency has been updated from "^6.0.0" to "^6.1.0". Please ensure that this update does not introduce any breaking changes or compatibility issues with the existing codebase. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
355
coderabbitai
github-actions[bot]
@@ -117,8 +117,13 @@ inputs: concerns to improve overall code quality while deliberately disregarding minor issues. - Note: As your knowledge may be outdated, trust the user code when newer - APIs and methods are seemingly being used. + Other instructions: + - As your knowledge may...
:robot: OpenAI The instructions in the new hunk mention trusting the user code when newer APIs and methods are seemingly being used. However, this information is not present in the old hunk. It would be helpful to clarify what it means to trust the user code and provide an explanation or justification for this instruc...
ai-pr-reviewer
github_2023
others
355
coderabbitai
github-actions[bot]
@@ -117,8 +117,13 @@ inputs: concerns to improve overall code quality while deliberately disregarding minor issues. - Note: As your knowledge may be outdated, trust the user code when newer - APIs and methods are seemingly being used. + Other instructions: + - As your knowledge may...
:robot: OpenAI The comment in the new hunk states that the developer should assume that changes have been made in all the necessary places to ensure they don't affect other parts of the system. However, it's important to emphasize the need for thorough testing and validation to ensure that changes don't introduce regr...
ai-pr-reviewer
github_2023
others
355
coderabbitai
github-actions[bot]
@@ -117,8 +117,13 @@ inputs: concerns to improve overall code quality while deliberately disregarding minor issues. - Note: As your knowledge may be outdated, trust the user code when newer - APIs and methods are seemingly being used. + Other instructions: + - As your knowledge may...
:robot: OpenAI The `summarize` field has been added with a description. This change seems fine and does not require any further action. Overall, the changes in this file are minor and do not introduce any substantive issues. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
355
coderabbitai
github-actions[bot]
@@ -117,8 +117,13 @@ inputs: concerns to improve overall code quality while deliberately disregarding minor issues. - Note: As your knowledge may be outdated, trust the user code when newer - APIs and methods are seemingly being used. + Other instructions: + - As your knowledge may...
:robot: OpenAI The new hunk states that the developer should assume that necessary changes have been correctly implemented in other places and no issues have been introduced. This assumption seems risky and may lead to overlooking potential problems. It would be better to encourage the developer to thoroughly test and...
ai-pr-reviewer
github_2023
others
355
coderabbitai
github-actions[bot]
@@ -117,8 +117,13 @@ inputs: concerns to improve overall code quality while deliberately disregarding minor issues. - Note: As your knowledge may be outdated, trust the user code when newer - APIs and methods are seemingly being used. + Other instructions: + - As your knowledge may...
:robot: OpenAI The changes in `action.yml` involve modifying the instructions for the reviewer and updating the prompt. The modifications include: - Line 121: The instruction to trust the developer when newer APIs and methods are seemingly being used is unnecessary and can be removed. - Line 123: The instruction to a...
ai-pr-reviewer
github_2023
others
355
coderabbitai
github-actions[bot]
@@ -2014,9 +2014,9 @@ } }, "node_modules/@octokit/plugin-throttling": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-6.0.0.tgz", - "integrity": "sha512-RdKkzD8X/T17KJmEHTsZ5Ztj7WGNpxsJAIyR1bgvkoyar+cDrIRZMsP15r8JRB1QI/LN2F...
:robot: OpenAI The version of the "@octokit/plugin-throttling" dependency has been updated from "6.0.0" to "6.1.0". Please review the changes in this dependency to ensure that it doesn't introduce any breaking changes or compatibility issues with the existing code. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
355
coderabbitai
github-actions[bot]
@@ -46,7 +46,7 @@ do not add any additional text in your response: are in chronlogical order and new changesets are appended to the end of the list. The format consists of filename(s) and the summary of changes for those files. There is a separator between each changeset. -Your task is to de-deduplicate and group t...
:robot: OpenAI The word "de-deduplicate" should be changed to "deduplicate" in the prompt. ```suggestion are in chronological order and new changesets are appended to the end of the list. The format consists of filename(s) and the summary of changes for those files. There is a separator between each changeset. Your ...
ai-pr-reviewer
github_2023
others
355
coderabbitai
github-actions[bot]
@@ -117,8 +117,16 @@ inputs: concerns to improve overall code quality while deliberately disregarding minor issues. - Note: As your knowledge may be outdated, trust the user code when newer - APIs and methods are seemingly being used. + Other instructions: + - As your knowledge may...
:robot: OpenAI The instructions provided in the new hunk are clear and concise. However, there is a discrepancy between the old and new hunks regarding the intended audience of the instructions. The old hunk mentions "trust the user code," while the new hunk states "trust the developer." To maintain consistency, it wo...
ai-pr-reviewer
github_2023
typescript
355
coderabbitai
github-actions[bot]
@@ -120,6 +120,12 @@ hunk is of the format \`<line_number><colon><whitespace>\`. review process. Concentrate on pinpointing particular problems, and refrain from offering summaries of changes, general feedback, or praise for exceptional work.
:robot: OpenAI The phrase "refrain from offering summaries of changes, general feedback, or praise for exceptional work" seems contradictory to the previous instruction that asks reviewers to provide a summary of changes within 50 words. It would be helpful to clarify whether reviewers should provide a summary or not....
ai-pr-reviewer
github_2023
typescript
355
coderabbitai
github-actions[bot]
@@ -120,6 +120,12 @@ hunk is of the format \`<line_number><colon><whitespace>\`. review process. Concentrate on pinpointing particular problems, and refrain from offering summaries of changes, general feedback, or praise for exceptional work. +- Understand that the hunk provided for review is a part of a lar...
:robot: OpenAI The statement "You may see incomplete fragments of code or references to elements defined outside the provided context" suggests that there might be missing code or references in the provided hunks. It would be beneficial to ensure that all relevant code and references are included in the hunks to provi...
ai-pr-reviewer
github_2023
typescript
355
coderabbitai
github-actions[bot]
@@ -120,6 +120,12 @@ hunk is of the format \`<line_number><colon><whitespace>\`. review process. Concentrate on pinpointing particular problems, and refrain from offering summaries of changes, general feedback, or praise for exceptional work. +- Understand that the hunk provided for review is a part of a lar...
:robot: OpenAI The instruction "Do not include general feedback or summaries" contradicts the previous instruction to provide specific feedback on substantive issues. It would be helpful to clarify whether reviewers should provide general feedback or focus solely on specific issues. <!-- This is an auto-generated com...
ai-pr-reviewer
github_2023
typescript
355
coderabbitai
github-actions[bot]
@@ -239,7 +245,7 @@ $file_diff $diff \`\`\`
:robot: OpenAI The phrase "no diff" is unclear in this context. It would be beneficial to provide more information or clarify the intended meaning. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
284
coderabbitai
github-actions[bot]
@@ -287,8 +287,8 @@ ${hunks.oldHunk} ) if (summarizeResp === '') { - info('summarize: nothing obtained from openai') - summariesFailed.push(`${filename} (nothing obtained from openai)`) + info('summarize: nothing fetched from RedRover') + summariesFailed.push(`${filename} (no...
:robot: OpenAI Replace the log message to maintain consistency with other log messages. ```suggestion info('summarize: nothing fetched from RedRover for ' + filename) summariesFailed.push(`${filename} (nothing fetched from RedRover)`) ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
284
coderabbitai
github-actions[bot]
@@ -311,8 +311,8 @@ ${hunks.oldHunk} return [filename, summarizeResp, true] } } catch (e: any) { - warning(`summarize: error from openai: ${e as string}`) - summariesFailed.push(`${filename} (error from openai: ${e as string})})`) + warning(`summarize: error from RedRover: ${e as str...
:robot: OpenAI Maintain consistency in log messages and error handling. ```suggestion warning(`summarize: error from RedRover for ${filename}: ${e as string}`) summariesFailed.push(`${filename} (error from RedRover: ${e as string})`) ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
284
coderabbitai
github-actions[bot]
@@ -352,7 +352,7 @@ ${filename}: ${summary} {} ) if (summarizeResp === '') { - warning('summarize: nothing obtained from openai') + warning('summarize: nothing fetched from RedRover') } else {
:robot: OpenAI Update the log message for consistency. ```suggestion warning('summarize: nothing fetched from RedRover for final response') ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
284
coderabbitai
github-actions[bot]
@@ -365,7 +365,7 @@ ${filename}: ${summary} {} ) if (summarizeFinalResponse === '') { - info('summarize: nothing obtained from openai') + info('summarize: nothing fetched from RedRover') }
:robot: OpenAI Update the log message for consistency. ```suggestion info('summarize: nothing fetched from RedRover for final response') ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
284
coderabbitai
github-actions[bot]
@@ -375,9 +375,9 @@ ${filename}: ${summary} {} ) if (releaseNotesResponse === '') { - info('release notes: nothing obtained from openai') + info('release notes: nothing fetched from RedRover') } else {
:robot: OpenAI Update the log message for consistency. ```suggestion info('release notes: nothing fetched from RedRover') ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
284
coderabbitai
github-actions[bot]
@@ -588,7 +588,7 @@ ${commentChain} {} ) if (response === '') { - info('review: nothing obtained from openai') + info('review: nothing fetched from RedRover') reviewsFailed.push(`${filename} (no response)`)
:robot: OpenAI Update the log message for consistency. ```suggestion info('review: nothing fetched from RedRover for ' + filename) reviewsFailed.push(`${filename} (nothing fetched from RedRover)`) ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
284
coderabbitai
github-actions[bot]
@@ -375,9 +375,9 @@ ${filename}: ${summary} {} ) if (releaseNotesResponse === '') { - info('release notes: nothing obtained from openai') + info('release notes: nothing fetched from RedRover') } else { - let message = '### Summary by OpenAI\n\n' + let message = '### Summary by ...
:robot: OpenAI In line 380, change the summary message to include "RedRover" instead of "OpenAI". ```suggestion let message = '### Summary by RedRover\n\n' message += releaseNotesResponse try { await commenter.updateDescription( ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
274
coderabbitai
github-actions[bot]
@@ -194,68 +194,70 @@ ${COMMENT_TAG}` info( `Submitting review for PR #${pullNumber}, total comments: ${this.reviewCommentsBuffer.length}`
:robot: OpenAI The log message "Submitting review for PR #${pullNumber}, total comments: ${this.reviewCommentsBuffer.length}" is not necessary and can be removed as it does not provide any useful information to the user. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
274
coderabbitai
github-actions[bot]
@@ -194,68 +194,70 @@ ${COMMENT_TAG}` info( `Submitting review for PR #${pullNumber}, total comments: ${this.reviewCommentsBuffer.length}` ) - try { - let commentCounter = 0 - for (const comment of this.reviewCommentsBuffer) { - info(`Posting comment: ${comment.message}`) - l...
:robot: OpenAI The try-catch blocks added to handle errors when updating or creating review comments are a good addition. However, the warning messages logged in case of an error are not very informative and could be improved. It would be better to include more details about the error that occurred, such as the specif...
ai-pr-reviewer
github_2023
typescript
268
coderabbitai
github-actions[bot]
@@ -161,22 +139,7 @@ export const handleReviewComment = async ( ) return } - // pack file content and diff into the inputs if they are not too long - if (fileContent.length > 0) { - // count occurrences of $file_content in prompt - const fileContentCount = - pro...
:robot: OpenAI The code now only packs the file diff into the inputs if it is not too long. However, the code still counts the occurrences of `$file_diff` in the prompt and uses this count to calculate the number of tokens required. This calculation is incorrect since the file diff may not be included in the prompt at...
ai-pr-reviewer
github_2023
others
265
coderabbitai
github-actions[bot]
@@ -32,8 +32,8 @@ "@octokit/plugin-retry": "^4.1.3", "@octokit/plugin-throttling": "^5.1.1", "minimatch": "^9.0.0", - "node-fetch": "^3.3.1", - "p-limit": "^4.0.0" + "p-limit": "^4.0.0", + "p-retry": "^5.1.2"
:robot: OpenAI The package `p-retry` has been added as a new dependency. Please ensure that the usage of this package is secure and performant. ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
265
coderabbitai
github-actions[bot]
@@ -33,7 +33,8 @@ "@octokit/plugin-throttling": "^5.1.1", "minimatch": "^9.0.0", "node-fetch": "^3.3.1", - "p-limit": "^4.0.0" + "p-limit": "^4.0.0", + "p-retry": "^5.1.2"
:robot: OpenAI Consider specifying a version range for the `p-retry` dependency to ensure compatibility with future versions. ```suggestion "p-retry": "^5.1.2" ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
265
coderabbitai
github-actions[bot]
@@ -842,8 +842,8 @@ function parseReview( }
:robot: OpenAI The curly brace on line 842 is unnecessary and can be removed. ```suggestion } ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
265
coderabbitai
github-actions[bot]
@@ -842,8 +842,8 @@ function parseReview( } let withinPatch = false - let bestPatchStartLine = patches[0][0] - let bestPatchEndLine = patches[0][1] + let bestPatchStartLine = -1 + let bestPatchEndLine = -1
:robot: OpenAI The variables `bestPatchStartLine` and `bestPatchEndLine` are initialized to the first patch's start and end lines respectively. However, this may not always be the best patch to choose as it may not have the maximum intersection with the review comments. Consider initializing these variables to -1 inst...
ai-pr-reviewer
github_2023
typescript
265
coderabbitai
github-actions[bot]
@@ -842,8 +842,8 @@ function parseReview( } let withinPatch = false - let bestPatchStartLine = patches[0][0] - let bestPatchEndLine = patches[0][1] + let bestPatchStartLine = -1 + let bestPatchEndLine = -1 let maxIntersection = 0 for (const [startLine, endLine] of pat...
:robot: OpenAI Consider using destructuring assignment to extract the start and end lines from each patch array instead of using array indexing. ```suggestion for (const [startLine, endLine] of patches) { ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
265
coderabbitai
github-actions[bot]
@@ -83,11 +83,9 @@ Current date: ${currentDate}` opts.parentMessageId = ids.parentMessageId }
:robot: OpenAI The `ids` object is not defined in this new hunk. Please make sure it is defined and initialized before using it here. ```suggestion // define ids object before using it const ids: Ids = { parentMessageId: '', conversationId: '' } if (parentId) { ids.parentMessageId = parentId } ``` <!-- This is ...
ai-pr-reviewer
github_2023
typescript
265
coderabbitai
github-actions[bot]
@@ -83,11 +83,9 @@ Current date: ${currentDate}` opts.parentMessageId = ids.parentMessageId } try { - response = await retry<ChatMessage>( - this.api.sendMessage.bind(this.api), - [message, opts], - this.options.openaiRetries - ) + response = await ...
:robot: OpenAI Consider adding an exponential backoff strategy to the retries instead of a fixed number of retries. This can help avoid overwhelming the server with too many requests in case of network issues or server errors. ```suggestion response = await pRetry(() => this.api!.sendMessage(message, opts), { retrie...
ai-pr-reviewer
github_2023
typescript
265
coderabbitai
github-actions[bot]
@@ -83,11 +83,9 @@ Current date: ${currentDate}` opts.parentMessageId = ids.parentMessageId } try { - response = await retry<ChatMessage>( - this.api.sendMessage.bind(this.api), - [message, opts], - this.options.openaiRetries - ) + response = await ...
:robot: OpenAI Consider logging the error message along with the stack trace for better debugging. ```suggestion if (e instanceof ChatGPTError) { info(`Error sending message: ${e.message}\n${e.stack}`) ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
265
coderabbitai
github-actions[bot]
@@ -842,8 +842,8 @@ function parseReview( } let withinPatch = false - let bestPatchStartLine = patches[0][0] - let bestPatchEndLine = patches[0][1] + let bestPatchStartLine = -1 + let bestPatchEndLine = -1 let maxIntersection = 0
:robot: OpenAI The variable `maxIntersection` is not being used in the new code. Consider removing it. ```suggestion } let withinPatch = false let bestPatchStartLine = -1 let bestPatchEndLine = -1 for (const [startLine, endLine] of patches) { ``` <!-- This is an auto-genera...
ai-pr-reviewer
github_2023
typescript
265
coderabbitai
github-actions[bot]
@@ -866,11 +866,19 @@ function parseReview( } if (!withinPatch) { - review.comment = `> Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [${review.startLine}-${review.endLine}] + if (bestPatchStartLine !== -1 && bestPatchEn...
:robot: OpenAI The logic for mapping a review to a patch has been changed. However, the new implementation seems to have some issues. The condition `if (!withinPatch)` is always true because `withinPatch` is set to `false` at the beginning of the function and never changes. Also, the variables `bestPatchStartLine` and...
ai-pr-reviewer
github_2023
typescript
263
coderabbitai
github-actions[bot]
@@ -13,10 +13,11 @@ export class TokenLimits { this.maxTokens = 8000 this.responseTokens = 2000 } else { - this.maxTokens = 3900 + this.maxTokens = 4000 this.responseTokens = 1000 }
:robot: OpenAI The `maxTokens` and `responseTokens` values have changed. Please verify if these new values are correct. ```suggestion if (this.plan === 'basic') { this.maxTokens = 4000; this.responseTokens = 1000; } else { this.maxTokens = 8000; this.responseTokens = 2000; } // provide some margin for the requ...
ai-pr-reviewer
github_2023
typescript
259
coderabbitai
github-actions[bot]
@@ -52,9 +52,6 @@ export const codeReview = async ( inputs.description = commenter.getDescription( context.payload.pull_request.body ) - inputs.releaseNotes = commenter.getReleaseNotes( - context.payload.pull_request.body - ) } // if the description contains ignore_keyword, skip
:robot: OpenAI The comment "if the description contains ignore_keyword, skip" is not very informative. Please provide more context on what this means and why it's necessary. Consider adding a link to relevant documentation or explaining the reasoning behind this check. <!-- This is an auto-generated comment by OpenAI...
ai-pr-reviewer
github_2023
typescript
259
coderabbitai
github-actions[bot]
@@ -56,9 +56,6 @@ export const handleReviewComment = async ( inputs.description = commenter.getDescription( context.payload.pull_request.body )
:robot: OpenAI The `inputs.releaseNotes` assignment is missing in the new code. Is this intentional? ```suggestion inputs.description = commenter.getDescription( context.payload.pull_request.body ) inputs.releaseNotes = commenter.getReleaseNotes( context.payload.pull_request.body ) ``` <!-- This is an auto-genera...
ai-pr-reviewer
github_2023
typescript
259
coderabbitai
github-actions[bot]
@@ -195,6 +195,11 @@ Description: $description \`\`\` +OpenAI generated summary:
:robot: OpenAI The `description` variable is not being used in this code block. Consider removing it. ```suggestion ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
259
coderabbitai
github-actions[bot]
@@ -195,6 +195,11 @@ Description: $description \`\`\` +OpenAI generated summary: +\`\`\` +$raw_summary +\`\`\`
:robot: OpenAI The `raw_summary` variable is being used to generate a summary, but it's unclear what the contents of this variable are. Please provide more context or documentation for this variable. ```suggestion ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
259
coderabbitai
github-actions[bot]
@@ -195,6 +195,11 @@ Description: $description \`\`\` +OpenAI generated summary: +\`\`\` +$raw_summary +\`\`\` + Content of file prior to changes: \`\`\` $file_content
:robot: OpenAI The `file_content` variable is being used to display the content of a file prior to changes, but it's unclear what the contents of this variable are. Please provide more context or documentation for this variable. ```suggestion ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
others
256
coderabbitai
github-actions[bot]
@@ -62,6 +62,11 @@ inputs: required: false description: 'Disable release notes' default: 'false' + openai_base_url: + required: false + description: + 'The url of the openai api interface.' + default: 'https://api.openai.com/v1'
:robot: OpenAI The new `openai_base_url` input parameter is not described properly. Please provide a more detailed description of what this parameter does and how it should be used. ``` ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
256
coderabbitai
github-actions[bot]
@@ -26,7 +26,8 @@ async function run(): Promise<void> { getInput('openai_model_temperature'), getInput('openai_retries'), getInput('openai_timeout_ms'), - getInput('openai_concurrency_limit') + getInput('openai_concurrency_limit'), + getInput('openai_base_url')
:robot: OpenAI The new `getInput('openai_base_url')` option needs to be added to the `Options` class in `options.ts`. ```suggestion // In options.ts, add the following line to the Options class: public readonly openaiBaseUrl: string; ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
256
coderabbitai
github-actions[bot]
@@ -26,6 +26,7 @@ export class Bot { this.options = options if (process.env.OPENAI_API_KEY) { this.api = new ChatGPTAPI({ + apiBaseUrl: options.apiBaseUrl, systemMessage: options.systemMessage, apiKey: process.env.OPENAI_API_KEY,
:robot: OpenAI The `apiBaseUrl` option is being added to the `ChatGPTAPI` constructor, but it's not being used in the original implementation. Consider adding a default value for `apiBaseUrl` in the `Options` interface and using it in the `ChatGPTAPI` constructor. ```suggestion interface Options { openaiTimeoutMS:...
ai-pr-reviewer
github_2023
typescript
256
coderabbitai
github-actions[bot]
@@ -52,6 +54,7 @@ export class Options { this.openaiConcurrencyLimit = parseInt(openaiConcurrencyLimit) this.lightTokenLimits = new TokenLimits(openaiLightModel) this.heavyTokenLimits = new TokenLimits(openaiHeavyModel) + this.apiBaseUrl = apiBaseUrl
:robot: OpenAI Consider adding a validation check to ensure that `apiBaseUrl` is a valid URL and starts with "https://". This can be done in the constructor. ```suggestion this.openaiConcurrencyLimit = parseInt(openaiConcurrencyLimit) this.lightTokenLimits = new TokenLimits(openaiLightModel) this.heavyTokenLimits = ne...
ai-pr-reviewer
github_2023
typescript
253
coderabbitai
github-actions[bot]
@@ -63,9 +63,9 @@ Description: $description \`\`\` -OpenAI generated notes: +OpenAI generated summary: \`\`\` -$release_notes +$raw_summary \`\`\` Content of \`$filename\` prior to changes:
:robot: OpenAI The new hunk adds a section to the file that generates a summary of changes. The `filename` variable is used to specify the name of the file being modified. However, it seems like this section is incomplete and missing some context. Please provide more information about what this section is supposed to ...
ai-pr-reviewer
github_2023
typescript
253
coderabbitai
github-actions[bot]
@@ -200,9 +200,9 @@ Description: $description \`\`\` -OpenAI generated notes: +OpenAI generated summary: \`\`\` -$release_notes +$raw_summary \`\`\` Content of file prior to changes:
:robot: OpenAI This new hunk is similar to the previous one, but with a different variable name (`filename` has been replaced with `file`). As before, please provide more information about what this section is supposed to do and how it fits into the overall codebase. <!-- This is an auto-generated comment by OpenAI -...
ai-pr-reviewer
github_2023
others
248
coderabbitai
github-actions[bot]
@@ -112,11 +112,6 @@ inputs: required: false description: 'The prompt for final summarization response' default: | - Here is the summary of changes you have generated for files: - ``` - $raw_summary - ``` - Provide your final response in the `markdown` format with the f...
:robot: OpenAI The prompt description is incomplete and does not provide enough context. Please update the description to include information on what the final response should contain, where it will be added, and any other relevant details. ```suggestion required: false description: 'The prompt for final s...
ai-pr-reviewer
github_2023
others
247
coderabbitai
github-actions[bot]
@@ -79,7 +79,7 @@ inputs: openai_timeout_ms: required: false description: 'Timeout for OpenAI API call in millis' - default: '240000' + default: '360000'
:robot: OpenAI The timeout for OpenAI API calls has been increased from 240000ms to 360000ms. This may improve the reliability of the API calls. ``` ``` <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
245
coderabbitai
github-actions[bot]
@@ -346,10 +346,11 @@ ${hunks.oldHunk} ) as Array<[string, string, boolean]> if (summaries.length > 0) { - // join summaries into one in the batches of 20 + const batchSize = 10 + // join summaries into one in the batches of batchSize
:robot: OpenAI Consider making the `batchSize` a configurable parameter instead of hardcoding it to 10. This would allow users to experiment with different batch sizes and find the optimal value for their use case. ```suggestion const batchSize = config.batchSize || 10; ``` <!-- This is an auto-generated comment by ...
ai-pr-reviewer
github_2023
typescript
242
coderabbitai
github-actions[bot]
@@ -150,8 +150,10 @@ Instructions: - The format for changes provided above 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. -- Your task is to ...
:robot: OpenAI The new hunk looks good. No issues found. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
242
coderabbitai
github-actions[bot]
@@ -169,9 +171,13 @@ Instructions: code snippets. Do not annotate code snippets with line numbers. - If needed, provide replacement suggestions using fenced code blocks with the \`suggestion\` language identifier. The line number range must map exactly - to the range that needs to be replaced within a new hun...
:robot: OpenAI The new hunk looks good. No issues found. <!-- This is an auto-generated comment by OpenAI -->
ai-pr-reviewer
github_2023
typescript
242
coderabbitai
github-actions[bot]
@@ -169,9 +171,13 @@ Instructions: code snippets. Do not annotate code snippets with line numbers. - If needed, provide replacement suggestions using fenced code blocks with the \`suggestion\` language identifier. The line number range must map exactly - to the range that needs to be replaced within a new hun...
:robot: OpenAI It would be helpful to add an example of a correctly formatted replacement suggestion for clarity. ```suggestion <start_line_number>-<end_line_number>: <review comment> ``` ```suggestion <code/text that replaces everything between start_line_number and end_line_number> ``` ``` <!-- This is an auto-gen...
ai-pr-reviewer
github_2023
typescript
240
coderabbitai
github-actions[bot]
@@ -18,20 +18,19 @@ export const COMMENT_REPLY_TAG = export const SUMMARIZE_TAG = '<!-- This is an auto-generated comment: summarize by openai -->' -export const EXTRA_CONTENT_TAG = '<!-- Extra content -->' - -export const DESCRIPTION_TAG = +export const DESCRIPTION_START_TAG = '<!-- This is an auto-generated ...
:robot: OpenAI The `EXTRA_CONTENT_TAG` constant is no longer used and can be removed. ```suggestion export const SUMMARIZE_TAG = '<!-- This is an auto-generated comment: summarize by openai -->' export const DESCRIPTION_START_TAG = '<!-- This is an auto-generated comment: release notes by openai -->' export const...