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

Method createMergeRequest

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

Source from the content-addressed store, hash-verified

872 }
873
874 async createMergeRequest(branch: string, commitMessage: string, status: string) {
875 await this.requestJSON({
876 method: 'POST',
877 url: `${this.repoURL}/merge_requests`,
878 params: {
879 source_branch: branch,
880 target_branch: this.branch,
881 title: commitMessage,
882 description: DEFAULT_PR_BODY,
883 labels: statusToLabel(status, this.cmsLabelPrefix),
884 remove_source_branch: true,
885 squash: this.squashMerges,
886 },
887 });
888 }
889
890 async editorialWorkflowGit(
891 files: (DataFile | AssetProxy)[],

Callers 1

editorialWorkflowGitMethod · 0.95

Calls 1

statusToLabelFunction · 0.90

Tested by

no test coverage detected