- use different pen for write logs

- remove default value for configuration, to cleanly fallback to defaults
- rename gitHelper, move dir exists helper
- add reading input values group
- improve warning for configuration
This commit is contained in:
Mike Penz
2020-10-17 19:37:11 +02:00
parent 1e0f6ab49e
commit bd49950417
7 changed files with 78 additions and 76 deletions
+3 -3
View File
@@ -35,7 +35,7 @@ export function buildChangelog(
)
}
core.info(`️ Used ${validateTransfomers.length} transformers to adjust message`)
core.info(` Wrote messages for ${prs.length} pull requests`)
core.info(` Wrote messages for ${prs.length} pull requests`)
// bring PRs into the order of categories
const categorized = new Map<Category, string[]>()
@@ -76,13 +76,13 @@ export function buildChangelog(
changelog = `${changelog}\n`
}
}
core.info(` Wrote ${categorized.size} categorized pull requests down`)
core.info(` Wrote ${categorized.size} categorized pull requests down`)
let changelogUncategorized = ''
for (const pr of uncategorized) {
changelogUncategorized = `${changelogUncategorized + pr}\n`
}
core.info(` Wrote ${changelogUncategorized.length} non categorized pull requests down`)
core.info(` Wrote ${changelogUncategorized.length} non categorized pull requests down`)
// fill template
let transformedChangelog = config.template ?? DefaultConfiguration.template