Merge pull request #706 from mikepenz/feature/add_debug_logs
Expand debug logs by PRs in specific categories
This commit is contained in:
+15
@@ -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;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user