8000 Remove public argument for anon gist creation. by alexcouper · Pull Request #251 · sigmavirus24/github3.py · GitHub
[go: up one dir, main page]

Skip to content

Remove public argument for anon gist creation. #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/examples/gist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Creating an anonymous gist
'content': 'What... is the air-speed velocity of an unladen swallow?'
}
}
gist = create_gist('Answer this to cross the bridge', files, public=False)
gist = create_gist('Answer this to cross the bridge', files)
comments = [c for c in gist.iter_comments()]
# []
comment = gist.create_comment('Bogus. This will not work.')
Expand All @@ -59,3 +59,5 @@ file type based on extension provided. ``'What... is the air-speed velocity of
an unladen swallow?'`` is the file's content or body. ``'Answer this to cross
the bridge'`` is the gists's description. While required by github3.py, it is
allowed to be empty, e.g., ``''`` is accepted by GitHub.

Note that anonymous gists are always public.
0