From ba604af826956eb95a963554675103294d6014ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 30 Jul 2023 16:34:55 +0300 Subject: [PATCH 1/2] Expose updateMergeRequestInfo for gitlab api --- source/dsl/GitLabDSL.ts | 1 + source/platforms/GitLab.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/source/dsl/GitLabDSL.ts b/source/dsl/GitLabDSL.ts index 3bdcfb199..c00d09827 100644 --- a/source/dsl/GitLabDSL.ts +++ b/source/dsl/GitLabDSL.ts @@ -21,6 +21,7 @@ export interface GitLabDSL extends GitLabJSONDSL { fileContents(path: string, repoSlug?: string, ref?: string): Promise addLabels(...labels: string[]): Promise removeLabels(...labels: string[]): Promise + updateMergeRequestInfo(changes: object): Promise } api: InstanceType } diff --git a/source/platforms/GitLab.ts b/source/platforms/GitLab.ts index 60c7e526e..203f2566c 100644 --- a/source/platforms/GitLab.ts +++ b/source/platforms/GitLab.ts @@ -290,6 +290,7 @@ export const gitlabJSONToGitLabDSL = (gl: GitLabDSL, api: GitLabAPI): GitLabDSL fileContents: api.getFileContents, addLabels: api.addLabels, removeLabels: api.removeLabels, + updateMergeRequestInfo: api.updateMergeRequestInfo, }, api: api.apiInstance, }) From 40256c74f2abdcff120414839836ed6fb6c9348e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 30 Jul 2023 16:43:26 +0300 Subject: [PATCH 2/2] Add changelog for #1391 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index df5a8aaec..f5d959325 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ ## Main +- Feature: Expose updateMergeRequestInfo for gitlab api #1391 - [@glensc] ## 11.2.7