{"id":21638101,"url":"https://github.com/purecloudlabs/github-api-promise","last_synced_at":"2025-04-11T16:42:28.619Z","repository":{"id":53192506,"uuid":"49592471","full_name":"purecloudlabs/github-api-promise","owner":"purecloudlabs","description":"A node module for interfacing with the Github API using promises","archived":false,"fork":false,"pushed_at":"2024-02-13T23:04:41.000Z","size":1260,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-14T23:58:08.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/purecloudlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-13T18:14:28.000Z","updated_at":"2024-06-21T17:53:20.391Z","dependencies_parsed_at":"2024-06-21T17:53:19.226Z","dependency_job_id":"868586e3-77a0-4d7e-8693-3363088db2c4","html_url":"https://github.com/purecloudlabs/github-api-promise","commit_stats":{"total_commits":90,"total_committers":7,"mean_commits":"12.857142857142858","dds":0.3666666666666667,"last_synced_commit":"688d3500f1b6da5842b91d2431b8f984973832bb"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purecloudlabs%2Fgithub-api-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purecloudlabs%2Fgithub-api-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purecloudlabs%2Fgithub-api-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purecloudlabs%2Fgithub-api-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purecloudlabs","download_url":"https://codeload.github.com/purecloudlabs/github-api-promise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248442315,"owners_count":21104155,"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":[],"created_at":"2024-11-25T04:08:12.249Z","updated_at":"2025-04-11T16:42:28.600Z","avatar_url":"https://github.com/purecloudlabs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-api-promise\n\nA node module for interfacing with the Github API using promises. The full GitHub API documentation can be found at https://developer.github.com/v3/.\n\n# Installation\n\n```bash\nnpm install github-api-promise\n```\n\n# Resources\n\n- [Documentation](https://purecloudlabs.github.io/github-api-promise/)\n- [![npm](https://img.shields.io/npm/v/github-api-promise.svg)](https://www.npmjs.com/package/github-api-promise)\n\n# Usage\n\nTLDR;\n\n1. import _github-api-promise_\n2. Set settings\n3. Make API calls\n\nBasic example code:\n\n```JavaScript\nimport api from \"github-api-promise\";\n\n// Set settings\napi.config.owner = 'OwnersGithubUsername';\napi.config.repo = 'RepoName';\napi.config.token = 'YourAccessToken';\napi.config.debug = true; // Default is false. Logs request information via console.log when true.\n\n// Do stuff\napi.repos.releases.getRepositoryReleases()\n\t.then((res) =\u003e {\n\t\t// Do your stuff here. res is the JSON object returned by the API\n\t})\n\t.catch((err) =\u003e {\n\t\tconsole.log(`Request failed: ${err}`);\n\t});\n```\n\nFor help creating an access token, see the GitHub help article [Creating an Access Token for Command Line Use](https://help.github.com/articles/creating-an-access-token-for-command-line-use/). This package only requires either the _repo_ scope for private repos or the _public_repo_ scope for public repos.\n\n# API Support\n\nThe following APIs are supported. PRs welcome!\n\n- Activity\n  - [Events](https://developer.github.com/v3/activity/events/)\n- Issues\n  - [Comments](https://developer.github.com/v3/issues/comments/)\n  - [Events](https://developer.github.com/v3/issues/events/)\n  - [Issues](https://developer.github.com/v3/issues/)\n- Pull Requests\n  - [Comments](https://developer.github.com/v3/pulls/comments/)\n  - [Pull Requests](https://developer.github.com/v3/pulls/)\n- Repositories\n  - [Commits](https://developer.github.com/v3/repos/commits/)\n  - [Contents](https://developer.github.com/v3/repos/contents/)\n  - [Releases](https://developer.github.com/v3/repos/releases/)\n  - [Repositories](https://developer.github.com/v3/repos/)\n- Teams\n  - [Teams](https://developer.github.com/v3/teams/)\n\n# Thanks\n\nSpecial thanks to [jeejkang](https://github.com/jeejkang) for the [Stormtroopocat](https://octodex.github.com/stormtroopocat/) image!\n\nThanks to [aktau/github-release](https://github.com/aktau/github-release) (a library for GO) for the inspiration for this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurecloudlabs%2Fgithub-api-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurecloudlabs%2Fgithub-api-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurecloudlabs%2Fgithub-api-promise/lists"}