Interface CreateForkData

Request body for creating a fork of a repository.

interface CreateForkData {
    default_branch_only?: boolean;
    name?: string;
    organization?: string;
}

Properties

default_branch_only?: boolean

Whether to copy only the default branch. Defaults to false.

name?: string

Custom name for the fork. Defaults to the original repository name.

organization?: string

Organization login to fork into. Omit to fork into the authenticated user's account.