Skip to content

List all contributors and their languages in one org #24735

Discussion options

You must be logged in to vote

If I’m not mistaken, this is not directly possible with GraphQL.

You may need to separate query all the developers, then all the commits they made, and then infer a language that was used for that file.

Note that this query only sounds simple, as long as you don’t consider all the edge cases.

For example, there might be cases when one file corresponds to different languages (the most typical example is SQL in source files of other languages, HTML in JS, etc). Or some files may be code-generated, formatted in that commit, etc.

At the end you will have to specify what all those factors mean for your specific use case by writing the code that resolves them.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment