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

Get the list of contributors for GitHub repositories #32

Merged
merged 3 commits into from
Mar 20, 2021
Merged

Conversation

giordano
Copy link
Member

No description provided.

src/AnalyzeRegistry.jl Outdated Show resolved Hide resolved
src/AnalyzeRegistry.jl Outdated Show resolved Hide resolved
# authentication, get the list of contributors
contributors = if auth isa GitHub.AnonymousAuth || occursin("github.com", repo)
repo_name = replace(replace(repo, r"^https://github\.com/" => ""), r"\.git$" => "")
String[c["contributor"].login for c in GitHub.contributors(GitHub.repo(repo_name; auth); auth)[1] if c["contributor"].login ∉ ("JuliaTagBot", "github-actions[bot]")]
Copy link
Member

Choose a reason for hiding this comment

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

Is zeptodoctor one we should exclude too? (If I’m remembering that name right...)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, we need to collect all bots we know, these are the first two I found.

Co-authored-by: Eric Hanson <5846501+ericphanson@users.noreply.github.com>
@ericphanson
Copy link
Member

Wow, didn’t see this is only 5 mins old aha! Looks great though

@giordano
Copy link
Member Author

I've made contributors a Dict{String,Int}(contributor => contributions), which should allow us to collect more interesting statistics. I've also added a section to the documentation showing an example of use: https://giordano.github.io/AnalyzeRegistry.jl/previews/PR32/#Contributors-to-the-repository. Since you seemed happy about this, I'm going to merge this when CI is green, but feel free to open issues/pull requests if you see any possible fix/improvement!

@giordano giordano merged commit bd21884 into main Mar 20, 2021
@giordano giordano deleted the mg/contributors branch March 20, 2021 02:29
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.

2 participants