discussion_comments
Creates, updates, deletes, gets or lists a discussion_comments resource.
Overview
| Name | discussion_comments |
| Type | Resource |
| Id | github.discussions.discussion_comments |
Fields
The following fields are returned by SELECT queries:
- list
Response
| Name | Datatype | Description |
|---|---|---|
id | string | The GraphQL node ID of the comment. |
author | object | The comment author (login). |
body | string | The comment body as Markdown. |
created_at | string (date-time) | |
is_answer | boolean | Whether this comment is the chosen answer. |
is_minimized | boolean | |
minimized_reason | string | |
published_at | string (date-time) | |
reactions | object | Reaction counts (total_count). |
replies | object | Reply counts (total_count). |
updated_at | string (date-time) | |
upvote_count | integer | |
url | string | The HTML URL of the comment. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | owner, repo, discussion_number | Top-level comments on a discussion, with reply counts. Backed by the GitHub GraphQL API (repository.discussion.comments). |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
discussion_number | integer | The number that identifies the discussion. |
owner | string | The account owner of the repository. |
repo | string | The name of the repository. |
SELECT examples
- list
Top-level comments on a discussion, with reply counts. Backed by the GitHub GraphQL API (repository.discussion.comments).
SELECT
id,
author,
body,
created_at,
is_answer,
is_minimized,
minimized_reason,
published_at,
reactions,
replies,
updated_at,
upvote_count,
url
FROM github.discussions.discussion_comments
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
AND discussion_number = '{{ discussion_number }}' -- required
;