From ccaf567130433a261a57bcb2d93b227846912622 Mon Sep 17 00:00:00 2001 From: Fernando Barreiro Date: Fri, 22 Nov 2024 14:14:23 +0100 Subject: [PATCH] Better MM message --- package/hatch_build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/hatch_build.py b/package/hatch_build.py index dffe937..1391181 100644 --- a/package/hatch_build.py +++ b/package/hatch_build.py @@ -10,6 +10,7 @@ from hatchling.builders.hooks.plugin.interface import BuildHookInterface PACKAGE_EMOJI = ":books:" +PACKAGE_NAME = "panda-common" def get_user(): @@ -70,7 +71,7 @@ def mm_notification(): # On the repository name we enter an empty space to prevent the URLs to preview on Mattermost # We shorten the commit hash to the first seven characters, as they are usually enough to identify a commit mm_message = { - "text": f"{PACKAGE_EMOJI}**Package upgrade on:** `{server_name}` by `{user}`.", + "text": f"{PACKAGE_EMOJI}**{PACKAGE_NAME}@{branch_name} upgrade on:** `{server_name}` by `{user}`.", "props": { "card": f""" | **Property** | **Value** |