- add additional debug logs to help identify which prs ended up in which category

This commit is contained in:
Mike Penz
2022-03-15 08:44:58 +01:00
parent e566ac58d7
commit 23e9b5fc5a
3 changed files with 31 additions and 1 deletions
Generated Vendored
+15
View File
@@ -1323,17 +1323,32 @@ function buildChangelog(prs, options) {
}
}
core.info(`✒️ Wrote ${categorizedPrs.length} categorized pull requests down`);
if (core.isDebug()) {
for (const pr of categorizedPrs) {
core.debug(` ${pr}`);
}
}
core.setOutput('categorized_prs', categorizedPrs.length);
let changelogUncategorized = '';
for (const pr of uncategorizedPrs) {
changelogUncategorized = `${changelogUncategorized + pr}\n`;
}
core.info(`✒️ Wrote ${uncategorizedPrs.length} non categorized pull requests down`);
if (core.isDebug()) {
for (const pr of uncategorizedPrs) {
core.debug(` ${pr}`);
}
}
core.setOutput('uncategorized_prs', uncategorizedPrs.length);
let changelogIgnored = '';
for (const pr of ignoredPrs) {
changelogIgnored = `${changelogIgnored + pr}\n`;
}
if (core.isDebug()) {
for (const pr of ignoredPrs) {
core.debug(` ${pr}`);
}
}
core.info(`✒️ Wrote ${ignoredPrs.length} ignored pull requests down`);
// fill template
let transformedChangelog = config.template || configuration_1.DefaultConfiguration.template;