From 5cfc87181e82d58b164f381c7fd90ea5925bcdc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 30 Jul 2023 19:06:11 +0300 Subject: [PATCH 1/2] Add dangerID to gitlab createComment api --- source/platforms/GitLab.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/platforms/GitLab.ts b/source/platforms/GitLab.ts index 60c7e526e..120d62218 100644 --- a/source/platforms/GitLab.ts +++ b/source/platforms/GitLab.ts @@ -114,7 +114,7 @@ class GitLab implements Platform { newOrUpdatedNote = await this.api.updateMergeRequestNote(existingNote.id, newComment) } else { // create a new comment - newOrUpdatedNote = await this.createComment(newComment) + newOrUpdatedNote = await this.createComment(dangerID, newComment) } // create URL from note @@ -145,7 +145,7 @@ class GitLab implements Platform { } } - createComment = async (comment: string): Promise => { + createComment = async (_dangerID: string, comment: string): Promise => { d("createComment", { comment }) if (useThreads()) { return (await this.api.createMergeRequestDiscussion(comment)).notes[0] From 8c2847ee823150fcc29419a7f24bba610893546b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 30 Jul 2023 21:11:31 +0300 Subject: [PATCH 2/2] Add changelog for #1395 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index df5a8aaec..d689370bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ ## Main +- Add dangerID to gitlab createComment api #1395 [@glensc] ## 11.2.7