Skip to content

Draft: CI: Add Danger automated checker

Daniel Stone requested to merge daniels/weston:add-danger-mr-check into main

Danger is an extensible automated checker for merge requests. The rules are defined locally by code: it can inspect the current MR changes and perform any action based on whatever criteria you define.

Start using Danger here to automatically apply labels based on the files which have been changed.

There are two versions of Danger; one written in Ruby, and the other in JavaScript. We are using the original Ruby version, as the JavaScript one only supports GitHub and not GitLab.


At the moment, Danger is only applying labels. There are a few other plugins I'd like to enable though, like commit-lint (commit messages), todoist (highlight any added TODOs in the code), etc. There's also a first-contributor plugin which only works with GitHub, but adapting that to GitLab and having it provide a customised message for people submitting their first MR would be cool, I think.

I've taken the liberty of giving Danger access to the repo, so if this all goes to plan, then it will add a 'CI' label to this MR.

Edited by Daniel Stone

Merge request reports