Open Heath123 opened 3 years ago
Looks like it actually needs this, not a string:
@param {Object} [requestOptions={}] - the current options for the request
There's also no forCommits
on the class
data: {
message: "If you would like to help us test the Commit Search API during its preview period, you must specify a custom media type in the 'Accept' header. Please see the docs for full details.",
documentation_url: 'https://docs.github.com/rest/reference/search#search-commits'
}
Huh, I guess I'll have to do that part manually?
data: {
message: "API rate limit exceeded for 95.111.249.143. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
documentation_url: 'https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting'
}
Is this my fault or is auth broken?
const search = gh.search({})
search.__AcceptHeader = 'cloak-preview'
search._search('commits', { q: 'query' }, (err, result) => { console.log(err, result) })
This seems to work
Trying to use the function http://github-tools.github.io/github/docs/3.2.3/GitHub.html#search (using 3.4.0 but the docs aren't up for that) like this:
gives this error: