Gist¶
-
class
github.Gist.
Gist
¶ This class represents Gists. The reference can be found here https://docs.github.com/en/rest/reference/gists
-
comments
¶ Type: integer
-
comments_url
¶ Type: string
-
commits_url
¶ Type: string
-
created_at
¶ Type: datetime.datetime
-
description
¶ Type: string
-
files
¶ Type: dict of string to github.GistFile.GistFile
-
fork_of
¶ Type: github.Gist.Gist
-
forks
¶ Type: list of github.Gist.Gist
-
forks_url
¶ Type: string
-
git_pull_url
¶ Type: string
-
git_push_url
¶ Type: string
-
history
¶ Type: list of github.GistHistoryState.GistHistoryState
-
html_url
¶ Type: string
-
id
¶ Type: string
-
owner
¶ Type: github.NamedUser.NamedUser
-
public
¶ Type: bool
-
updated_at
¶ Type: datetime.datetime
-
url
¶ Type: string
-
user
¶ Type: github.NamedUser.NamedUser
-
create_comment
(body)¶ Calls: POST /gists/{gist_id}/comments Parameters: body – string Return type: github.GistComment.GistComment
-
create_fork
()¶ Calls: POST /gists/{id}/forks Return type: github.Gist.Gist
-
delete
()¶ Calls: DELETE /gists/{id} Return type: None
-
edit
(description=NotSet, files=NotSet)¶ Calls: Parameters: - description – string
- files – dict of string to
github.InputFileContent.InputFileContent
Return type: None
-
get_comment
(id)¶ Calls: GET /gists/{gist_id}/comments/{id} Parameters: id – integer Return type: github.GistComment.GistComment
-
get_comments
()¶ Calls: GET /gists/{gist_id}/comments Return type: github.PaginatedList.PaginatedList
ofgithub.GistComment.GistComment
-
is_starred
()¶ Calls: GET /gists/{id}/star Return type: bool
-
reset_starred
()¶ Calls: DELETE /gists/{id}/star Return type: None
-
set_starred
()¶ Calls: PUT /gists/{id}/star Return type: None
-