action lgtm_get_analysis { label: "Get analysis summary" description: "Get a summary of the analysis results for a specific analysis identifier.\n\nTo find the analysis identifier for a commit, use the `/analyses/{project-id}/commits/{commit-id}` endpoint. For more information, see [Get analysis summary for a specific commit](https://lgtm.com/help/lgtm/api/api-v1#opIdgetAnalysisForCommit).\n\nThis endpoint reports the commit analyzed and a summary of the results for each language. Alternatively, you can use this identifier to download full details of all the alerts found by the analysis. For more information, see [Get detailed alert information](https://lgtm.com/help/lgtm/api/api-v1#opIdgetAlerts).\n" provider: lgtm method: GET path: "/analyses/{analysis-id}" encoding: json input: { type: "object" properties: { "analysis-id": { type: "string" } } required: ["analysis-id"] additionalProperties: false } output: { type: "object" properties: { "commit-id": { type: "string" description: "The commit identifier.\nThe commit identifier is included only if the same commit was successfully analyzed for all languages. A detailed breakdown of which commit was analyzed for each language is provided in the `languages` property.\n" } id: { type: "string" description: "The analysis identifier." } languages: { type: "array" description: "Per-language information." items: { type: "object" properties: { alerts: { type: "integer" format: "int32" description: "The number of alerts for this language." } "analysis-date": { type: "string" format: "date-time" description: "The time the commit was analyzed." } "commit-date": { type: "string" format: "date-time" description: "The time of the commit." } "commit-id": { type: "string" description: "The latest successfully analyzed commit for the language. All statistics refer to this commit." } language: { type: "string" description: "The short name for the language." } lines: { type: "integer" format: "int32" description: "The number of lines of code for this language." } status: { type: "string" description: "The status of the analysis of this language." enum: ["success", "failure", "pending"] } } } } "log-url": { type: "string" description: "A page on LGTM to view the logs for this analysis." } project: { type: "object" properties: { id: { type: "integer" format: "int64" description: "The numeric identifier of the project." } name: { type: "string" description: "The display name of the project." } url: { type: "string" description: "The full URL of the project on LGTM." } "url-identifier": { type: "string" description: "The URL identifier of the project." } } } "results-url": { type: "string" description: "A page on LGTM to view the results of this analysis." } } } }