Skip to content

Commit e2f5d6c

Browse files
committedMay 25, 2024··
fix: log the raw message again
1 parent 6a89bd9 commit e2f5d6c

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed
 

‎index.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,16 @@ export async function analyzeCommits(pluginConfig, context) {
4242

4343
return true;
4444
})
45-
.map((rawCommit) => ({
46-
...rawCommit,
47-
...parser.parse(rawCommit.message),
45+
.map(({ message, ...commitProps }) => ({
46+
rawMsg: message,
47+
message,
48+
...commitProps,
49+
...parser.parse(message),
4850
}))
4951
);
5052

51-
for (const { message, ...commit } of filteredCommits) {
52-
console.log(`Analyzing commit: %s`, message);
53-
logger.log(`Analyzing commit: %s`, message);
53+
for (const { rawMsg, ...commit } of filteredCommits) {
54+
logger.log(`Analyzing commit: %s`, rawMsg);
5455
let commitReleaseType;
5556

5657
// Determine release type based on custom releaseRules

‎test/load-parser-config.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ loadConfig.title = (providedTitle, config) => `${providedTitle} Load "${config}"
3838
test('Load "conventional-changelog-angular" by default', async (t) => {
3939
t.deepEqual(
4040
await loadParserConfig({}, { cwd }),
41-
(await (await import("conventional-changelog-angular")).default()).parserOpts
41+
(await (await import("conventional-changelog-angular")).default()).parser
4242
);
4343
});
4444

0 commit comments

Comments
 (0)
Please sign in to comment.