From 469f9f43947b644322a3fbddae91fe5ffa06f3d2 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 16 Oct 2024 17:05:50 +0800 Subject: [PATCH] feat(notify): more than 10 log --- packages/notify/lib/utils.mjs | 4 ++-- packages/notify/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/notify/lib/utils.mjs b/packages/notify/lib/utils.mjs index f27408c..e31c173 100644 --- a/packages/notify/lib/utils.mjs +++ b/packages/notify/lib/utils.mjs @@ -1,5 +1,6 @@ import { createRequire } from 'node:module'; +import { http } from '@bring-it/utils/index.mjs'; // eslint-disable-next-line import/no-unresolved import { CommitParser } from 'conventional-commits-parser'; import { clean } from 'fast-clean'; @@ -9,8 +10,6 @@ import sortBy from 'lodash/sortBy.js'; import { toMarkdown } from 'mdast-util-to-markdown'; import semverPrerelease from 'semver/functions/prerelease.js'; -import { http } from '@bring-it/utils/index.mjs'; - const { BRANCH_NAME, CCI_JOB_NAME, @@ -128,6 +127,7 @@ async function getlog(from, to) { return gitlog({ repo: process.cwd(), + number: 100, branch: `${from}...${to}`, fields: ['hash', 'abbrevHash', 'subject'], }); diff --git a/packages/notify/package.json b/packages/notify/package.json index d31f5b4..2eee4f6 100644 --- a/packages/notify/package.json +++ b/packages/notify/package.json @@ -1,6 +1,6 @@ { "name": "@bring-it/notify", - "version": "0.3.16", + "version": "0.3.17", "description": "Send releases notifications", "license": "MIT", "author": {