Merge pull request #706 from mikepenz/feature/add_debug_logs

Expand debug logs by PRs in specific categories
This commit is contained in:
Mike Penz
2022-03-16 12:49:55 +01:00
committed by GitHub
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`); 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); core.setOutput('categorized_prs', categorizedPrs.length);
let changelogUncategorized = ''; let changelogUncategorized = '';
for (const pr of uncategorizedPrs) { for (const pr of uncategorizedPrs) {
changelogUncategorized = `${changelogUncategorized + pr}\n`; changelogUncategorized = `${changelogUncategorized + pr}\n`;
} }
core.info(`✒️ Wrote ${uncategorizedPrs.length} non categorized pull requests down`); 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); core.setOutput('uncategorized_prs', uncategorizedPrs.length);
let changelogIgnored = ''; let changelogIgnored = '';
for (const pr of ignoredPrs) { for (const pr of ignoredPrs) {
changelogIgnored = `${changelogIgnored + pr}\n`; changelogIgnored = `${changelogIgnored + pr}\n`;
} }
if (core.isDebug()) {
for (const pr of ignoredPrs) {
core.debug(` ${pr}`);
}
}
core.info(`✒️ Wrote ${ignoredPrs.length} ignored pull requests down`); core.info(`✒️ Wrote ${ignoredPrs.length} ignored pull requests down`);
// fill template // fill template
let transformedChangelog = config.template || configuration_1.DefaultConfiguration.template; let transformedChangelog = config.template || configuration_1.DefaultConfiguration.template;
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+15
View File
@@ -185,6 +185,11 @@ export function buildChangelog(
} }
} }
core.info(`✒️ Wrote ${categorizedPrs.length} categorized pull requests down`) 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) core.setOutput('categorized_prs', categorizedPrs.length)
let changelogUncategorized = '' let changelogUncategorized = ''
@@ -194,12 +199,22 @@ export function buildChangelog(
core.info( core.info(
`✒️ Wrote ${uncategorizedPrs.length} non categorized pull requests down` `✒️ 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) core.setOutput('uncategorized_prs', uncategorizedPrs.length)
let changelogIgnored = '' let changelogIgnored = ''
for (const pr of ignoredPrs) { for (const pr of ignoredPrs) {
changelogIgnored = `${changelogIgnored + pr}\n` changelogIgnored = `${changelogIgnored + pr}\n`
} }
if (core.isDebug()) {
for (const pr of ignoredPrs) {
core.debug(` ${pr}`)
}
}
core.info(`✒️ Wrote ${ignoredPrs.length} ignored pull requests down`) core.info(`✒️ Wrote ${ignoredPrs.length} ignored pull requests down`)
// fill template // fill template