Name of repository owner.
Name of repository.
async
(params, auths) => {
}
//See the API docs here: https://developer.github.com/v3/repos/forks/#create-a-fork
const data = {
organization: params.organization,
}
const config = {
method: "post",
url: `https://api.github.com/repos/${params.owner}/${params.repo}/forks`,
headers: {
Authorization: `Bearer ${auths.github.oauth_access_token}`,
},
data,
}
return await require("@pipedreamhq/platform").axios(this, config)