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

Method changeFilesOnBranch

packages/decap-cms-backend-forgejo/src/API.ts:1005–1018  ·  view source on GitHub ↗
(
    operations: ChangeFileOperation[],
    options: PersistOptions,
    branch: string,
  )

Source from the content-addressed store, hash-verified

1003 }
1004
1005 async changeFilesOnBranch(
1006 operations: ChangeFileOperation[],
1007 options: PersistOptions,
1008 branch: string,
1009 ) {
1010 return (await this.request(`${this.repoURL}/contents`, {
1011 method: 'POST',
1012 body: JSON.stringify({
1013 branch,
1014 files: operations,
1015 message: options.commitMessage,
1016 }),
1017 })) as FilesResponse;
1018 }
1019
1020 // Open Authoring (Fork) Support
1021 async forkExists(): Promise<boolean> {

Callers 1

editorialWorkflowGitMethod · 0.95

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected