Pull Request Metrics

Snapshot DORA Metrics for a Pull Request

In addition to triggering workflows from Pull Request comments, you can also use the the CTO.ai GitHub App to run the /ops measure command on a GitHub PR comment, retrieve a snapshot of your team’s DORA Metrics pertaining to this Pull Request, and share it right within the conversation occurring on the PR.

Example `/ops measure` response in a GitHub Pull Request comment, showing a snapshot of the metrics for the current PR.
Example `/ops measure` response in a GitHub Pull Request comment, showing a snapshot of the metrics for the current PR.

About a minute after running the /ops measure command in a Pull Request comment, the CTO.ai bot will post a comment including a snapshot of your team’s DORA Metrics as they relate to the current Pull Request. This snapshot includes:

  • The Change Lead Time representing the time it took for these changes to be merged into the parent branch.
  • A Deployment Frequency metric describing how often this Pull Request was deployed over its lifetime.
  • The Change Failure Rate and Failed Deployment Recovery Time metrics, if applicable, describing the proportion of attempted deployments that failed and the time it took to recover from those failures.

Please note that, because the /ops measure command is designed to provide a snapshot of your team’s performance over the lifetime of a specific Pull Request, this command will not be available until after the Pull Request has already been merged.