How Swarmia links PRs to deployments
Linked PRs are used to calculate change lead time and time to deploy. The are also used to determine who owns the deployment.
Last updated
Was this helpful?
Linked PRs are used to calculate change lead time and time to deploy. The are also used to determine who owns the deployment.
Last updated
Was this helpful?
A can include one or more pull requests. These are used for two main purposes:
Calculating the and the metrics. If a deployment has no associated pull request, these two metrics will be unavailable.
Defining a deployment's ownership. Deployments are . A deployment without pull requests won't appear in any team's DORA metrics (but will be counted on the organization level).
Adding better visibility into your deployments. You can dig deeper into each deployment to see which changes (pull requests and the associated issues) were deployed to which environment and when.
When Swarmia receives a new deployment, we perform an automatic pull request detection for it. The PRs linked to a deployment are determined from the list of merge commits that occurred between the new deployment and the immediate previous deployment on the same application and same environment.
When using monorepos, we offer additional fields to help track deployments. You can read more here:
The logic to associate pull requests with deployments is quite similar when using the includedCommitShas
field () in the deployment payload, except that instead of using the git diff between the current deployment and the previous one, we will use only the commits provided in the payload.