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

refactor code #183

Merged
merged 1 commit into from
Apr 17, 2023
Merged

refactor code #183

merged 1 commit into from
Apr 17, 2023

Conversation

harjotgill
Copy link
Contributor

@harjotgill harjotgill commented Apr 17, 2023

Summary by OpenAI

Release Notes

  • Bug fix: Removes unnecessary content from review comments.

"Unnecessary content, be gone!
Review comments now sing a new song. 🎶"

@github-actions
Copy link
Contributor

🤖 OpenAI

High-level Summary

The changes proposed in this pull request add a constant variable EXTRA_CONTENT_TAG to the commenter.ts file and modify the handleReviewComment function in review-comment.ts to remove all content below this tag from the summary. This change improves the readability of the review comments by removing unnecessary information.

Files Summary

File Name Summary of Changes
src/commenter.ts Adds a constant variable EXTRA_CONTENT_TAG to the commenter.ts file.
src/review-comment.ts Adds an import statement for EXTRA_CONTENT_TAG and modifies the handleReviewComment function to remove all content below this tag from the summary.

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
Files not summarized due to errors (1)

Failed to summarize

  • src/review.ts (diff tokens exceeds limit)

@harjotgill harjotgill merged commit 2bd1fb8 into main Apr 17, 2023
@harjotgill harjotgill deleted the summary_comments branch April 17, 2023 21:32
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