Trigger the analysis of a specific commit to a project. If a previous attempt to analyze that commit failed, this triggers a fresh analysis. This is supported for all LGTM projects, regardless of repository type or host. The commit must be available in the main repository, but can be on a branch that isn't tracked by LGTM. For both LGTM.com and LGTM Enterprise, you must include an access token with the analyses:write scope.
When you request the analysis of a commit, the API returns:
operation-id: used to track the status of the task using the/operationsendpoint. For more information, see .status: initially pending.task-result: containing information about the progress and results of the analysis.