Skip to content

Block merge requests which lower pajamas adoption

Mark Florian requested to merge block-mrs-which-lower-pajamas-adoption into master

What does this MR do and why?

This is an enhancement of Add Pajamas Adoption to Code Quality report (!141368 - merged).

This updates the pajamas_adoption job to allow it to block merge requests if they regress the adoption of the Pajamas Design System (See Implement merge request scanning and blocking f... (gitlab-org/frontend/pajamas-adoption-scanner!254 - merged)).

Unexpected errors cause it to exit with status 1, which will not block merge requests. An example of this would be when the merge request's source branch has more than 20 commits. This causes the scan to fail, but should not block the merge request.

Part of https://gitlab.com/gitlab-com/gitlab-OKRs/-/work_items/5345.

Example jobs

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

n/a

How to set up and validate locally

Check the linked example job logs.

Edited by Mark Florian

Merge request reports