Skip to content

Capture and display ORCiD identifiers #129

Description

@cthoyt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions