Name of repository owner.
Name of repository.
async
(params, auths) => {
}
//See the API docs here: https://developer.github.com/v3/repos/branches/#list-branches
var config = new Object();
if(params.protected){
config = {
url: `https://api.github.com/repos/${params.owner}/${params.repo}/branches`,
headers: {
Authorization: `Bearer ${auths.github.oauth_access_token}`,
},
params: {
protected: params.protected
}
}
}else{
config = {
url: `https://api.github.com/repos/${params.owner}/${params.repo}/branches`,
headers: {
Authorization: `Bearer ${auths.github.oauth_access_token}`,
}
}
}
return await require("@pipedreamhq/platform").axios(this, config)