From 12c1689aaaf307feb50f465565f6d752f16a1b0e Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 11 Jun 2020 14:45:24 +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. Part-of: --- gitlab/ci_template.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gitlab/ci_template.yml b/gitlab/ci_template.yml index 788d960e61..e09faa8bbe 100644 --- a/gitlab/ci_template.yml +++ b/gitlab/ci_template.yml @@ -1,3 +1,6 @@ +include: + - remote: "https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/7ea696055e322cc7aa4bcbe5422b56a198c4bdff/templates/ci-fairy.yml" + stages: - 'build docker' - 'preparation' @@ -388,6 +391,18 @@ gst indent: exit 1 fi +# +# Check commit messages with ci-fairy +# +check commits: + extends: '.fdo.ci-fairy' + needs: [] + stage: 'preparation' + variables: + GIT_STRATEGY: 'fetch' + script: + - ci-fairy check-commits --textwidth 0 --no-signed-off-by + # # gst-build setup templates #