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 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]