The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com.
To learn more about the format of the query, see Constructing a search query: https://developer.github.com/v3/search/#constructing-a-search-query
For a detailed list of qualifiers see "Searching code": https://help.github.com/en/github/searching-for-information-on-github/searching-code
Due to the complexity of searching code, there are a few restrictions on how searches are performed:
Only the default branch is considered. In most cases, this will be the master branch.
Only files smaller than 384 KB are searchable.
You must always include at least one search term when searching source code. For example, searching for language:go is not valid, while amazing language:go is.
async
(params, auths) => {
}
//See the API docs here: https://developer.github.com/v3/search/#search-code
const config = {
url: `https://api.github.com/search/code`,
params: {
order: params.order,
q: params.query,
sort: params.sort,
},
headers: {
Authorization: `Bearer ${auths.github.oauth_access_token}`,
},
}
return await require("@pipedreamhq/platform").axios(this, config)