Model Database's logo
Join the Model Database community

and get access to the augmented documentation experience

to get started

Interface: CommitParams

Properties

branch

Optional branch: string

Default

“main”

Defined in

hub/src/lib/commit.ts:62


credentials

credentials: Credentials

Defined in

hub/src/lib/commit.ts:60


description

Optional description: string

Defined in

hub/src/lib/commit.ts:57


fetch

Optional fetch: (input: URL | RequestInfo, init?: RequestInit) => Promise<Response>

Type declaration

▸ (input, init?): Promise<Response>

Custom fetch function to use instead of the default one, for example to use a proxy or edit headers.

Parameters
Name Type
input URL | RequestInfo
init? RequestInit
Returns

Promise<Response>

Defined in

hub/src/lib/commit.ts:75


hubUrl

Optional hubUrl: string

Defined in

hub/src/lib/commit.ts:71


isPullRequest

Optional isPullRequest: boolean

Defined in

hub/src/lib/commit.ts:70


operations

operations: CommitOperation[]

Defined in

hub/src/lib/commit.ts:59


parentCommit

Optional parentCommit: string

Parent commit. Optional

  • When opening a PR: will use parentCommit as the parent commit
  • When committing on a branch: Will make sure that there were no intermediate commits

Defined in

hub/src/lib/commit.ts:69


repo

repo: RepoDesignation

Defined in

hub/src/lib/commit.ts:58


title

title: string

Defined in

hub/src/lib/commit.ts:56