Skip to content

Count merged merge requests using approval rules

What does this MR do and why?

Implements service ping for Count merged merge requests using approval rules monthly.

How to set up and validate locally

  1. Create Approval Rules for a project by going in Project -> Settings -> Merge request Settings -> Approval rules
  2. Create MR and merge it
  3. run rails console and run below snippet
 payload = ServicePing::BuildPayload.new.execute
 puts payload["usage_activity_by_stage_monthly"]["govern"]["merged_merge_requests_using_approval_rules_distinct"]
  1. it should have correct data.
  2. You can also enter fake data in database and check if data generated is corrected.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #382739 (closed)

Edited by Harsimar Sandhu

Merge request reports