Make MR not mergeable if License Compliance has found denied licenses
This is a part of #196845 (closed)
If MR has successfully finished
license_scanning job and some
denied licenses are found, we need to prevent merging of Merge Request.
- Hide all work behind feature flag
- Define if MR has
LicenseScanningReportLicenseEntityfor the reference)
- Add a field
EE::MergeRequestPollCachedWidgetEntitywith value found on previous step.
MergeRequestobject state to not mergeable if denied licenses are found. Keep in mind that this is EE feature and work should be done in
eedirectory. This step can be dangerous so it requires thorough testing.