Skip to content

Commit

Permalink
Merge pull request #1793 from intuit/conventional-logs
Browse files Browse the repository at this point in the history
add more logging to conventional commits
  • Loading branch information
hipstersmoothie committed Feb 11, 2021
2 parents bac2eaf + f7b79e8 commit 5828f13
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/conventional-commits/src/index.ts
Expand Up @@ -200,7 +200,8 @@ export default class ConventionalCommitsPlugin implements IPlugin {
}

try {
const label = await getBump(`${commit.subject}\n\n${commit.rawBody}`);
const message = `${commit.subject}\n\n${commit.rawBody}`;
const label = await getBump(message);

if (!label) {
return commit;
Expand All @@ -220,6 +221,10 @@ export default class ConventionalCommitsPlugin implements IPlugin {
incrementLabel &&
!commit.labels.some((l) => allSemVerLabels.includes(l))
) {
auto.logger.verbose.log(
`Found "${label}" from conventional commit message: ${message}`
);

commit.labels = [...commit.labels, incrementLabel[0]];
}
} catch (error) {
Expand Down

0 comments on commit 5828f13

Please sign in to comment.