Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

provide option to review simple changes #232

Merged
merged 5 commits into from
Apr 23, 2023
Merged

provide option to review simple changes #232

merged 5 commits into from
Apr 23, 2023

Conversation

harjotgill
Copy link
Contributor

@harjotgill harjotgill commented Apr 23, 2023

Summary by OpenAI

Release Notes

  • New Feature: Added an option to review simple changes.
  • Refactor: Modified the renderSummarizeFileDiff function to use the new option.
  • Refactor: Updated the summarize function to use the new argument.
  • Chore: Added a new boolean input option review_simple_changes to the Options object in src/main.ts.

"Code quality improved,
Simple changes now reviewed.
Celebrate with 🎉,
And merge with 👍."

@github-actions
Copy link
Contributor

github-actions bot commented Apr 23, 2023

🤖 OpenAI

High-level Summary

The changes in this pull request add an option to review simple changes. The renderSummarizeFileDiff function now takes an additional boolean parameter reviewSimpleChanges, which is used to determine whether or not to include a new prompt for triaging the diff. If reviewSimpleChanges is true, the function returns a simple summary of the file diff. Otherwise, it returns a detailed summary. The summarize function has been updated to use this new argument. The new boolean input option review_simple_changes has also been added to the Options object in src/main.ts. These changes need to be reviewed thoroughly as they may impact the behavior of the code.

Files Summary

File Summary
src/main.ts Added a new boolean input option review_simple_changes to the Options object.
src/prompts.ts No changes made.
src/review.ts Modified the renderSummarizeFileDiff function to use the new option and added a note in the summary comment about which files were reviewed and which ones failed or were skipped.

Chat with 🤖 OpenAI Bot (@openai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @openai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Ignoring further reviews

  • Type @openai: ignore anywhere in the PR description to ignore further reviews from the bot.

Files ignored due to filter (1)

Ignored files

  • dist/index.js

In the recent run, only the files that changed from the base of the PR and between 82258c1e473a27af54ab1d4d23c87ca5644bbd86 and 0658f71b33e60d242546cde47902b6e48d085238 commits were reviewed.

Files not reviewed due to simple changes (1)

Skipped review in the recent run

  • src/review.ts

@harjotgill harjotgill merged commit 7751de6 into main Apr 23, 2023
@harjotgill harjotgill deleted the simple_changes branch April 23, 2023 17:40
shoyuf pushed a commit to maybeLab/openai-mr-reviewer-gltlab that referenced this pull request Jun 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant