Skip to content
Merged
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
35 changes: 17 additions & 18 deletions pkg/github/__toolsnaps__/add_issue_comment.snap
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
{
"annotations": {
"title": "Add comment to issue",
"readOnlyHint": false
"title": "Add comment to issue"
},
"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.",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"issue_number",
"body"
],
"properties": {
"body": {
"description": "Comment content",
"type": "string"
"type": "string",
"description": "Comment content"
},
"issue_number": {
"description": "Issue number to comment on",
"type": "number"
"type": "number",
"description": "Issue number to comment on"
},
"owner": {
"description": "Repository owner",
"type": "string"
"type": "string",
"description": "Repository owner"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these toolsnap ordering changes deterministic? As long as this is a one-off churn it's all good.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will take a look and confirm!

},
"repo": {
"description": "Repository name",
"type": "string"
"type": "string",
"description": "Repository name"
}
},
"required": [
"owner",
"repo",
"issue_number",
"body"
],
"type": "object"
}
},
"name": "add_issue_comment"
}
31 changes: 15 additions & 16 deletions pkg/github/__toolsnaps__/assign_copilot_to_issue.snap
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
{
"annotations": {
"title": "Assign Copilot to issue",
"readOnlyHint": false,
"idempotentHint": true
"idempotentHint": true,
"title": "Assign Copilot to issue"
},
"description": "Assign Copilot to a specific issue in a GitHub repository.\n\nThis tool can help with the following outcomes:\n- a Pull Request created with source code changes to resolve the issue\n\n\nMore information can be found at:\n- https://docs.github.com/en/copilot/using-github-copilot/using-copilot-coding-agent-to-work-on-tasks/about-assigning-tasks-to-copilot\n",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"issueNumber"
],
"properties": {
"issueNumber": {
"description": "Issue number",
"type": "number"
"type": "number",
"description": "Issue number"
},
"owner": {
"description": "Repository owner",
"type": "string"
"type": "string",
"description": "Repository owner"
},
"repo": {
"description": "Repository name",
"type": "string"
"type": "string",
"description": "Repository name"
}
},
"required": [
"owner",
"repo",
"issueNumber"
],
"type": "object"
}
},
"name": "assign_copilot_to_issue"
}
46 changes: 23 additions & 23 deletions pkg/github/__toolsnaps__/issue_read.snap
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
{
"annotations": {
"title": "Get issue details",
"readOnlyHint": true
"readOnlyHint": true,
"title": "Get issue details"
},
"description": "Get information about a specific issue in a GitHub repository.",
"inputSchema": {
"type": "object",
"required": [
"method",
"owner",
"repo",
"issue_number"
],
"properties": {
"issue_number": {
"description": "The number of the issue",
"type": "number"
"type": "number",
"description": "The number of the issue"
},
"method": {
"description": "The read operation to perform on a single issue. \nOptions are: \n1. get - Get details of a specific issue.\n2. get_comments - Get issue comments.\n3. get_sub_issues - Get sub-issues of the issue.\n4. get_labels - Get labels assigned to the issue.\n",
"type": "string",
"description": "The read operation to perform on a single issue.\nOptions are:\n1. get - Get details of a specific issue.\n2. get_comments - Get issue comments.\n3. get_sub_issues - Get sub-issues of the issue.\n4. get_labels - Get labels assigned to the issue.\n",
"enum": [
"get",
"get_comments",
"get_sub_issues",
"get_labels"
],
"type": "string"
]
},
"owner": {
"description": "The owner of the repository",
"type": "string"
"type": "string",
"description": "The owner of the repository"
},
"page": {
"type": "number",
"description": "Page number for pagination (min 1)",
"minimum": 1,
"type": "number"
"minimum": 1
},
"perPage": {
"type": "number",
"description": "Results per page for pagination (min 1, max 100)",
"maximum": 100,
"minimum": 1,
"type": "number"
"maximum": 100
},
"repo": {
"description": "The name of the repository",
"type": "string"
"type": "string",
"description": "The name of the repository"
}
},
"required": [
"method",
"owner",
"repo",
"issue_number"
],
"type": "object"
}
},
"name": "issue_read"
}
71 changes: 35 additions & 36 deletions pkg/github/__toolsnaps__/issue_write.snap
Original file line number Diff line number Diff line change
@@ -1,89 +1,88 @@
{
"annotations": {
"title": "Create or update issue.",
"readOnlyHint": false
"title": "Create or update issue."
},
"description": "Create a new or update an existing issue in a GitHub repository.",
"inputSchema": {
"type": "object",
"required": [
"method",
"owner",
"repo"
],
"properties": {
"assignees": {
"type": "array",
"description": "Usernames to assign to this issue",
"items": {
"type": "string"
},
"type": "array"
}
},
"body": {
"description": "Issue body content",
"type": "string"
"type": "string",
"description": "Issue body content"
},
"duplicate_of": {
"description": "Issue number that this issue is a duplicate of. Only used when state_reason is 'duplicate'.",
"type": "number"
"type": "number",
"description": "Issue number that this issue is a duplicate of. Only used when state_reason is 'duplicate'."
},
"issue_number": {
"description": "Issue number to update",
"type": "number"
"type": "number",
"description": "Issue number to update"
},
"labels": {
"type": "array",
"description": "Labels to apply to this issue",
"items": {
"type": "string"
},
"type": "array"
}
},
"method": {
"description": "Write operation to perform on a single issue.\nOptions are: \n- 'create' - creates a new issue. \n- 'update' - updates an existing issue.\n",
"type": "string",
"description": "Write operation to perform on a single issue.\nOptions are:\n- 'create' - creates a new issue.\n- 'update' - updates an existing issue.\n",
"enum": [
"create",
"update"
],
"type": "string"
]
},
"milestone": {
"description": "Milestone number",
"type": "number"
"type": "number",
"description": "Milestone number"
},
"owner": {
"description": "Repository owner",
"type": "string"
"type": "string",
"description": "Repository owner"
},
"repo": {
"description": "Repository name",
"type": "string"
"type": "string",
"description": "Repository name"
},
"state": {
"type": "string",
"description": "New state",
"enum": [
"open",
"closed"
],
"type": "string"
]
},
"state_reason": {
"type": "string",
"description": "Reason for the state change. Ignored unless state is changed.",
"enum": [
"completed",
"not_planned",
"duplicate"
],
"type": "string"
]
},
"title": {
"description": "Issue title",
"type": "string"
"type": "string",
"description": "Issue title"
},
"type": {
"description": "Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter.",
"type": "string"
"type": "string",
"description": "Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter."
}
},
"required": [
"method",
"owner",
"repo"
],
"type": "object"
}
},
"name": "issue_write"
}
18 changes: 9 additions & 9 deletions pkg/github/__toolsnaps__/list_issue_types.snap
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"annotations": {
"title": "List available issue types",
"readOnlyHint": true
"readOnlyHint": true,
"title": "List available issue types"
},
"description": "List supported issue types for repository owner (organization).",
"inputSchema": {
"properties": {
"owner": {
"description": "The organization owner of the repository",
"type": "string"
}
},
"type": "object",
"required": [
"owner"
],
"type": "object"
"properties": {
"owner": {
"type": "string",
"description": "The organization owner of the repository"
}
}
},
"name": "list_issue_types"
}
Loading
Loading