Github - Search Repositories
@sergio
code:
data:privatelast updated:4 years ago
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 1,000,000+ developers using the Pipedream platform
steps.
trigger
HTTP API
Deploy to generate unique URL
This workflow runs on Pipedream's servers and is triggered by HTTP / Webhook requests.
steps.
github_search_repositories
Searches repositories via various criteria.
auth
(auths.github)
params
Query

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 for repositories": https://help.github.com/en/github/searching-for-information-on-github/searching-for-repositories

 
string ·params.query
Optional
code
async (params, auths) => {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
}
16
//See the API docs: https://developer.github.com/v3/search/#search-repositories
const config = {
  url: `https://api.github.com/search/repositories`,
  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)