code-pull-requestGenerate deployments from merged pull requests

The simplest proxy for deployments is to assume a merged pull request is immediately deployed.

Looking to get started with DORA metrics? Tracking how often a team deploys and the quality of these deploys is often not a trivial task. It's difficult to get a perfect solution right away, and often it's better to aim for a solution as the first step.

PR merge based deployments are only supported if you directly merge to the selected deploy branch. If you have automation that initiates deploys without pull requests based on a single branch, then you need to use GitHub checksarrow-up-right or the Deployments APIarrow-up-right to inform Swarmia about deployments.

We backfill deployment data for the past 90 days.

Limitations

Using PR merges as the deployment source has the following limitations:

Configuration

Deploymentsarrow-up-right can use Pull Request merges as the input data.

  1. Select "Pull request merge creates a deploy" as the Deployment source.

  2. Select repository

  3. Select the branch (or branch prefix) that most accurately represents your production deployment events. You can give this environment a name, although we recommend "production".

  4. Optional: Add more environments based on the branch name or prefix. This allows you to view deployments from different environments on the Metrics → DORA → Deploymentsarrow-up-right page.

  5. Confirm the amount of deployment data to be created, and Save.

Last updated

Was this helpful?