Skip to content

Commit 8bba64f

Browse files
authored
Merge pull request #1395 from glensc/1381-fix
Add dangerID to gitlab createComment api
2 parents 26387bc + 8c2847e commit 8bba64f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
## Main
1616

1717
<!-- Your comment below this -->
18+
- Add dangerID to gitlab createComment api #1395 [@glensc]
1819
<!-- Your comment above this -->
1920

2021
## 11.2.7

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)