Skip to content

Commit

Permalink
fix: log the raw message again
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed May 25, 2024
1 parent 6a89bd9 commit e2f5d6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,16 @@ export async function analyzeCommits(pluginConfig, context) {

return true;
})
.map((rawCommit) => ({
...rawCommit,
...parser.parse(rawCommit.message),
.map(({ message, ...commitProps }) => ({
rawMsg: message,
message,
...commitProps,
...parser.parse(message),
}))
);

for (const { message, ...commit } of filteredCommits) {
console.log(`Analyzing commit: %s`, message);
logger.log(`Analyzing commit: %s`, message);
for (const { rawMsg, ...commit } of filteredCommits) {
logger.log(`Analyzing commit: %s`, rawMsg);
let commitReleaseType;

// Determine release type based on custom releaseRules
Expand Down
2 changes: 1 addition & 1 deletion test/load-parser-config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ loadConfig.title = (providedTitle, config) => `${providedTitle} Load "${config}"
test('Load "conventional-changelog-angular" by default', async (t) => {
t.deepEqual(
await loadParserConfig({}, { cwd }),
(await (await import("conventional-changelog-angular")).default()).parserOpts
(await (await import("conventional-changelog-angular")).default()).parser
);
});

Expand Down

0 comments on commit e2f5d6c

Please sign in to comment.