8000 Require auth for creating gists by omgjlk · Pull Request #802 · sigmavirus24/github3.py · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 1 commit into from
Mar 21, 2018

Conversation

omgjlk
Copy link
Collaborator
@omgjlk omgjlk commented Mar 20, 2018

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.

@omgjlk omgjlk requested a review from sigmavirus24 March 20, 2018 21:19
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
Copy link
Owner

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>

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure!

@omgjlk
Copy link
Collaborator Author
omgjlk commented Mar 20, 2018

Also I realize that I should delete the existing cassette and create a new one given the new API version.

@omgjlk omgjlk force-pushed the remove-anon-gist-795 branch 2 times, most recently from 56e3791 to 80e227f Compare March 21, 2018 00:19
@omgjlk
Copy link
Collaborator Author
omgjlk commented Mar 21, 2018

This is ready for review again @sigmavirus24

If no login was provided, it will be anonymous.
.. versionchanged:: 1.1.0

Per `GitHub's recent announcement`_ authentication is now required for
Copy link
Owner

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.

Copy link
Collaborator Author

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
@omgjlk omgjlk force-pushed the remove-anon-gist-795 branch from 80e227f to 2c86e44 Compare March 21, 2018 15:24
Copy link
Owner
@sigmavirus24 sigmavirus24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: Feel free to merge your own PRs @omgjlk

@omgjlk omgjlk merged commit 2aa1748 into sigmavirus24:develop Mar 21, 2018
@omgjlk omgjlk deleted the remove-anon-gist-795 branch March 21, 2018 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0