Prevent Merge from unexpected tickets
Based on Milestone tags from ticket, add a CI check (master merge only) that fails if the ticket milestone does not match the GITLAB CI global variable CURRENT_MILESTONE
(for example, it has to be created in Variable
section of https://gitlab.com/systerel/S2OPC/-/settings/ci_cd).
The CURRENT_MILESTONE
variable must be updated after each tagged version (This should be added as part of the delivery process, so as to avoid mistakes after a new tagged version)
It must also be checked if it is possible to include a check that prevent merges related on invalid issues reference (closed, bad milestone,... TBD)
After review with VMO:
-
keep "open" check but made it optional. Currently disabled in the CI ( -o
option) -
Removed Milestone (kept as optional: if present it must be matching) and label checks on MR -
Removed unicity of MR in ticket references -
moved job to "doc" pipeline -
Add Milestone check in ticket
Edited by Jérémie Chabod