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

create review instead of single comments #188

Merged
merged 2 commits into from
Apr 18, 2023
Merged

create review instead of single comments #188

merged 2 commits into from
Apr 18, 2023

Conversation

harjotgill
Copy link
Contributor

@harjotgill harjotgill commented Apr 18, 2023

Summary by OpenAI

Release Notes

  • New Feature: Review comments can now be submitted as a single review instead of multiple individual comments, improving efficiency and maintainability.

"Code reviews made easy,
No more comments that are cheesy.
Submitting reviews with glee,
Thanks to this new feature spree!"

@github-actions
Copy link
Contributor

github-actions bot commented Apr 18, 2023

🤖 OpenAI

Summary of Changes

The changes made to the codebase introduce a more efficient way of submitting review comments. The commenter object now buffers comments, allowing for multiple comments to be submitted as a single review. Additionally, the review object has been updated to map reviews to the closest patch and submit a review instead of individual comments. These changes improve the overall efficiency and maintainability of the codebase.

File Summary
src/commenter.ts Introduces a buffer for review comments and a new method to submit the buffered comments as a single review instead of multiple individual comments.
src/review.ts Adds logic to map reviews to the closest patch and submit a review instead of single comments. It also includes changes to the commenter object to buffer review comments.

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.

Files ignored due to filter (1)

Ignored files

  • dist/index.js

@harjotgill harjotgill merged commit a7ae0bc into main Apr 18, 2023
@harjotgill harjotgill deleted the create_review branch April 18, 2023 04:50
@pbjorklund
Copy link

Consider adding an example of how to add these new cool features in release note for us copy paste developers that update workflows from mobile when on the loo ;)

Like

Usage

with:
commenter: review

(Btw the "add a poem" feature might still be my favorite part of the action 😂)

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.

2 participants