Skip to content

Stream audit event on merge request approval

What does this MR do and why?

Stream audit events that relate to merge approval actions performed within a project.

How to set up and validate locally

  1. run rails console and execute below code to enter destination url
group = group.find 1 #replace with your group id here
destination_url = 'https://hsandhu.requestcatcher.com/events'
AuditEvents::ExternalAuditEventDestination.create(namespace_id: group.id, destination_url: destination_url)
  1. Run gdk start and open a project's merge request.
  2. Approve merge request.
  3. you can view audit event stream of approval action on https://hsandhu.requestcatcher.com/

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 #271162 (closed)

Edited by Harsimar Sandhu

Merge request reports