Add comment to pending review
The "add_comment_to_pending_review" tool streamlines code review by allowing users to add comments directly to the latest pending pull request review on GitHub. It ensures that feedback is seamlessly integrated without creating redundant reviews, enhancing collaboration and code quality.
Features
- Add a review comment to the most recent pending pull request review.
- Supports commenting on specific lines or ranges within pull request diffs.
- Allows targeting comments at both file and line levels for precise feedback.
- Compatible with GitHub repositories, specifying owner, repo, and pull request details.
- Handles multi-line comments with start and end line and side details for clarity.
Benefits
- Improves collaboration by consolidating feedback within a single pending review.
- Saves time by avoiding the creation of multiple pending reviews for the same pull request.
- Enhances code quality through clear, targeted review comments.
- Simplifies the code review workflow for teams using GitHub.
- Reduces errors in feedback by specifying exact locations in code diffs.
Description
Add review comment to the requester's latest pending pull request review. A pending review needs to already exist to call this (check with the user if not sure).
Parameters
10 parameters
| Name | Type | Description |
|---|---|---|
| bodyrequired | string | The text of the review comment |
| line | number | The line of the blob in the pull request diff that the comment applies to. For multi-line comments, the last line of the range |
| ownerrequired | string | Repository owner |
| pathrequired | string | The relative path to the file that necessitates a comment |
| pullNumberrequired | number | Pull request number |
| reporequired | string | Repository name |
| side | enum | The side of the diff to comment on. LEFT indicates the previous state, RIGHT indicates the new state |
| startLine | number | For multi-line comments, the first line of the range that the comment applies to |
| startSide | enum | For multi-line comments, the starting side of the diff that the comment applies to. LEFT indicates the previous state, RIGHT indicates the new state |
| subjectTyperequired | enum | The level at which the comment is targeted |