Skip to content
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

Try to resolve user details automatically #4

Open
dpocock opened this issue Jun 7, 2014 · 1 comment
Open

Try to resolve user details automatically #4

dpocock opened this issue Jun 7, 2014 · 1 comment

Comments

@dpocock
Copy link
Owner

dpocock commented Jun 7, 2014

This depends on issue #3

If the username (e.g. from Google Code SVN) is an email address we should try to query the Github API to find the user full name to complete authors.txt

Maybe Github has an API we can use.

If not, maybe we can

a) use git-test-authors to find out if the user is in github

b) scan the HTML page to find the user's github ID

c) checkout each repository under https://github.com/$USER

d) look through the user's repository to find the full name they use to commit - use that full name in authors.txt

@ninjatrench
Copy link

Github API wrapper for python has a function called get_user() which has attribute 'email'
Maybe that can be used.
Example Code:
import github
g = github.Github(<API TOKEN>, user_agent='<User/Agent>)
g.get_user(str(<username>)).email

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

No branches or pull requests

2 participants