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

Method createMergeRequest

packages/decap-cms-backend-gitlab/src/API.ts:865–879  ·  view source on GitHub ↗
(branch: string, commitMessage: string, status: string)

Source from the content-addressed store, hash-verified

863 }
864
865 async createMergeRequest(branch: string, commitMessage: string, status: string) {
866 await this.requestJSON({
867 method: 'POST',
868 url: `${this.repoURL}/merge_requests`,
869 params: {
870 source_branch: branch,
871 target_branch: this.branch,
872 title: commitMessage,
873 description: DEFAULT_PR_BODY,
874 labels: statusToLabel(status, this.cmsLabelPrefix),
875 remove_source_branch: true,
876 squash: this.squashMerges,
877 },
878 });
879 }
880
881 async editorialWorkflowGit(
882 files: (DataFile | AssetProxy)[],

Callers 1

editorialWorkflowGitMethod · 0.95

Calls 1

statusToLabelFunction · 0.90

Tested by

no test coverage detected