add_pr_comments
Add a comment to a specific GitHub pull request by providing the repository owner, name, PR number, and comment content.
Instructions
Adds a comment to a specific pull request on GitHub. Args: repo_owner (str): The owner of the repository. repo_name (str): The name of the repository. pr_number (int): The pull request number to which the comment will be added. comment (str): The content of the comment to add. Returns: Dict[str, Any]: The JSON response from the GitHub API containing the comment data if successful. Raises: GitHubNotFoundError: If the PR is not found. GitHubValidationError: If the comment data is invalid. GitHubAPIError: If the API request fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_owner | Yes | ||
| repo_name | Yes | ||
| pr_number | Yes | ||
| comment | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| body | Yes | ||
| user | Yes | ||
| created_at | Yes | ||
| updated_at | Yes |