Skip to content

Fixes approval rules not loading correctly for forks

Phil Hughes requested to merge ph/339918/fixForkApprovalRulesApiRequest into master

What does this MR do and why?

Fixes a bug where the appoval rules API request would send the incorrect branch name for merge requests from forks.

It would previously send it formatted like PROJECT_NAMESPACE:TARGET_BRANCH in the API request which would not load the correct data. This changes that to only send TARGET_BRANCH

Screenshots or screen recordings

How to set up and validate locally

MR acceptance checklist

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

Closes #339918 (closed)

Merge request reports