Issue¶
-
class
github.Issue.
Issue
¶ This class represents Issues.
The reference can be found here https://docs.github.com/en/rest/reference/issues
-
as_pull_request
() → PullRequest¶
-
add_to_assignees
(*assignees: NamedUser | str) → None¶
-
add_to_labels
(*labels: Label | str) → None¶
-
create_comment
(body: str) → IssueComment¶
-
delete_labels
() → None¶
-
edit
(title: Opt[str] = NotSet, body: Opt[str] = NotSet, assignee: Opt[str | NamedUser | None] = NotSet, state: Opt[str] = NotSet, milestone: Opt[Milestone | None] = NotSet, labels: Opt[list[str]] = NotSet, assignees: Opt[list[NamedUser | str]] = NotSet, state_reason: Opt[str] = NotSet) → None¶ - Calls
- Parameters
assignee – deprecated, use assignees instead. assignee=None means to remove current assignee.
milestone – milestone=None means to remove current milestone.
-
lock
(lock_reason: str) → None¶
-
unlock
() → None¶
-
get_comment
(id: int) → IssueComment¶
-
get_comments
(since: Opt[datetime] = NotSet) → PaginatedList[IssueComment]¶
-
get_events
() → PaginatedList[IssueEvent]¶
-
get_labels
() → PaginatedList[Label]¶
-
remove_from_assignees
(*assignees: NamedUser | str) → None¶
-
remove_from_labels
(label: Label | str) → None¶
-
set_labels
(*labels: Label | str) → None¶
-
get_reactions
() → PaginatedList[Reaction]¶
-
create_reaction
(reaction_type: str) → Reaction¶
-
delete_reaction
(reaction_id: int) → bool¶
-
get_timeline
() → PaginatedList[TimelineEvent]¶
-