File size: 854 Bytes
df9fdc8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import type { AccessToken, RepoDesignation } from "../types/public";
export declare function createBranch(params: {
    repo: RepoDesignation;
    /**
     * Revision to create the branch from. Defaults to the default branch.
     *
     * Use empty: true to create an empty branch.
     */
    revision?: string;
    hubUrl?: string;
    accessToken?: AccessToken;
    fetch?: typeof fetch;
    /**
     * The name of the branch to create
     */
    branch: string;
    /**
     * Use this to create an empty branch, with no commits.
     */
    empty?: boolean;
    /**
     * Use this to overwrite the branch if it already exists.
     *
     * If you only specify `overwrite` and no `revision`/`empty`, and the branch already exists, it will be a no-op.
     */
    overwrite?: boolean;
}): Promise<void>;
//# sourceMappingURL=create-branch.d.ts.map