From 015192d0f491bdc9ff90c45c0250484bf0a88f92 Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Tue, 5 Sep 2023 21:54:49 +0200
Subject: [PATCH] ci: Trigger pre-commit:hooks job when *.md file changes

Specially for mdformat hook
---
 .gitlab-ci.yml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 58f6635..6c6fd74 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,6 +16,13 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
       - "**.py"
       - .pre-commit-config.yaml
 
+.doc_changes:
+  rules:
+    - changes:
+      - "**.py"
+      - "**.md"
+      - .pre-commit-config.yaml
+
 .changes:
   rules:
     - changes:
@@ -79,7 +86,7 @@ mypy:
 
 pre-commit:hooks:
   extends:
-    - .code_changes
+    - .doc_changes
     - .pre-commit
   stage: checks
   script:
-- 
GitLab