en un clic
github-discussion
// Use when creating, listing, or managing GitHub discussions in carlos-algms/agentic.nvim repository
// Use when creating, listing, or managing GitHub discussions in carlos-algms/agentic.nvim repository
| name | github-discussion |
| description | Use when creating, listing, or managing GitHub discussions in carlos-algms/agentic.nvim repository |
Manage discussions in carlos-algms/agentic.nvim via GraphQL API.
Repository ID: R_kgDOQXqKiw
| Category | ID |
|---|---|
| Announcements | DIC_kwDOQXqKi84C1alq |
| General | DIC_kwDOQXqKi84C1alr |
| Ideas | DIC_kwDOQXqKi84C1alt |
| Polls | DIC_kwDOQXqKi84C1alv |
| Q&A | DIC_kwDOQXqKi84C1als |
| Research | DIC_kwDOQXqKi84C1alw |
| Show and tell | DIC_kwDOQXqKi84C1alu |
| Label | ID |
|---|---|
| bug | LA_kwDOQXqKi88AAAACQBotaQ |
| documentation | LA_kwDOQXqKi88AAAACQBoteg |
| duplicate | LA_kwDOQXqKi88AAAACQBotgw |
| enhancement | LA_kwDOQXqKi88AAAACQBotkQ |
| good first issue | LA_kwDOQXqKi88AAAACQBotpA |
| help wanted | LA_kwDOQXqKi88AAAACQBotnA |
| invalid | LA_kwDOQXqKi88AAAACQBotqA |
| not-acp-standard | LA_kwDOQXqKi88AAAACQBottw |
| question | LA_kwDOQXqKi88AAAACQBotrw |
| quality-of-life | LA_kwDOQXqKi88AAAACVMzaQA |
Default category: Research
Override: /github-discussion Ideas or /github-discussion Q&A
gh api graphql -f query='
mutation {
createDiscussion(input: {
repositoryId: "R_kgDOQXqKiw",
categoryId: "DIC_kwDOQXqKi84C1alw",
title: "TITLE",
body: "BODY"
}) {
discussion {
id
url
}
}
}'
gh api graphql -f query='
{
repository(owner: "carlos-algms", name: "agentic.nvim") {
discussions(first: 10, orderBy: {field: CREATED_AT, direction: DESC}) {
nodes {
id
number
title
url
category { name }
labels(first: 5) { nodes { name } }
}
}
}
}'
Filter by category:
gh api graphql -f query='
{
repository(owner: "carlos-algms", name: "agentic.nvim") {
discussions(first: 10, categoryId: "DIC_kwDOQXqKi84C1alw") {
nodes { number title url }
}
}
}'
Requires discussion ID (starts with D_):
gh api graphql -f query='
mutation {
addLabelsToLabelable(input: {
labelableId: "D_kwDOQXqKi84...",
labelIds: ["LA_kwDOQXqKi88AAAACQBotkQ"]
}) {
labelable {
... on Discussion { title }
}
}
}'
gh api graphql -f query='
mutation {
removeLabelsFromLabelable(input: {
labelableId: "D_kwDOQXqKi84...",
labelIds: ["LA_kwDOQXqKi88AAAACQBotkQ"]
}) {
labelable {
... on Discussion { title }
}
}
}'
Update discussion title, body, or category:
gh api graphql -f query='
mutation {
updateDiscussion(input: {
discussionId: "D_kwDOQXqKi84...",
title: "New Title",
body: "New Body"
}) {
discussion {
id
url
}
}
}'
Get discussion ID first, then add comment using variables to avoid escaping:
# Get discussion ID
gh api graphql -f query='
{
repository(owner: "carlos-algms", name: "agentic.nvim") {
discussion(number: 108) {
id
}
}
}' --jq '.data.repository.discussion.id'
# Add comment using file for complex content
COMMENT_BODY=$(cat comment.md)
gh api graphql -F discussionId="D_kwDOQXqKi84..." -F body="$COMMENT_BODY" -f query='
mutation($discussionId: ID!, $body: String!) {
addDiscussionComment(input: {
discussionId: $discussionId,
body: $body
}) {
comment {
id
url
}
}
}'
Requires comment ID (starts with DC_):
gh api graphql -f query='
mutation {
updateDiscussionComment(input: {
commentId: "DC_kwDOQXqKi84...",
body: "Updated comment body"
}) {
comment {
id
url
}
}
}'
\" for literal quotesgh discussion doesn't existcarlos-algms (not carlos.gomes)Use when ACP schema is necessary to clarify the work or when the user asks for ACP data, rules, events, or documentation
Use when creating new lua classes or adding fields or methods to existing lua classes. It gives guide lines on how to work with Lua classes and style guides that must be followed in this project
Use when neovim documentation is needed for the current task or the user asks for specific neovim features or neovim lua apis. It gives instructions on how to read current Neovim's documentation locally and offline, and also how to read online if it fails