Use gitlab-dangerfiles to improve MR hygiene
🎩 Context
Work type labels are used to evaluate the type of work the team is doing. This information is used to understand the where are we investing, where to put more resources, how to plan for new features etc.
If MRs and issues are missing these labels, the analysis and plan is not accurate, and in fact, very hard to do.
🔥 Problem
By looking at merged MRs (dashboard) with no type label for the ~"group::package" we identified the majority of them are in gitlab-org/container-registry
project.
🚒 Solution / Proposal
One thing that we can do to get ahead of the Q2 efforts of the Engineering Productivity team is to add danger-review
to the MR pipelines similar to gitlab-shell!583 (merged) which will warn (and potentially error in the future) when a merge request is missing a type label.
🧯 Expectations
For new MRs in this project, a warn should fire for missing work type labels