From 978f75a8794e7003999d5634aa810196b7bbe767 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 15 Dec 2023 19:39:19 +0800 Subject: [PATCH] fix(notify): bug --- package-lock.json | 2 +- packages/notify/lib/utils.mjs | 12 ++++++++++++ packages/notify/package.json | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index faae577..0ac6a9d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6854,7 +6854,7 @@ }, "packages/notify": { "name": "@bring-it/notify", - "version": "0.1.3", + "version": "0.1.4", "license": "MIT", "devDependencies": { "mdast-util-to-markdown": "^2.1.0", diff --git a/packages/notify/lib/utils.mjs b/packages/notify/lib/utils.mjs index ae92a7f..1507b29 100644 --- a/packages/notify/lib/utils.mjs +++ b/packages/notify/lib/utils.mjs @@ -47,6 +47,7 @@ export function createContent({ manual = true, banner, isLatest = false, + image, }) { return toMarkdown({ type: 'root', @@ -125,6 +126,17 @@ export function createContent({ ], } : undefined, + image + ? { + type: 'listItem', + children: [ + { + type: 'text', + value: `镜像名称:${image}`, + }, + ], + } + : undefined, { type: 'listItem', children: [ diff --git a/packages/notify/package.json b/packages/notify/package.json index d8cc572..876c0b0 100644 --- a/packages/notify/package.json +++ b/packages/notify/package.json @@ -1,6 +1,6 @@ { "name": "@bring-it/notify", - "version": "0.1.3", + "version": "0.1.4", "description": "Send releases notifications", "license": "MIT", "author": {