-
Notifications
You must be signed in to change notification settings - Fork 406
Consistency is a hobgoblin of a small mind #773
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
Re-record GitHub.add_email_addreses test for correctness
Add a Contributor object for the Repository.contributors method and update usage and tests.
Also update our class documentation to be better.
Also improve our documentation
This also introduces consistency in the orgs module in how we set-up attributes for the *Team and *Organization classes. It also rewrites the docstrings to be consistent with the rest of the library
How goes things here? Anything I could help with? |
This splits up the different representations of licenses across the GitHub API for acccuracy.
Sorry, I missed this entirely. One of the things I'd like to be able to do is completely get rid of the |
Okay, I'll take a look through. |
Removes the use of _get_attribute and its ilk. Related-to: #773
This also created a CommitTree object as the tree is different via the git object API vs the repository object API. New example data is added to account for this difference as well.
Merging omgjlk's branch into consistency-is-a-hobgoblin
Let's try to mainly import modules instead of functions or members. Let's update the class documentation and add otherwise missing attributes.
Add better documentation around the objects there and what they represent. Also add a new Commit-like object for RepoCommits
It looks like |
This adds the ShortComment class to represent comments without text and html bodies. This also removes the BaseAccount, BaseComment, and BaseCommit classes as they're no longer used or necessary.
Remaining modules to update:
If folks want to help out, send PRs to this branch. |
1e044d4
to
57bbe14
Compare
GitHub is inconsistent in the timestamps it returns for the issue import API. strptime has a way of handling UTC offsets a format like -0600 but not -06:00. There's no good way to handle that with the standard library, so here we must add dateutil.
57bbe14
to
b273037
Compare
6fce842
to
7f32e37
Compare
cbbf492
to
b1972fc
Compare
b1972fc
to
5814c53
Compare
Better late than never - only 1.5 years. Finally I can stop using my ancient fork for correct timestamp parsing :) |
This pull request unifies the way objects work in github3.py. We use direct access of the keys in the dictionary instead of calling
.get()
this will provide a more consistent interface and set of expectations for users.