Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pull_request_dequeued.* metrics #1273

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vicyap
Copy link

@vicyap vicyap commented Oct 10, 2024

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

  • github.actions.pull_request_dequeued.total
  • github.actions.pull_request_dequeued.reason.${reason}_total.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant