MCPcopy
hub / github.com/tinacms/tinacms / push

Method push

packages/tinacms/src/toolkit/git-client/git-client.ts:63–72  ·  view source on GitHub ↗

* TODO: Add return type. * TODO: Remove `catch` * * @deprecated

()

Source from the content-addressed store, hash-verified

61 * @deprecated
62 */
63 push(): Promise<any> {
64 return fetch(`${this.baseUrl}/push`, {
65 method: 'POST',
66 headers: {
67 'Content-Type': 'application/json; charset=utf-8',
68 },
69 }).catch((e) => {
70 console.error(e);
71 });
72 }
73
74 /**
75 * TODO: Add return type.

Callers 15

persistMethod · 0.80
listMediaFunction · 0.80
persistMethod · 0.80
listMediaFunction · 0.80
persistMethod · 0.80
markdownToAstFunction · 0.80
contentFunction · 0.80
phrashingMarkFunction · 0.80
blockquoteFunction · 0.80
stringifyPropsFunction · 0.80
toTinaMarkdownFunction · 0.80
rootElementFunction · 0.80

Calls 2

errorMethod · 0.80
catchMethod · 0.45

Tested by 8

readFunction · 0.64
getRequestMiddlewareFunction · 0.64
findImageEmbedsFunction · 0.64
collectorFunction · 0.64
putMethod · 0.64
deleteMethod · 0.64
collectPackagesFromDirFunction · 0.64
extractExportLeavesFunction · 0.64