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

Use GitHub Review API for comments #373

Merged
merged 10 commits into from
Jul 22, 2023
Merged

Use GitHub Review API for comments #373

merged 10 commits into from
Jul 22, 2023

Conversation

harjotgill
Copy link
Contributor

@harjotgill harjotgill commented Jul 22, 2023

Summary by OpenAI

**New Feature**
- Added support for GitHub Review API in comments.
- Introduced a new method `deletePendingReview` to delete pending reviews.
- Enhanced `submitReview` method to handle review comments and create reviews.
- Updated logic for deleting and updating review comments.
- Reduced `maxRetries` value from 10 to 3 for improved performance.

> 🎉 Here's to the code that now gleams,
> With reviews flowing like streams.
> Deleting, updating, no more waiting,
> For our efficiency, it seems. 🚀
> Max retries cut down in size,
> Oh, how time flies! 🕰️
> Celebrate this PR's rise,
> To the occasion, it truly ties. 🎈

@github-actions
Copy link
Contributor

github-actions bot commented Jul 22, 2023

🤖 OpenAI

The changes primarily revolve around enhancing the usage of the GitHub Review API in src/commenter.ts and src/octokit.ts. The modifications include improved handling of review comments, creation and deletion of reviews, and listing reviews. A new method for deleting pending reviews has been introduced, and the retry limit has been reduced from 10 to 3.

Files Summary
src/commenter.ts, src/octokit.ts The code now leverages the GitHub Review API more effectively. Changes include better management of review comments, addition of a method to delete pending reviews, and modification of the submitReview method to handle review comments and create reviews. The retry limit in the configuration object has been reduced from 10 to 3.

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 aa221740ca92cb98a9a68e4e6ae59506b3595e0e and a0771cc9eacfea24f91db9742c5eeeefbe1e6726 commits were reviewed.

@harjotgill harjotgill merged commit 4272915 into main Jul 22, 2023
@harjotgill harjotgill deleted the post_review branch July 22, 2023 21:55
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