Skip to content

Commit 5cfc871

Browse files
committed
Add dangerID to gitlab createComment api
1 parent e36a7e0 commit 5cfc871

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/platforms/GitLab.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class GitLab implements Platform {
114114
newOrUpdatedNote = await this.api.updateMergeRequestNote(existingNote.id, newComment)
115115
} else {
116116
// create a new comment
117-
newOrUpdatedNote = await this.createComment(newComment)
117+
newOrUpdatedNote = await this.createComment(dangerID, newComment)
118118
}
119119

120120
// create URL from note
@@ -145,7 +145,7 @@ class GitLab implements Platform {
145145
}
146146
}
147147

148-
createComment = async (comment: string): Promise<GitLabNote> => {
148+
createComment = async (_dangerID: string, comment: string): Promise<GitLabNote> => {
149149
d("createComment", { comment })
150150
if (useThreads()) {
151151
return (await this.api.createMergeRequestDiscussion(comment)).notes[0]

0 commit comments

Comments
 (0)