Skip to content

Commit

Permalink
mr discussions: Set CommitID
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
prarit committed Sep 23, 2021
1 parent 579ee99 commit 31ae4a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,7 @@ func CreateMergeRequestCommitDiscussion(project string, mrID int, sha string, ne
opt := &gitlab.CreateMergeRequestDiscussionOptions{
Body: &comment,
Position: &position,
CommitID: &sha,
}

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

0 comments on commit 31ae4a7

Please sign in to comment.