-
Notifications
You must be signed in to change notification settings - Fork 407
Require auth for creating gists #802
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
Conversation
github3/github.py
Outdated
def create_gist(self, description, files, public=True): | ||
"""Create a new gist. | ||
|
||
If no login was provided, it will be anonymous. | ||
Auth is required for creating gists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update this to read
.. versionchanged:: 1.1.0
Per `GitHub's recent announcement`_ authentication is now required for creating gists.
.. _GitHub's recent announcement:
<link>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
Also I realize that I should delete the existing cassette and create a new one given the new API version. |
56e3791
to
80e227f
Compare
This is ready for review again @sigmavirus24 |
github3/github.py
Outdated
If no login was provided, it will be anonymous. | ||
.. versionchanged:: 1.1.0 | ||
|
||
Per `GitHub's recent announcement`_ authentication is now required for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two lines need to be indented to be part of the versionchanged directive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated!
Per https://blog.github.com/2018-02-18-deprecation-notice-removing-anonymous-gist-creation/ anonymous gist creation is no longer possible on GitHub. Also updates the betamax cassette to ensure tests still work against current API. Resolves: sigmavirus24#795
80e227f
to
2c86e44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to merge your own PRs @omgjlk
Per
https://blog.github.com/2018-02-18-deprecation-notice-removing-anonymous-gist-creation/
anonymous gist creation is no longer possible on GitHub.
Resolves: #795
One thought here, the tests pass because there was no specific test for
anonymous gist creation. I'm not sure if we should ADD such a test and ensure
that it fails, but I'll leave that up to the reviewer.