WIP: ci: Add checks for ‘TODO’ in merge requests
Add a new ‘triage’ stage to the CI pipeline, which is executed before all others, and which does quick checks on the submitted source code before it’s built and the test suite is run.
Only one job exists in this stage at the moment, which is to reject commits which introduce instances of the string ‘TODO’. This is often used by developers to indicate a bit of a commit which needs further work, and hence which shouldn’t yet be merged.
Further jobs could be added to the stage in future. See #1552 for example.
Currently, if this triage fails, a merge request cannot be merged. If it
poses problematic in future, we could add the
allow_failure: true key
to the job in .gitlab-ci.yml to allow it to warn without failing a CI
Signed-off-by: Philip Withnall firstname.lastname@example.org