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

Reply to user comments #42

Merged
merged 10 commits into from
Mar 18, 2023
Merged

Reply to user comments #42

merged 10 commits into from
Mar 18, 2023

Conversation

harjotgill
Copy link
Contributor

@harjotgill harjotgill commented Mar 18, 2023

Summary by OpenAI

New Feature: Users can now reply to specific comments made on the review. This feature improves the user experience by allowing them to address specific issues raised in the review. The changes include updates to .github/workflows/chatgpt-review.yml, src/commenter.ts, src/main.ts, and src/review-comment.ts files to handle pull request review comments.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2023

🤖 OpenAI

Thank you for letting me participate in the code review.

This pull request adds a new feature of replying to user comments made on the review. It also includes changes to handle pull request review comments, including updating the on event to include pull_request_review_comment, adding constants, and modifying methods to use these constants.

Below is the table of files and their summaries:

File Summary
.github/workflows/chatgpt-review.yml Updated on event to include pull_request_review_comment. Added group and cancel-in-progress fields to concurrency.
README.md Added a new feature of replying to user comments made on the review. Removed the review_comment_lgtm input from the usage example.
src/commenter.ts Added COMMENT_REPLY_TAG, DESCRIPTION_TAG, DESCRIPTION_TAG_END, and COMMENT_TAG constants. Modified get_description, comment_on_pr, and add_comment_to_line methods to use these constants. Added getConversationChain method to get the conversation chain for a comment.
src/main.ts Added handleReviewComment function to handle pull request review comments.
src/review-comment.ts Added handleReviewComment function to handle pull request review comments.

@@ -4,12 +4,14 @@ permissions:
contents: read
pull-requests: write

on:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test comment

@harjotgill harjotgill added this pull request to the merge queue Mar 18, 2023
@harjotgill harjotgill merged commit 1b5cf99 into main Mar 18, 2023
@harjotgill harjotgill deleted the comment branch March 18, 2023 05:50
shoyuf pushed a commit to maybeLab/openai-mr-reviewer-gltlab that referenced this pull request Jun 25, 2023
<!-- This is an auto-generated comment: release notes by openai -->
### Summary by OpenAI

New Feature: Users can now reply to specific comments made on the
review. This feature improves the user experience by allowing them to
address specific issues raised in the review. The changes include
updates to `.github/workflows/chatgpt-review.yml`, `src/commenter.ts`,
`src/main.ts`, and `src/review-comment.ts` files to handle pull request
review comments.
<!-- end of auto-generated comment: release notes by openai -->
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