Skip to content

Return early if user is already approved the merge request

What does this MR do and why?

  • Added already_approved_by?(user) method to Merge Request model to check if given user has any approvals.
  • In drafts controller, returns early if merge request is already approved by the user.

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

Edited by Batuhan Wilhelm

Merge request reports