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

Skip to content

Initial commit for license feature #477

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 3 commits into from
Nov 13, 2015

Conversation

itsmemattchung
Copy link
Contributor

Issue: #433

Added ability to retrieve license by name

Added integration test for MIT license

Added ability to retrieve repository's license

Issue: sigmavirus24#433

Added ability to retrieve license by name

Added integration test for MIT license

Added ability to retrieve repository's license
@@ -107,6 +108,7 @@ def _update_attributes(self, repo):
self.id = repo.get('id', 0)
#: Language property.
self.language = repo.get('language', '')

Copy link
Owner

Choose a reason for hiding this comment

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

This is superfluous. Please remove it.

@sigmavirus24
Copy link
Owner

Just a couple nits and then I'm 👍

@itsmemattchung
Copy link
Contributor Author

hey @sigmavirus24 thanks for the feedback. Going to walk the dogs then take a look when I'm back 🐶 🐶

@itsmemattchung
Copy link
Contributor Author

@sigmavirus24 I appreciate the nits. Pushed an update based off of your feedback.

Updated unit test for license to make sure attributes exist

Removed empty whiteline in repo.py
# name of license
self.name = license.get('name')

# permission of license
Copy link
Owner

Choose a reason for hiding this comment

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

One last nit, these comments are not exactly helpful.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

One last nit, these comments are not exactly helpful.

@sigmavirus24 attribute comments removed.

sigmavirus24 added a commit that referenced this pull request Nov 13, 2015
Initial commit for license feature

Closes #433
@sigmavirus24 sigmavirus24 merged commit 112423e into sigmavirus24:develop Nov 13, 2015
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