Thanks for your work on this! I am in the Germany top 50 list :)
I would like to see users who have annotated their ORCiD identifier as part of their GitHub profile to show the ORCiD logo linked to their ORCiD page.
This would make it easier to make a rough guess which users are academic (if they have ORCiD) versus non-academic (don't have an ORCiD).
I think that you can extend the GraphQL query here to look for social accounts (https://docs.github.com/en/graphql/reference/users?utm_source=chatgpt.com#object-socialaccount).
|
... on User { |
|
login, |
|
avatarUrl, |
|
name, |
|
company, |
|
organizations(first: 100) { |
|
nodes { |
|
login |
|
} |
|
} |
|
followers { |
|
totalCount |
|
} |
|
contributionsCollection { |
|
contributionCalendar { |
|
totalContributions |
|
}, |
|
totalCommitContributions, |
|
totalPullRequestContributions, |
|
restrictedContributionsCount |
|
} |
Add
socialAccounts(first: 20) {
nodes {
provider
displayName
url
}
}
Unfortunately, it looks like ORCiD doesn't have a dedicated field, so you'd have to retrieve multiple, then loop through for URLs starting with https://orcid.org/. The provider and displayName won't actually be needed in the end, but might be helpful for debugging. Sorry if there's something wrong with this GraphQL - I have never used it before, but this seems like the right form.
Thanks for your work on this! I am in the Germany top 50 list :)
I would like to see users who have annotated their ORCiD identifier as part of their GitHub profile to show the ORCiD logo linked to their ORCiD page.
This would make it easier to make a rough guess which users are academic (if they have ORCiD) versus non-academic (don't have an ORCiD).
I think that you can extend the GraphQL query here to look for social accounts (https://docs.github.com/en/graphql/reference/users?utm_source=chatgpt.com#object-socialaccount).
committers.top/github/github.go
Lines 95 to 115 in 53237a3
Add
Unfortunately, it looks like ORCiD doesn't have a dedicated field, so you'd have to retrieve multiple, then loop through for URLs starting with
https://orcid.org/. TheprovideranddisplayNamewon't actually be needed in the end, but might be helpful for debugging. Sorry if there's something wrong with this GraphQL - I have never used it before, but this seems like the right form.