Questions tagged [github.js]

4 questions
5
votes
1 answer

403 error from Github.js getSha for files above ~1MB in size

I'm getting a 403 error when I try to use Github.js to getSha (and subsequently getBlob) from files larger than ~1MB. Is there a limit to the file size? The code is below: var gh = new GitHub({ username: username, password: password }); //…
2
votes
0 answers

Github token security using github.js

I'm a newby in JavaScript and I'm experimenting with the github.js to interact directly with repo files on the browser. I'm using gatekeeper which sends me back the oauth token after user authorization and I'm using it directly on a script like this…
Lestat
  • 21
  • 1
1
vote
0 answers

Listing all branches in a repo using Github API only returns the first 30

I'm using the Github Javascript API in my project. My repo has over 30 branches, so when I use the listBranches() function I only get back the first 30 branches instead of all of them. I see in the response that there are more pages of…
timgcarlson
  • 3,017
  • 25
  • 52
1
vote
1 answer

Best way to authenticate with GitHub.js?

I have a JavaScript file that needs to use the GitHub API to get the contents of a file stored in a repository. I am using GitHub.js to access the API, and it shows the following method for authentication: // basic auth var gh = new GitHub({ …
HeadAdmiral
  • 111
  • 1
  • 8