From ce11dd23753fd7bb502c299058b83701f20058b2 Mon Sep 17 00:00:00 2001 From: Florian Kohrt Date: Tue, 5 Jan 2021 11:35:48 +0100 Subject: [PATCH] fix(backend-gitlab): skip creating a CI pipeline when rebasing merge request (#4802) Fixes #4786; see further https://docs.gitlab.com/ee/api/merge_requests.html#rebase-a-merge-request --- packages/netlify-cms-backend-gitlab/src/API.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/netlify-cms-backend-gitlab/src/API.ts b/packages/netlify-cms-backend-gitlab/src/API.ts index 1c8861b0..deca54a8 100644 --- a/packages/netlify-cms-backend-gitlab/src/API.ts +++ b/packages/netlify-cms-backend-gitlab/src/API.ts @@ -678,7 +678,7 @@ export default class API { async rebaseMergeRequest(mergeRequest: GitLabMergeRequest) { let rebase: GitLabMergeRebase = await this.requestJSON({ method: 'PUT', - url: `${this.repoURL}/merge_requests/${mergeRequest.iid}/rebase`, + url: `${this.repoURL}/merge_requests/${mergeRequest.iid}/rebase?skip_ci=true`, }); let i = 1;