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

Method changeFilesOnBranch

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

Source from the content-addressed store, hash-verified

1010 }
1011
1012 async changeFilesOnBranch(
1013 operations: ChangeFileOperation[],
1014 options: PersistOptions,
1015 branch: string,
1016 ) {
1017 return (await this.request(`${this.repoURL}/contents`, {
1018 method: 'POST',
1019 body: JSON.stringify({
1020 branch,
1021 files: operations,
1022 message: options.commitMessage,
1023 }),
1024 })) as FilesResponse;
1025 }
1026
1027 // Open Authoring (Fork) Support
1028 isForkOfOrigin(repo: ForgejoRepository) {

Callers 1

editorialWorkflowGitMethod · 0.95

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected