1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-13 09:21:37 +02:00

fix: default changelog sections to undefined

This commit is contained in:
bcoe
2020-09-17 12:54:13 -07:00
parent 8f40d8e788
commit 31e1a25ccf
3 changed files with 155 additions and 158 deletions

View File

@@ -7,7 +7,7 @@ jobs:
release-please: release-please:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: GoogleCloudPlatform/release-please-action@3eee20cf311ef238a2220fb57f5b70ce72efa4dd - uses: GoogleCloudPlatform/release-please-action@2.2.0
with: with:
token: ${{ secrets.RELEASE_PR_TOKEN }} token: ${{ secrets.RELEASE_PR_TOKEN }}
release-type: node release-type: node

5
dist/index.js vendored
View File

@@ -2237,7 +2237,7 @@ async function main () {
const changelogTypes = core.getInput('changelog-types') const changelogTypes = core.getInput('changelog-types')
// Parse the changelogTypes if there are any // Parse the changelogTypes if there are any
let changelogSections = [] let changelogSections = undefined
if (changelogTypes) { if (changelogTypes) {
changelogSections = JSON.parse(changelogTypes) changelogSections = JSON.parse(changelogTypes)
} }
@@ -41220,7 +41220,6 @@ class Node extends release_pr_1.ReleasePR {
sha: latestTag ? latestTag.sha : undefined, sha: latestTag ? latestTag.sha : undefined,
path: this.path, path: this.path,
}); });
console.info(`SECTIONS ${this.changelogSections}`);
const cc = new conventional_commits_1.ConventionalCommits({ const cc = new conventional_commits_1.ConventionalCommits({
commits, commits,
githubRepoUrl: this.repoUrl, githubRepoUrl: this.repoUrl,
@@ -41233,8 +41232,6 @@ class Node extends release_pr_1.ReleasePR {
currentTag: `v${candidate.version}`, currentTag: `v${candidate.version}`,
previousTag: candidate.previousTag, previousTag: candidate.previousTag,
}); });
console.info(commits);
console.info(`CHANGELOG = ${changelogEntry}`);
// don't create a release candidate until user facing changes // don't create a release candidate until user facing changes
// (fix, feat, BREAKING CHANGE) have been made; a CHANGELOG that's // (fix, feat, BREAKING CHANGE) have been made; a CHANGELOG that's
// one line is a good indicator that there were no interesting commits. // one line is a good indicator that there were no interesting commits.

View File

@@ -15,7 +15,7 @@ async function main () {
const changelogTypes = core.getInput('changelog-types') const changelogTypes = core.getInput('changelog-types')
// Parse the changelogTypes if there are any // Parse the changelogTypes if there are any
let changelogSections = [] let changelogSections = undefined
if (changelogTypes) { if (changelogTypes) {
changelogSections = JSON.parse(changelogTypes) changelogSections = JSON.parse(changelogTypes)
} }