DeploymentDriftResponse
How far each of a service's current deployments is behind its repository's default branch.
Shape
rowsarray of DeploymentDriftRow
- The DeploymentDriftRow schema
- default_branchstring
- deployed_shastring
environmentEnvironmentSummary
- The EnvironmentSummary schema
- archivedboolean
- environment_idEnvironmentId (string · uuid)
- scopeScopeRef
- slugEnvironmentSlug (string)
- tierEnvironmentTierdevelopmenttestingstagingproductionWhat kind of environment this is, whatever it is called:
development,testing,stagingorproduction. Aproductionenvironment is protected by default. - display_namestring or nulloptional
- urlstring or nulloptional
- repository_idRepositoryId (string · uuid)
- repository_pathstring
commitsarray of DriftCommitoptionalThe commits the deployment is missing, at most 100. When there are more,
truncatedistrueandcommits_behindstill gives the full count.- The DriftCommit schema
- authored_atstring
- messagestring
- shastring
authorActorSummary or nulloptional
- The ActorSummary schema
- emailstring
- idstring
- usernamestring
- avatar_urlstring or nulloptional
- commits_behindinteger · int32 or nulloptional0–∞How many commits the default branch has that the deployed commit does not. Absent when the deployed commit can no longer be read, for example after a force-push.
- truncatedbooleanoptional
- service_idServiceId (string · uuid)
Example
Synthesized example{
"rows": [
{
"default_branch": "main",
"deployed_sha": "9b5205165d494a0ea9f41b25dbc082e3f68e832a",
"environment": {
"archived": false,
"environment_id": "3d7865e0-cfd0-479e-bc02-46a1f848a6f5",
"scope": {
"group": "4c1d8e2f-6a3b-4f90-b7c5-1e2d3c4b5a69"
},
"slug": "slug-5a29",
"tier": "development"
},
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"repository_path": "repository-path-8556"
}
],
"service_id": "1e0da8b4-e4fe-40da-865f-15b777d81bb9"
}
Graph
Used inside
No schema contains this one.
Contains
Used by
Sent by 0 operations
No operation takes it as a request body.
Returned by 1 operation