From 10df3fea69a4cb51569775d97ae7188cf13deb6e Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 21 Dec 2023 17:55:42 +0800 Subject: [PATCH] fix(notify): bug --- packages/notify/lib/utils.mjs | 24 +++++++++++------------- packages/notify/package.json | 2 +- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/packages/notify/lib/utils.mjs b/packages/notify/lib/utils.mjs index c02d1ef..e8eb7b8 100644 --- a/packages/notify/lib/utils.mjs +++ b/packages/notify/lib/utils.mjs @@ -122,19 +122,17 @@ function getCommits() { : sortBy( Object.entries( groupBy( - gitlog - .default({ - repo: '.', - since: GIT_PREVIOUS_COMMIT, - until: GIT_COMMIT, - fields: ['hash', 'abbrevHash', 'subject'], - }) - .map(({ abbrevHash, hash, subject }) => ({ - hash, - abbrevHash, - message: sync(subject), - subject, - })), + gitlog({ + repo: '.', + since: GIT_PREVIOUS_COMMIT, + until: GIT_COMMIT, + fields: ['hash', 'abbrevHash', 'subject'], + }).map(({ abbrevHash, hash, subject }) => ({ + hash, + abbrevHash, + message: sync(subject), + subject, + })), ({ message }) => message.type, ), ), diff --git a/packages/notify/package.json b/packages/notify/package.json index 4918c21..1ace30f 100644 --- a/packages/notify/package.json +++ b/packages/notify/package.json @@ -1,6 +1,6 @@ { "name": "@bring-it/notify", - "version": "0.2.1", + "version": "0.2.2", "description": "Send releases notifications", "license": "MIT", "author": {