int128 / datadog-actions-metrics

Send GitHub Actions metrics to Datadog for developer experience
Apache License 2.0
66 stars 22 forks source link

Add `pull_request_dequeued.*` metrics #1273

Closed vicyap closed 2 weeks ago

vicyap commented 1 month ago

This PR adds metrics to capture pull request dequeued events.

When a pull request is dequeued, it could be for a variety of reasons. The reasons are (UNKNOWN_REMOVAL_REASON, MANUAL, MERGE, MERGE_CONFLICT, CI_FAILURE, CI_TIMEOUT, ALREADY_MERGED, QUEUE_CLEARED, ROLL_BACK, BRANCH_PROTECTIONS, GIT_TREE_INVALID, INVALID_MERGE_COMMIT).

I would like to count how often a pull requests is dequeued for reasons like CI_FAILURE.

Adds

Docs: https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=dequeued#pull_request

int128 commented 2 weeks ago

Thank you for the contribution!