Member Junction
    Preparing search index...

    Parameters for committing one or more files via the GitHub Git Data API.

    interface GitHubCommitFilesParams {
        AllowProtectedBranch?: boolean;
        Author?: { email: string; name: string };
        BaseBranch?: string;
        Branch: string;
        CreateBranch?: boolean;
        Files: GitHubFileChange[];
        Message: string;
        Owner: string;
        Repo: string;
    }
    Index

    Properties

    AllowProtectedBranch?: boolean

    Explicit override to allow committing directly to a protected branch. Defaults to false (protected branches main, master, next, production, and the repo default branch are rejected).

    Author?: { email: string; name: string }

    Optional commit author attribution.

    BaseBranch?: string

    Base branch to branch from when CreateBranch is true (defaults to the repository's default branch).

    Branch: string

    Target branch to commit to. If CreateBranch is true, this new branch is created from BaseBranch.

    CreateBranch?: boolean

    Whether to create Branch from BaseBranch before committing (or reset if it does not exist).

    Array of file additions, updates, or deletions.

    Message: string

    Commit message.

    Owner: string
    Repo: string