1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-11 17:31:35 +02:00

feat: Add a changelog section type (#64)

This commit is contained in:
Lucas Holmquist
2020-09-10 14:13:49 -04:00
committed by GitHub
parent d38fe99d21
commit 2ca6d30396
4 changed files with 47 additions and 5 deletions

View File

@@ -11,6 +11,13 @@ async function main () {
const path = core.getInput('path') ? core.getInput('path') : undefined
const releaseType = core.getInput('release-type')
const token = core.getInput('token')
const changelogTypes = core.getInput('changelog-types');
// Parse the changelogTypes if there are any
let changelogSections = [];
if (changelogTypes) {
changelogSections = JSON.parse(changelogTypes);
}
// First we check for any merged release PRs (PRs merged with the label
// "autorelease: pending"):
@@ -40,7 +47,8 @@ async function main () {
repoUrl: process.env.GITHUB_REPOSITORY,
token: token,
label: RELEASE_LABEL,
bumpMinorPreMajor
bumpMinorPreMajor,
changelogSections
})
await release.run()
}