Skip to content

Commit

Permalink
Better MM message
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarreir committed Nov 22, 2024
1 parent 1eab20e commit ccaf567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from hatchling.builders.hooks.plugin.interface import BuildHookInterface

PACKAGE_EMOJI = ":books:"
PACKAGE_NAME = "panda-common"


def get_user():
Expand Down Expand Up @@ -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** |
Expand Down

0 comments on commit ccaf567

Please sign in to comment.