API Reference
Devbox
- The Devbox Object
- Devbox Lifecycle
- Devbox File Tools
- Devbox Shell Tools
- Devbox Network Tools
- Devbox Persistence Tools
- Devbox Observability Tools
- Devbox Add-ons
Blueprint
- The Blueprint Object
- Blueprint Lifecycle
- Blueprint Observability
Repository
- The Repository Object
- Repository Lifecycle
Code Scenario
- Code Scenario Lifecycle
- Scenarios Runs
- Custom Scenario Scorer
- Public Scenarios
Benchmark
- Benchmark Lifecycle
- Benchmark Runs
- Public Benchmarks
Repository Lifecycle
List analyzed repository versions.
Repository Lifecycle
List analyzed repository versions.
List all analyzed versions of a repository connection including automatically generated insights for each version.
GET
/
v1
/
repositories
/
{id}
/
versions
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
async function main() {
const repositoryVersionListView = await client.repositories.versions('id');
console.log(repositoryVersionListView.analyzed_versions);
}
main();
{
"analyzed_versions": [
{
"commit_sha": "<string>",
"analyzed_at": 123,
"repository_setup_details": {
"blueprint_id": "<string>",
"env_initialization_command": "<string>",
"workspace_setup": [
"<string>"
]
},
"extracted_tools": {
"package_manager": "<string>",
"commands": {}
},
"status": "inspecting"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Repo Connection ID
Response
200 - application/json
OK
List of analyzed versions of this repository.
The sha of the analyzed version of the Repository.
Analyzed time of the Repository Version (Unix timestamp milliseconds).
Commands required to set up repository environment.
The blueprint built that supports setting up this repository.
Command to initialize the env we need to run the commands for this repository.
Setup commands necessary to support repository i.e. apt install XXX.
Tools discovered during inspection.
The account owner of the Repository.
Available options:
inspecting
, inspection_failed
, success
Was this page helpful?
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
async function main() {
const repositoryVersionListView = await client.repositories.versions('id');
console.log(repositoryVersionListView.analyzed_versions);
}
main();
{
"analyzed_versions": [
{
"commit_sha": "<string>",
"analyzed_at": 123,
"repository_setup_details": {
"blueprint_id": "<string>",
"env_initialization_command": "<string>",
"workspace_setup": [
"<string>"
]
},
"extracted_tools": {
"package_manager": "<string>",
"commands": {}
},
"status": "inspecting"
}
]
}