Tool

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.

GitHub

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

NameTypeDescription
bodyrequiredstring

The text of the review comment

linenumber

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

ownerrequiredstring

Repository owner

pathrequiredstring

The relative path to the file that necessitates a comment

pullNumberrequirednumber

Pull request number

reporequiredstring

Repository name

sideenum

The side of the diff to comment on. LEFT indicates the previous state, RIGHT indicates the new state

startLinenumber

For multi-line comments, the first line of the range that the comment applies to

startSideenum

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

subjectTyperequiredenum

The level at which the comment is targeted

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .