Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -841,9 +841,11 @@ The following sets of tools are available:

- **add_issue_comment** - Add comment to issue or pull request
- **Required OAuth Scopes**: `repo`
- `body`: Comment content (string, required)
- `issue_number`: Issue number to comment on (number, required)
- `body`: Comment content. Required unless reaction is provided. (string, optional)
- `comment_id`: The numeric ID of the issue or pull request comment to react to. Use this for reactions to comments; omit it to react to the issue or pull request itself. (number, optional)
- `issue_number`: Issue or pull request number to comment on or react to. Required when body is provided, or when reaction targets an issue or pull request. (number, optional)
- `owner`: Repository owner (string, required)
- `reaction`: Emoji reaction to add. Required unless body is provided. (string, optional)
- `repo`: Repository name (string, required)

- **get_label** - Get a specific label from a repository
Expand Down Expand Up @@ -1098,10 +1100,11 @@ The following sets of tools are available:

- **add_reply_to_pull_request_comment** - Add reply to pull request comment
- **Required OAuth Scopes**: `repo`
- `body`: The text of the reply (string, required)
- `commentId`: The ID of the comment to reply to (number, required)
- `body`: The text of the reply. Required unless reaction is provided. (string, optional)
- `commentId`: The numeric ID of the pull request review comment to reply or react to. Use the number from a #discussion_r... anchor, not the GraphQL thread node ID (PRRT_...). (number, required)
- `owner`: Repository owner (string, required)
- `pullNumber`: Pull request number (number, required)
- `pullNumber`: Pull request number. Required when body is provided. (number, optional)
- `reaction`: Emoji reaction to add. Required unless body is provided. (string, optional)
- `repo`: Repository name (string, required)

- **create_pull_request** - Open new pull request
Expand Down
21 changes: 21 additions & 0 deletions docs/feature-flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ runtime behavior (such as output formatting) won't appear here.

### `issues_granular`

- **add_issue_comment_reaction** - Add Reaction to Issue or Pull Request Comment
- **Required OAuth Scopes**: `repo`
- `comment_id`: The issue or pull request comment ID (number, required)
- `content`: The emoji reaction type (string, required)
- `owner`: Repository owner (username or organization) (string, required)
- `repo`: Repository name (string, required)

- **add_issue_reaction** - Add Reaction to Issue or Pull Request
- **Required OAuth Scopes**: `repo`
- `content`: The emoji reaction type (string, required)
- `issue_number`: The issue number (number, required)
- `owner`: Repository owner (username or organization) (string, required)
- `repo`: Repository name (string, required)

- **add_sub_issue** - Add Sub-Issue
- **Required OAuth Scopes**: `repo`
- `issue_number`: The parent issue number (number, required)
Expand Down Expand Up @@ -204,6 +218,13 @@ runtime behavior (such as output formatting) won't appear here.
- `startSide`: The start side of a multi-line comment (optional) (string, optional)
- `subjectType`: The subject type of the comment (string, required)

- **add_pull_request_review_comment_reaction** - Add Pull Request Review Comment Reaction
- **Required OAuth Scopes**: `repo`
- `comment_id`: The numeric pull request review comment ID. Use the number from a #discussion_r... anchor, not the GraphQL thread node ID (PRRT_...). (number, required)
- `content`: The emoji reaction type (string, required)
- `owner`: Repository owner (username or organization) (string, required)
- `repo`: Repository name (string, required)

