From 61f76548bcf8a7c9313ba29b3af6be01564fb127 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 11 Jun 2020 15:17:33 +0200 Subject: [PATCH] ci: check commit using ci-fairy See https://freedesktop.pages.freedesktop.org/ci-templates/ci-fairy.html#checking-commits In this setup it will check for any leftover fixup!/squash! commits and that messages don't have the 'Signed-off-by:' tag. --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4838d7f0..e7c5948f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -157,6 +157,14 @@ rustfmt: - cargo fmt --version - cargo fmt -- --color=always --check +check commits: + extends: .img-stable + stage: "lint" + rules: + - when: 'always' + script: + - ci-fairy check-commits --textwidth 0 --no-signed-off-by + clippy: extends: .img-stable stage: 'extras'