{"id":22180557,"url":"https://github.com/gh-conf/gh-api","last_synced_at":"2025-07-26T17:32:16.333Z","repository":{"id":34909412,"uuid":"187682607","full_name":"gh-conf/gh-api","owner":"gh-conf","description":"Github api module used by gh-conf repositories","archived":false,"fork":false,"pushed_at":"2022-07-10T14:17:28.000Z","size":264,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-09T10:14:44.610Z","etag":null,"topics":["api","contributors","forked-repo","github","github-api","repository"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gh-conf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-20T17:09:42.000Z","updated_at":"2022-07-10T14:27:29.000Z","dependencies_parsed_at":"2022-08-08T02:16:05.570Z","dependency_job_id":null,"html_url":"https://github.com/gh-conf/gh-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-conf%2Fgh-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-conf%2Fgh-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-conf%2Fgh-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-conf%2Fgh-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gh-conf","download_url":"https://codeload.github.com/gh-conf/gh-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227700405,"owners_count":17806365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","contributors","forked-repo","github","github-api","repository"],"created_at":"2024-12-02T09:18:39.194Z","updated_at":"2024-12-02T09:18:39.868Z","avatar_url":"https://github.com/gh-conf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-api\n\n[![Build](https://travis-ci.com/gh-conf/gh-api.svg?branch=master)](https://travis-ci.com/gh-conf/gh-api/)\n\nGithub api module, used by gh-conf repositories\n\n## Install\n\n```\nnpm install @gh-conf/gh-api\n```\n\n## Usage\n\n```js\nconst { Contributors, ParentRepo } = require('@gh-conf/gh-api');\n\nconst username = 'arshadkazmi42';\nconst repository = 'strmat';\nconst forkedRepo = 'taskcluster';\n\n// Fetches list of contributors of the repository\nconst contributors = await Contributors(username, respository);\n\n// Output\n/**\n [\n  {\n    'avatar_url': 'https://avatars3.githubusercontent.com/u/4654382?v=4',\n    'contributions': 9,\n    'events_url': 'https://api.github.com/users/arshadkazmi42/events{/privacy}',\n    'followers_url': 'https://api.github.com/users/arshadkazmi42/followers',\n    'following_url': 'https://api.github.com/users/arshadkazmi42/following{/other_user}',\n    'gists_url': 'https://api.github.com/users/arshadkazmi42/gists{/gist_id}',\n    'gravatar_id': '',\n    'html_url': 'https://github.com/arshadkazmi42',\n    'id': 4654382,\n    'login': 'arshadkazmi42',\n    'node_id': 'MDQ6VXNlcjQ2NTQzODI=',\n    'organizations_url': 'https://api.github.com/users/arshadkazmi42/orgs',\n    'received_events_url': 'https://api.github.com/users/arshadkazmi42/received_events',\n    'repos_url': 'https://api.github.com/users/arshadkazmi42/repos',\n    'site_admin': false,\n    'starred_url': 'https://api.github.com/users/arshadkazmi42/starred{/owner}{/repo}',\n    'subscriptions_url': 'https://api.github.com/users/arshadkazmi42/subscriptions',\n    'type': 'User',\n    'url': 'https://api.github.com/users/arshadkazmi42',\n  }\n];\n**/\n\n\n// Fetches upstream url of the repository from parent repository\nconst upstream = await ParentRepo(username, forkedRepo);\n\n// Output\n// https://github.com/taskcluster/taskcluster\n\n```\n\n## API\n\n#### `contributors`\n\n- Fetches list of all contibutors of the repository\n- Input: username, repository\n\n#### `parentRepo`\n\n- Fetches parent repository url\n- Input: username, repository\n\n## Contributing\n\nInterested in contributing to this project?\nYou can log any issues or suggestion related to this library [here](https://github.com/gh-conf/gh-api/issues/new).\n\nRead our contributing [guide](CONTRIBUTING.md) to get started with contributing to the codebase.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh-conf%2Fgh-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgh-conf%2Fgh-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh-conf%2Fgh-api/lists"}