reactions
Accessed as client.repos.issues.comments.reactions; the async client mirrors it.
ReposIssuesCommentsReactions
The repos.issues.comments.reactions namespace.
create
create(owner: str, repo: str, id: int, *, content: str | None = None) -> Reaction
Add a reaction to a comment of an issue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
owner of the repo |
required |
repo
|
str
|
name of the repo |
required |
id
|
int
|
id of the comment to edit |
required |
content
|
str | None
|
|
None
|
Returns:
| Type | Description |
|---|---|
Reaction
|
Reaction. |
Raises:
| Type | Description |
|---|---|
ForbiddenError
|
|
NotFoundError
|
|
Operation ID: issuePostCommentReaction
delete
delete(owner: str, repo: str, id: int, *, content: str | None = None) -> None
Remove a reaction from a comment of an issue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
owner of the repo |
required |
repo
|
str
|
name of the repo |
required |
id
|
int
|
id of the comment to edit |
required |
content
|
str | None
|
|
None
|
Returns:
| Type | Description |
|---|---|
None
|
No content. |
Raises:
| Type | Description |
|---|---|
ForbiddenError
|
|
NotFoundError
|
|
Operation ID: issueDeleteCommentReaction
list
list(owner: str, repo: str, id: int) -> list[Reaction]
Get a list of reactions from a comment of an issue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
owner of the repo |
required |
repo
|
str
|
name of the repo |
required |
id
|
int
|
id of the comment to edit |
required |
Returns:
| Type | Description |
|---|---|
list[Reaction]
|
ReactionListWithoutPagination - Reactions for a specific comment (no pagination headers). |
Raises:
| Type | Description |
|---|---|
ForbiddenError
|
|
NotFoundError
|
|
Operation ID: issueGetCommentReactions
AsyncReposIssuesCommentsReactions
The repos.issues.comments.reactions namespace.
create
create(owner: str, repo: str, id: int, *, content: str | None = None) -> Reaction
Add a reaction to a comment of an issue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
owner of the repo |
required |
repo
|
str
|
name of the repo |
required |
id
|
int
|
id of the comment to edit |
required |
content
|
str | None
|
|
None
|
Returns:
| Type | Description |
|---|---|
Reaction
|
Reaction. |
Raises:
| Type | Description |
|---|---|
ForbiddenError
|
|
NotFoundError
|
|
Operation ID: issuePostCommentReaction
delete
delete(owner: str, repo: str, id: int, *, content: str | None = None) -> None
Remove a reaction from a comment of an issue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
owner of the repo |
required |
repo
|
str
|
name of the repo |
required |
id
|
int
|
id of the comment to edit |
required |
content
|
str | None
|
|
None
|
Returns:
| Type | Description |
|---|---|
None
|
No content. |
Raises:
| Type | Description |
|---|---|
ForbiddenError
|
|
NotFoundError
|
|
Operation ID: issueDeleteCommentReaction
list
list(owner: str, repo: str, id: int) -> list[Reaction]
Get a list of reactions from a comment of an issue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
owner of the repo |
required |
repo
|
str
|
name of the repo |
required |
id
|
int
|
id of the comment to edit |
required |
Returns:
| Type | Description |
|---|---|
list[Reaction]
|
ReactionListWithoutPagination - Reactions for a specific comment (no pagination headers). |
Raises:
| Type | Description |
|---|---|
ForbiddenError
|
|
NotFoundError
|
|
Operation ID: issueGetCommentReactions