- 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
+15
View File
@@ -185,6 +185,11 @@ export function buildChangelog(
}
}
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 = ''
@@ -194,12 +199,22 @@ export function buildChangelog(
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