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

any plan to implement site.github.public_repositories[].contributors ? #233

Closed
9bow opened this issue Apr 29, 2022 · 2 comments
Closed

any plan to implement site.github.public_repositories[].contributors ? #233

9bow opened this issue Apr 29, 2022 · 2 comments

Comments

@9bow
Copy link
Contributor

9bow commented Apr 29, 2022

Hello,

I'm running a GitHub organization, and I would like to publish contributor list of all public repos in organization to our website.

In this regard, I was expecting the following code, but the field site.github.public_repositories[].contributors was not exist.

{% for repository in site.github.public_repositories %}
  ## [{{ repository.name }}]({{ repository.html_url }})
  {% for contributor in repository.contributors %}
    * [{{ contributor.name }}]({{ contributor.html_url }})
  {% endfor %}
{% endfor %}

I found an old similar issue with this feature, but it seems to have been resolved by fetching only the contributors of only one repository (the current repository specified in _config.yaml) as site.github.contributors.

It looks like the GitHub API and octokit.rb support the feature to get a list of contributors by repository.

However, I'm a bit embarrassed because I haven't written code in ruby. 😅

Do you have any plans to add a feature related to this?

Thank you.

@9bow
Copy link
Contributor Author

9bow commented May 5, 2022

New feature added as PR (#234) to close this issue.
This feature has been merged with the dedicated help of maintainer @parkr.
With his review, this PR was a great experience for me. :)

@9bow 9bow closed this as completed May 5, 2022
@parkr
Copy link
Member

parkr commented May 5, 2022

Thank you for the contribution, @9bow!

@jekyll jekyll locked and limited conversation to collaborators May 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants