From 7866db7cbb7b375c2862cc16134cb8caabd24e82 Mon Sep 17 00:00:00 2001 From: Wonder Date: Mon, 13 Oct 2025 15:07:26 +0800 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=94=A7Chore:=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/hezhaohui/webhook/controller/HookController.java | 1 + .../java/cn/hezhaohui/webhook/service/HookService.java | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/gitea-webhook/src/main/java/cn/hezhaohui/webhook/controller/HookController.java b/gitea-webhook/src/main/java/cn/hezhaohui/webhook/controller/HookController.java index fc509de..897581a 100644 --- a/gitea-webhook/src/main/java/cn/hezhaohui/webhook/controller/HookController.java +++ b/gitea-webhook/src/main/java/cn/hezhaohui/webhook/controller/HookController.java @@ -23,6 +23,7 @@ public class HookController { @PostMapping public ResponseEntity handlePush(@RequestBody GiteaPushEvent event) { log.info(event.toString()); + log.info("\n============================\n"); hookService.handlePush(event); return ResponseEntity.ok("Ciallo~(∠・ω< )⌒★"); } diff --git a/gitea-webhook/src/main/java/cn/hezhaohui/webhook/service/HookService.java b/gitea-webhook/src/main/java/cn/hezhaohui/webhook/service/HookService.java index f3219c7..a9be9ee 100644 --- a/gitea-webhook/src/main/java/cn/hezhaohui/webhook/service/HookService.java +++ b/gitea-webhook/src/main/java/cn/hezhaohui/webhook/service/HookService.java @@ -3,12 +3,14 @@ package cn.hezhaohui.webhook.service; import cn.hezhaohui.lark.entity.CardData; import cn.hezhaohui.lark.util.Lark; import cn.hezhaohui.webhook.entity.GiteaPushEvent; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.List; import java.util.stream.Stream; @Service +@Slf4j public class HookService { public void handlePush(GiteaPushEvent event) { @@ -28,6 +30,11 @@ public class HookService { .flatMap(commit -> commit.getModified().stream()) .toList(); + log.info("commitMsgList: {}\n", commitMsgList); + log.info("addedFiles: {}\n", addedFiles); + log.info("removedFiles: {}\n", removedFiles); + log.info("modifiedFiles: {}\n", modifiedFiles); + // TODO: 调用 AI 模块 CardData cardData = CardData.builder()