MCPcopy Create free account
hub / github.com/decaporg/decap-cms / turboCommit

Method turboCommit

packages/decap-cms-backend-turbo-github/src/API.ts:129–142  ·  view source on GitHub ↗
(body: Record<string, unknown>)

Source from the content-addressed store, hash-verified

127 }
128
129 private async turboCommit(body: Record<string, unknown>) {
130 const response = await this.turboFetch(this.commitEndpoint, {
131 method: 'POST',
132 headers: { 'Content-Type': 'application/json' },
133 body: JSON.stringify(body),
134 });
135
136 return (await response.json()) as {
137 sha: string;
138 url: string;
139 branch: string;
140 workflow?: { complete: boolean; pull_request: { number: number; url?: string } | null };
141 };
142 }
143
144 // eslint-disable-next-line @typescript-eslint/no-explicit-any
145 private shouldFallBack(error: any) {

Callers 2

persistFilesMethod · 0.95
deleteFilesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected