async
(params, auths) => {
}
//See the API docs here: https://developer.github.com/v3/repos/#list-your-repositories
var param_sort = params.sort || "full_name";
const config = {
url: `https://api.github.com/user/repos`,
params: {
visibility: params.visibility,
affiliation: params.affiliation,
type: params.type,
sort: param_sort,
direction: param_sort == 'full_name' ? "asc" : "desc"
},
headers: {
Authorization: `Bearer ${auths.github.oauth_access_token}`,
},
}
return await require("@pipedreamhq/platform").axios(this, config)