Trigger the code review of a patch. This is available for projects with Git repositories.
Your request must include:
- Identifier for the base commit
- Patch generated using
git diff --binary(see ) - Header
Content-Type: application/octet-stream - For both LGTM.com and LGTM Enterprise, an access token with the
codereviews:writescope
Note that if you make a request using Curl, you'll also need to add --data-binary to the request to ensure that the patch you supply in the body is sent with newlines unchanged.
You can track the progress of the review using the task result URL returned on creation of the task, or by calling the /operations endpoint with the operations identifier returned by the request. For more information, see . Alternatively, if you supply a callback URL you'll get a post-back automatically on completion of the review.
When the review is complete, you can access the results using the task result URL.