From 4d42d2663c4005b3a159f69cb60d7aad19a8305e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ma=C3=ABl=20Gramain?= <mael@enpls.org>
Date: Mon, 6 Jan 2025 21:47:43 +0100
Subject: [PATCH] comment on pr

---
 .woodpecker/lint.yml | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml
index 6f7b8ad..928939b 100644
--- a/.woodpecker/lint.yml
+++ b/.woodpecker/lint.yml
@@ -3,8 +3,22 @@ steps:
     image: python:3.12
     commands:
       - pip3 install -r .ci/requirements.txt
-      - python3 .ci/port_attribution_watcher.py
-      - python3 .ci/traefik_label_watcher.py
+      - python3 .ci/port_attribution_watcher.py | tee output.txt
+      - python3 .ci/traefik_label_watcher.py | tee output.txt
+  comment:
+      image: mcs94/gitea-comment
+      settings:
+        gitea_address: https://git.gnous.eu
+        gitea_token:
+          from_secret: gnous_cicd_token
+        commands:
+          - STEP_1_OUTPUT=$(cat output.txt)
+        comment: >
+          ✅ Build ${CI_BUILD_EVENT} of `${CI_REPO_NAME}` has status `${CI_BUILD_STATUS}`.
+
+          `${STEP_1_OUTPUT}`
+
+          🌐 ${CI_BUILD_LINK}
   lint:
     image: debian:stable
     commands: