Fix diff-comment script

Inspired by Polo2/restaurant-api!6 (merged), and Polo2/restaurant-api!8 (merged) where this script is tested.

GitLab API authentication has been changed (this looks like a breaking change by the way).

Without this commit, we receive error 401 as response:

image

Consequently we adapt the script, following GitLab API documentation about endpoint

Create new merge request note

Note: In related shell example, body parameter is described as query parameter, but we also noticed it's supported as body parameter too.

(Is it an issue in the documentation?)

Edited by Polo

Merge request reports

Loading