Skip to content

Commit f4c2114

Browse files
committed
fix: shorten Dependabot titles that name a directory and a group
1 parent 645558f commit f4c2114

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/scripts/dependabot-pr-reminder/dependabot-title.mts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { escapeSlack } from '../shared/slack-blocks.mts';
55
// scope is captured to tell `deps-dev` from `deps`.
66
const PREFIX = String.raw`(?:[a-z]+(?:\(([^)]*)\))?!?:\s*)?`;
77
const PACKAGE = new RegExp(
8-
`^${PREFIX}bump\\s+(\\S+)\\s+from\\s+(\\S+)\\s+to\\s+(\\S+?)(?:\\s+in\\s+\\S+)?$`,
8+
`^${PREFIX}bump\\s+(\\S+)\\s+from\\s+(\\S+)\\s+to\\s+(\\S+?)(?:\\s+in\\s.*)?$`,
99
'iu',
1010
);
1111
const GROUP = new RegExp(

‎.github/scripts/tests/dependabot-pr-reminder/dependabot-title.test.mts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ describe('describeUpdate', () => {
1313
'`jsdom` 27.4.0 → 31.0.1 (dev)',
1414
],
1515
['Bump foo from 1.0.0 to 1.1.0 in /packages/a', '`foo` 1.0.0 → 1.1.0'],
16+
[
17+
'chore(deps): bump tar from 7.5.24 to 8.0.5 in /packages/foundryup in the npm_and_yarn group across 1 directory',
18+
'`tar` 7.5.24 → 8.0.5',
19+
],
1620
[
1721
'chore(deps): bump the external-non-major group across 1 directory with 7 updates',
1822
'`external-non-major` group, 7 updates',

0 commit comments

Comments
 (0)