- **create_pull_request_review** - Create Pull Request Review
- **Required OAuth Scopes**: `repo`
- `body`: The review body text (optional) (string, optional)
Expand Down
29 changes: 23 additions & 6 deletions pkg/github/__toolsnaps__/add_issue_comment.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,48 @@
"annotations": {
"title": "Add comment to issue or pull request"
},
"description": "Add a comment to a specific issue in a GitHub repository. Use this tool to add comments to pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add review comments.",
"description": "Add a comment and/or reaction to a specific issue or issue comment in a GitHub repository. Use this tool with pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add or react to review comments. At least one of body or reaction is required.",
"inputSchema": {
"properties": {
"body": {
"description": "Comment content",
"description": "Comment content. Required unless reaction is provided.",
"type": "string"
},
"comment_id": {
"description": "The numeric ID of the issue or pull request comment to react to. Use this for reactions to comments; omit it to react to the issue or pull request itself.",
"minimum": 1,
"type": "number"
},
"issue_number": {
"description": "Issue number to comment on",
"description": "Issue or pull request number to comment on or react to. Required when body is provided, or when reaction targets an issue or pull request.",
"type": "number"
},
"owner": {
"description": "Repository owner",
"type": "string"
},
"reaction": {
"description": "Emoji reaction to add. Required unless body is provided.",
"enum": [
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"rocket",
"eyes"
],
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"issue_number",
"body"
"repo"
],
"type": "object"
},
Expand Down
47 changes: 47 additions & 0 deletions pkg/github/__toolsnaps__/add_issue_comment_reaction.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"annotations": {
"destructiveHint": false,
"openWorldHint": true,
"title": "Add Reaction to Issue or Pull Request Comment"
},
"description": "Add a reaction to an issue or pull request comment.",
"inputSchema": {
"properties": {
"comment_id": {
"description": "The issue or pull request comment ID",
"minimum": 1,
"type": "number"
},
"content": {
"description": "The emoji reaction type",
"enum": [
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"rocket",
"eyes"
],
"type": "string"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"comment_id",
"content"
],
"type": "object"
},
"name": "add_issue_comment_reaction"
}
47 changes: 47 additions & 0 deletions pkg/github/__toolsnaps__/add_issue_reaction.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"annotations": {
"destructiveHint": false,
"openWorldHint": true,
"title": "Add Reaction to Issue or Pull Request"
},
"description": "Add a reaction to an issue or pull request.",
"inputSchema": {
"properties": {
"content": {
"description": "The emoji reaction type",
"enum": [
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"rocket",
"eyes"
],
"type": "string"
},
"issue_number": {
"description": "The issue number",
"minimum": 1,
"type": "number"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"issue_number",
"content"
],
"type": "object"
},
"name": "add_issue_reaction"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"annotations": {
"destructiveHint": false,
"openWorldHint": true,
"title": "Add Pull Request Review Comment Reaction"
},
"description": "Add a reaction to a pull request review comment.",
"inputSchema": {
"properties": {
"comment_id": {
"description": "The numeric pull request review comment ID. Use the number from a #discussion_r... anchor, not the GraphQL thread node ID (PRRT_...).",
"minimum": 1,
"type": "number"
},
"content": {
"description": "The emoji reaction type",
"enum": [
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"rocket",
"eyes"
],
"type": "string"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"comment_id",
"content"
],
"type": "object"
},
"name": "add_pull_request_review_comment_reaction"
}
26 changes: 19 additions & 7 deletions pkg/github/__toolsnaps__/add_reply_to_pull_request_comment.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,39 @@
"annotations": {
"title": "Add reply to pull request comment"
},
"description": "Add a reply to an existing pull request comment. This creates a new comment that is linked as a reply to the specified comment.",
"description": "Add a reply and/or reaction to an existing pull request comment. This can create a new comment linked as a reply to the specified comment, add an emoji reaction to the specified comment, or do both. At least one of body or reaction is required.",
"inputSchema": {
"properties": {
"body": {
"description": "The text of the reply",
"description": "The text of the reply. Required unless reaction is provided.",
"type": "string"
},
"commentId": {
"description": "The ID of the comment to reply to",
"description": "The numeric ID of the pull request review comment to reply or react to. Use the number from a #discussion_r... anchor, not the GraphQL thread node ID (PRRT_...).",
"type": "number"
},
"owner": {
"description": "Repository owner",
"type": "string"
},
"pullNumber": {
"description": "Pull request number",
"description": "Pull request number. Required when body is provided.",
"type": "number"
},
"reaction": {
"description": "Emoji reaction to add. Required unless body is provided.",
"enum": [
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"rocket",
"eyes"
],
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
Expand All @@ -29,9 +43,7 @@
"required": [
"owner",
"repo",
"pullNumber",
"commentId",
"body"
"commentId"
],
"type": "object"
},
Expand Down
Loading
Loading