github
github copied to clipboard
A higher-level wrapper around the Github API. Intended for the browser.
Hello, I am trying to write a file doing: ```javascript new GitHub(authPayload) .getRepo(githubUsername, repoName) .writeFile(null, path, content, commitMessage, { encode: true, author: null, committer: null }) ``` But i am...
When calling Repository.isCollaborator(), the a _UnhandledPromiseRejectionWarning: Error: 404 error making request get https://api.github.com/repos/org/repo/collaborators/xxx: "Not Found"_ is thrown when a user is not a collaborator, instead of returning false, and if...
Hi, the `listBranches()` method doesn't allow to filter protected branches. Is there a workaround to get all protected branches of a repository? Github API: https://developer.github.com/v3/repos/branches/#list-branches
As per https://github.com/michael/github/issues/241#issuecomment-250444749 I've been working on a TypeScript definition. The d.ts included in this PR is 95% automated, 5% by hand. `tsd-jsdoc` currently has a [bug](https://github.com/englercj/tsd-jsdoc/issues/6) that moves types...
When making a call to get the authenticated user's gists, it only returns the public gists. ``` import GitHubAPI from 'github-api'; const getGists = (async () => { var gh...
Is there a way to use this lib with Git-Hub Enterprise? I tried this as below but it doesn't seem to work. Please let me know what I'm missing. ```...
This may sound like a stupid question but I can't make it work behind a proxy. What is the procedure to configure proxy information? Should it be done through NodeJS?...
If you send `Accept: application/vnd.github.mercy-preview+json` then you get access to some extra stuff e.g. repository topics. So far I couldn't find any way to do this but I'm still searching...
I am working on an app where I would like to use github.js to access an internal api acting as a proxy to `api.github.com`. I am doing this because I...