8000 Initial commit for issues/585. by itsmemattchung · Pull Request #587 · sigmavirus24/github3.py · GitHub
[go: up one dir, main page]

Skip to content

Initial commit for issues/585. #587

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 5 commits into from
Mar 11, 2016

Conversation

itsmemattchung
Copy link
Contributor

Resolves #585

This reduces user rate limiting when a 304 response is returned

@itsmemattchung
Copy link
Contributor Author

I see the issue. By default, we match on the URI and body. However this requires we match If-None-Match header. I'll create a simple betamax matcher for this.

Resolves: sigmavirus24#585
Added a custom betamax matcher for In-None-Match header
While I was testing the API, I wasn't use cassettes.
Therefore, self.gh.repository() was not captured in the cassette.
See: https://git.io/vaqIw

:param differs_from string: (optional), sha to compare against
:returns: strring of the SHA or None
Copy link
Owner

Choose a reason for hiding this comment

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

strrings are grrreat ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

strrings are grrreat ;)

Good eyeee :)

Replace strring with string in docstring.
Simplified main method.  Removed condition for checking resp
This is what I get for trying to code at 6:00AM
sigmavirus24 added a commit that referenced this pull request Mar 11, 2016
@sigmavirus24 sigmavirus24 merged commit f83e58a into sigmavirus24:develop Mar 11, 2016
@sigmavirus24
Copy link
Owner

Thanks @itsmemattchung !

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