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

🥼 feat: Dynamic list of all collaborators for this repo! #203

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions content/page/who.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,7 @@ See [our code of conduct](/en/page/coc/).
## Our supporters

See [our supporters](/en/page/supporters/).

## Other contributors

{{<all-contributors >}}
4 changes: 4 additions & 0 deletions content/page/who.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,7 @@ Voir [notre code de conduite](/fr/page/coc/).
## Nos soutiens

Voir [nos soutiens](/fr/page/supporters/).

# Autres contributeurs

{{<all-contributors >}}
14 changes: 14 additions & 0 deletions layouts/shortcodes/all-contributors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class="row justify-content-md-center">
{{ $data := getJSON "https://api.github.com/repos/Exodus-Privacy/website/contributors" }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{{ $data := getJSON "https://api.github.com/repos/Exodus-Privacy/website/contributors" }}
{{ $data := getJSON "https://api.github.com/orgs/Exodus-Privacy/members" }}

or

Suggested change
{{ $data := getJSON "https://api.github.com/repos/Exodus-Privacy/website/contributors" }}
{{ $data := getJSON "https://api.github.com/repos/Exodus-Privacy/exodus/contributors" }}

Copy link
Contributor Author

@ArnavK-09 ArnavK-09 Feb 5, 2024

Choose a reason for hiding this comment

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

Wait a min,

We want org members or inactive contributors?

Repo of website or app or exodus?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
{{ $data := getJSON "https://api.github.com/repos/Exodus-Privacy/website/contributors" }}
{{ $data := getJSON "https://api.github.com/orgs/Exodus-Privacy/members" }}

or

Suggested change
{{ $data := getJSON "https://api.github.com/repos/Exodus-Privacy/website/contributors" }}
{{ $data := getJSON "https://api.github.com/repos/Exodus-Privacy/exodus/contributors" }}

#85 (comment)

{{ range $data }}
{{ $user := getJSON .url }}
<div class="col-lg-4 col-sm-6 col-12 mt-3 text-center">
<img class="w-25 rounded-circle" src="{{ .avatar_url }}">
<div class="card-body">
<h6 class="card-title"><code>{{ $user.name }} {{ if not $user.name}} {{ .login }} {{end }}</code></h6>
<a target="_blank" href="{{ .html_url }}"><i class="fab fa-github fa-2x"></i></a>
<p class="small">{{ $user.bio }}</p>
</div>
</div>
{{end}}
</div>