8000 Add License preview header to repository, to get a repository's license by dnsv · Pull Request #592 · sigmavirus24/github3.py · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@dnsv
Copy link
@dnsv dnsv commented Mar 26, 2016

Issue #591

I've added the application/vnd.github.drax-preview+json media type when loading a repository so it loads with license data. The license data is partial (params: key, name, url & featured), so I've made some changes to load the whole license with license.refresh(). Because we can now retrieve the license this way, I saw no need in a seperate method to load the repository license. Therefore I removed repo.license().

@sigmavirus24
Copy link
Owner

Please do not remove the license method.

Sent from my Android device with K-9 Mail. Please excuse my brevity.

@dnsv
Copy link
Author
dnsv commented Mar 27, 2016

I've restored the license method.

}

def _update_attributes(self, license):
self._api = license.get('url', '')
Copy link
Owner

Choose a reason for hiding this comment

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

Nice catch

@sigmavirus24 sigmavirus24 merged commit ae308fd into sigmavirus24:develop Mar 27, 2016
@sigmavirus24
Copy link
Owner

Thanks so much @dsvetec! ✨ 🍰 ✨

@itsmemattchung
Copy link
Contributor

Awesome thanks @dsvetec

@dnsv
Copy link
Author
dnsv commented Mar 27, 2016

Thanks. I'm glad I could help.

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.

3 participants

0