Automate LGTM specification
HumDay reads LGTM specification’s own published API description and derives 29 operations from it. Describe the outcome you want in plain words — you get a program that is written, proven on real data, and run for you.
What LGTM specification is
The REST API for LGTM provides data so that you can customize how you integrate LGTM analysis into your workflow. It includes the following resources: * `/` ([API root](https://lgtm.com/help/lgtm/api/api-v1#LGTM-API-specification-API-root))—get version information or download the specification in OpenAPI format. * `/projects` ([Projects](https://lgtm.com/help/lgtm/api/api-v1#LGTM-API-specifi
API host: lgtm.com
What HumDay can do in LGTM specification
10 documented operations change something in LGTM specification.
- POSTAdd a project to LGTM
/projects - POSTRun a CodeQL query on one or more projects
/queryjobs - DELETEAbort database upload process
/snapshots/uploads/{session-id} - POSTComplete snapshot upload session
/snapshots/uploads/{session-id} - PUTUpload snapshot
/snapshots/uploads/{session-id} - POSTStart snapshot upload session
/snapshots/{project-id}/{language} - POSTRun analysis of a specific commit
/analyses/{project-id} - DELETEDelete project by numeric identifier
/projects/{project-id} - POSTRun code review for a patch
/codereviews/{project-id} - PUTSet the administrator configuration for a project identified by numeric identifier
/projects/{project-id}/settings/analysis-configuration
What HumDay can read from LGTM specification
These are the operations a schedule or a trigger can watch.
- GETList projects
/projects - GETGet detailed alert information for an issue
/issues/{project-id}/{alert-key} - GETGet the status of a query job
/queryjobs/{queryjob-id} - GETVersion information
/ - GETAPI specification
/openapi - GETProvide a summary of results for the projects in the query job
/queryjobs/{queryjob-id}/results - GETGet a summary of the application's health
/system/health - GETGet the identifiers and descriptions of the usage metrics
/system/metrics - GETGet project by numeric identifier
/projects/{project-id} - GETGet analysis summary
/analyses/{analysis-id} - GETGet results of code review
/codereviews/{review-id} - GETGet operation status
/operations/{operation-id} - GETFetch the results of a query job for a specific project
/queryjobs/{queryjob-id}/results/{project-id} - GETGet the computed values of the specified metric
/system/metrics/{metric-id} - GETGet detailed alert information
/analyses/{analysis-id}/alerts - GETDownload a snapshot
/snapshots/{project-id}/{language} - GETGet configuration for a project identified by numeric identifier
/projects/{project-id}/settings/analysis-configuration - GETGet analysis summary for a specific commit
/analyses/{project-id}/commits/{commit-id} - GETGet project by URL identifier
/projects/{provider}/{org}/{name}
How automating LGTM specification works
- Describe the outcome. Say what you want to happen, in your own words. No node graphs, no field mapping.
- Approve the contract. HumDay writes down exactly what it will do, what it will touch, and what it will never do. You approve it before anything is built.
- See it proven. The program runs and shows you the result before it is allowed near your live LGTM specification account.
- Grant access, then go live. You approve the specific LGTM specification operations it may use — and only those.
Automate LGTM specification with these
- OData for namespace microsoft.graph11412 operations
- GitHub811 operations
- Atlassian The Jira Cloud platform474 operations
- Gitlab358 operations
- JIRA 7.6.1324 operations
- Appcenter App Center Client323 operations
- Gitea .321 operations
- Bitbucket292 operations
- Keycloak Admin281 operations
- Apple App Store Connect251 operations
- Files.com222 operations
- Vmware vRealize Network Insight Reference161 operations
Categories
Questions about LGTM specification automation
- Can HumDay connect to LGTM specification?
- Yes. HumDay reads LGTM specification's own published API description and derives the operations from it, so there is no hand-built connector to wait for. 29 operations are documented.
- Do I need to write code to automate LGTM specification?
- No. You describe the outcome you want in plain words. HumDay agrees a contract with you, writes the program, and shows you a test run before anything touches your LGTM specification account.
- What can HumDay do in LGTM specification?
- 10 of the 29 documented operations change something in LGTM specification, and 19 read from it. HumDay only ever uses the specific operations your approved contract needs.
- Is my LGTM specification account safe?
- Your credentials are stored encrypted and are never shown in chat, code, or logs. Every run is limited to the operations you explicitly approved, and anything that writes to LGTM specification is held behind that approval.
Where this came from
The operations above are read from a published API description for LGTM specification at lgtm.com/api/v1.0/openapi. Descriptions are the provider’s own words, not ours. Last published 2021-06-21.