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

Contributors element #53

Open
zozobalogh0817 opened this issue Jan 20, 2022 · 0 comments
Open

Contributors element #53

zozobalogh0817 opened this issue Jan 20, 2022 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@zozobalogh0817
Copy link
Owner

zozobalogh0817 commented Jan 20, 2022

Create contributors element that can be invoked by adding [CONTRIBUTORS] to your markdown file

Contributors can be gotten from https://api.github.com/repos/{{ site.github.repository_nwo }}/contributors where {{ site.github.repository_nwo }} means REPOSITORY_OWNER/PROJECT_NAME

with this, the following objects array will be produced

[
  {
    "login": "USER_NAME",
    "id": USER_ID,
    "node_id": "USER_NODE_ID",
    "avatar_url": "https://avatars.githubusercontent.com/u/USER_ID?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/USER_NAME",
    "html_url": "https://github.com/USER_NAME",
    "followers_url": "https://api.github.com/users/USER_NAME/followers",
    "following_url": "https://api.github.com/users/USER_NAME/following{/other_user}",
    "gists_url": "https://api.github.com/users/USER_NAME/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/USER_NAME/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/USER_NAME/subscriptions",
    "organizations_url": "https://api.github.com/users/USER_NAME/orgs",
    "repos_url": "https://api.github.com/users/USER_NAME/repos",
    "events_url": "https://api.github.com/users/USER_NAME/events{/privacy}",
    "received_events_url": "https://api.github.com/users/USER_NAME/received_events",
    "type": USER_PRIVILAGE_TYPE,
    "site_admin": IS_USER_SITE_ADMIN,
    "contributions": USER_CONTRIBUTIONS
  }
]

From this array, we will need login, html_url, and avatar_url for each contributor.

And generate a horizontally scrollable list from it.

@zozobalogh0817 zozobalogh0817 added the feature New feature or request label Jan 20, 2022
@zozobalogh0817 zozobalogh0817 self-assigned this Jan 20, 2022
zozobalogh0817 pushed a commit that referenced this issue Jan 20, 2022
zozobalogh0817 pushed a commit that referenced this issue Jan 20, 2022
zozobalogh0817 pushed a commit that referenced this issue Jan 21, 2022
zozobalogh0817 pushed a commit that referenced this issue Jan 21, 2022
zozobalogh0817 pushed a commit that referenced this issue Jan 21, 2022
zozobalogh0817 pushed a commit that referenced this issue Jan 23, 2022
zozobalogh0817 pushed a commit that referenced this issue Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant