From 43e9e6f25e51086520950bfc797574a06cab12fd Mon Sep 17 00:00:00 2001 From: Serreau Jovann Date: Wed, 28 Jan 2026 16:02:57 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(GitSyncLog):=20Ajoute=20des=20?= =?UTF-8?q?ic=C3=B4nes=20Discord=20dynamiques=20selon=20le=20type=20de=20c?= =?UTF-8?q?ommit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Command/GitSyncLogCommand.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Command/GitSyncLogCommand.php b/src/Command/GitSyncLogCommand.php index 4c5ae79..0266042 100644 --- a/src/Command/GitSyncLogCommand.php +++ b/src/Command/GitSyncLogCommand.php @@ -116,8 +116,20 @@ class GitSyncLogCommand extends Command // 6. Envoi Discord try { - $discordMessage = "📢 **Mise à jour sera prochaine mise en ligne sur votre intranet**\n\n> " . $friendlyMessage; + $icons = [ + 'feature' => '🚀 **Nouveauté**', + 'fix' => '🛠️ **Correction**', + 'optimise' => '⚡ **Optimisation**', + 'new' => '✨ **Mise à jour**', + ]; + $selectedIcon = $icons[$type] ?? $icons['new']; + + $discordMessage = sprintf( + "%s\n📢 *Mise à jour en cours de mise en ligne sur votre intranet*\n\n> %s", + $selectedIcon, + $friendlyMessage + ); $this->httpClient->request('POST', $discordWebhook, [ 'json' => ['content' => $discordMessage] ]);