Interface ContributeOptions

Options for a contribution: the commit message, save ContributeMode, and (PR mode) an optional branch name.

interface ContributeOptions {
    branchName?: string;
    commitMessage: string;
    mode?: ContributeMode;
}

Properties

branchName?: string

Override the generated branch name (PR mode).

commitMessage: string

The commit message / PR title.

'pr' (default) opens a PR; 'direct' commits to the branch and needs the first-party contribute:direct capability.