From 69a5174f5f716aa9ec8c0833bd4783de0f8fda94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Wed, 23 Apr 2025 22:09:13 +0200 Subject: [PATCH] ci: Add ci-fairy check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes sure we have Signed-off-by: Signed-off-by: Guido Günther --- .gitlab-ci.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1f50acd..a1c6749 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,6 @@ --- include: - - remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/34039cd573a2df832d465bc9e4c5f543571f5241/templates/ci-fairy.yml' + - remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/6a40df92957c8ce9ee741aaccc5daaaf70545b1e/templates/ci-fairy.yml' - remote: 'https://gitlab.gnome.org/guidog/meta-phosh/-/raw/0ed15edd821f8afacbf7a9c0f2a6266873289115/ci/phosh-common-jobs.yml' stages: @@ -9,6 +9,9 @@ stages: - style-checks - package +variables: + FDO_UPSTREAM_REPO: agx/feedbackd + workflow: rules: - if: $CI_PIPELINE_SOURCE == 'merge_request_event' @@ -104,3 +107,18 @@ check-meson: extends: - .phosh-check-meson +# Sanity checks of MR settings and commit logs +check-commit-log: + extends: + - .fdo.ci-fairy + stage: style-checks + variables: + GIT_DEPTH: "100" + needs: [] + script: | + ci-fairy check-commits --signed-off-by --junit-xml=commit-message-junit-report.xml + artifacts: + reports: + junit: commit-message-junit-report.xml + rules: + - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'