create_pull_request_review
Submit a review on a GitHub pull request by specifying the repository owner, repository name, pull request number, review text, and action (approve, request changes, or comment). Includes optional file-specific comments.
Instructions
Create a review on a pull request
Input Schema
Name | Required | Description | Default |
---|---|---|---|
body | Yes | The body text of the review | |
comments | No | Comments to post as part of the review | |
commit_id | No | The SHA of the commit that needs a review | |
event | Yes | The review action to perform | |
owner | Yes | Repository owner (username or organization) | |
pull_number | Yes | Pull request number | |
repo | Yes | Repository name |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"body": {
"description": "The body text of the review",
"type": "string"
},
"comments": {
"description": "Comments to post as part of the review",
"items": {
"additionalProperties": false,
"properties": {
"body": {
"description": "Text of the review comment",
"type": "string"
},
"path": {
"description": "The relative path to the file being commented on",
"type": "string"
},
"position": {
"description": "The position in the diff where you want to add a review comment",
"type": "number"
}
},
"required": [
"path",
"position",
"body"
],
"type": "object"
},
"type": "array"
},
"commit_id": {
"description": "The SHA of the commit that needs a review",
"type": "string"
},
"event": {
"description": "The review action to perform",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
"COMMENT"
],
"type": "string"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
},
"pull_number": {
"description": "Pull request number",
"type": "number"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"pull_number",
"body",
"event"
],
"type": "object"
}