Merge Request Discussions API: accept commit_id to create discussion on commit
Compare changes
Files
4- Johannes Altmanninger authored
When creating a new thread on a merge request by using the [MR Discussions API](https://docs.gitlab.com/ee/api/discussions.html#create-new-merge-request-thread), the thread is always on the merge request's full diff. This patch allows passing the "commit_id" parameter to associate the thread with the desired commit. The "commit_id" field of a note is exposed to be able to test this. Use case: for merge requests with many commits, I like to add my threads on individual commits, so reviewers can immediately find the commit that introduced the discussed lines. This can be done in the web interface by commenting on a commit's diff. This commit allows to do the same thing using the API.
+ 1
− 0
@@ -827,7+827,7 @@
@@ -842,7+842,7 @@