Skip to main content

post_integrations_github_fork

Function post_integrations_github_fork 

Source
pub async fn post_integrations_github_fork(
    configuration: &Configuration,
    github_fork_req: GithubForkReq,
) -> Result<GithubForkOut, Error<PostIntegrationsGithubForkError>>
Expand description

Forks a granted repository. GitHub’s fork is ASYNCHRONOUS: it answers 202 with the target repo and populates it in the background, and it answers the same 202 when the fork already exists. So this reports what GitHub said rather than waiting — a call that blocked until the clone finished would time out on a large repository and tell the caller nothing it does not already know.