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
30 changes: 30 additions & 0 deletions pkg/github/__toolsnaps__/get_discussion.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"annotations": {
"readOnlyHint": true,
"title": "Get discussion"
},
"description": "Get a specific discussion by ID",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"discussionNumber"
],
"properties": {
"discussionNumber": {
"type": "number",
"description": "Discussion Number"
},
"owner": {
"type": "string",
"description": "Repository owner"
},
"repo": {
"type": "string",
"description": "Repository name"
}
}
},
"name": "get_discussion"
}
40 changes: 40 additions & 0 deletions pkg/github/__toolsnaps__/get_discussion_comments.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"annotations": {
"readOnlyHint": true,
"title": "Get discussion comments"
},
"description": "Get comments from a discussion",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"discussionNumber"
],
"properties": {
"after": {
"type": "string",
"description": "Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs."
},
"discussionNumber": {
"type": "number",
"description": "Discussion Number"
},
"owner": {
"type": "string",
"description": "Repository owner"
},
"perPage": {
"type": "number",
"description": "Results per page for pagination (min 1, max 100)",
"minimum": 1,
"maximum": 100
},
"repo": {
"type": "string",
"description": "Repository name"
}
}
},
"name": "get_discussion_comments"
}
24 changes: 24 additions & 0 deletions pkg/github/__toolsnaps__/list_discussion_categories.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"annotations": {
"readOnlyHint": true,
"title": "List discussion categories"
},
"description": "List discussion categories with their id and name, for a repository or organisation.",
"inputSchema": {
"type": "object",
"required": [
"owner"
],
"properties": {
"owner": {
"type": "string",
"description": "Repository owner"
},
"repo": {
"type": "string",
"description": "Repository name. If not provided, discussion categories will be queried at the organisation level."
}
}
},
"name": "list_discussion_categories"
}
54 changes: 54 additions & 0 deletions pkg/github/__toolsnaps__/list_discussions.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"annotations": {
"readOnlyHint": true,
"title": "List discussions"
},
"description": "List discussions for a repository or organisation.",
"inputSchema": {
"type": "object",
"required": [
"owner"
],
"properties": {
"after": {
"type": "string",
"description": "Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs."
},
"category": {
"type": "string",
"description": "Optional filter by discussion category ID. If provided, only discussions with this category are listed."
},
"direction": {
"type": "string",
"description": "Order direction.",
"enum": [
"ASC",
"DESC"
]
},
"orderBy": {
"type": "string",
"description": "Order discussions by field. If provided, the 'direction' also needs to be provided.",
"enum": [
"CREATED_AT",
"UPDATED_AT"
]
},
"owner": {
"type": "string",
"description": "Repository owner"
},
"perPage": {
"type": "number",
"description": "Results per page for pagination (min 1, max 100)",
"minimum": 1,
"maximum": 100
},
"repo": {
"type": "string",
"description": "Repository name. If not provided, discussions will be queried at the organisation level."
}
}
},
"name": "list_discussions"
}
Loading
Loading