Name of user.
async
(params, auths) => {
}
//See the API docs here: https://developer.github.com/v3/repos/#list-user-repositories
var param_sort = params.sort || "full_name";
const config = {
url: `https://api.github.com/users/${params.username}/repos`,
params: {
type: params.type || "owner",
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)