Skip to content

Commit 31ae4a7

Browse files
committed
mr discussions: Set CommitID
The CommitID now must be set when creating a merge request discussion with commit comments. Set the CommitID field when creating a merge request discussion with commit comments. Signed-off-by: Prarit Bhargava <prarit@redhat.com>
1 parent 579ee99 commit 31ae4a7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/gitlab/gitlab.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,6 +1889,7 @@ func CreateMergeRequestCommitDiscussion(project string, mrID int, sha string, ne
18891889
opt := &gitlab.CreateMergeRequestDiscussionOptions{
18901890
Body: &comment,
18911891
Position: &position,
1892+
CommitID: &sha,
18921893
}
18931894

18941895
discussion, _, err := lab.Discussions.CreateMergeRequestDiscussion(p.ID, mrID, opt)

0 commit comments

Comments
 (0)