mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-14 08:11:39 +02:00
fix: default changelog sections to undefined
This commit is contained in:
2
.github/workflows/release-please.yaml
vendored
2
.github/workflows/release-please.yaml
vendored
@@ -7,7 +7,7 @@ jobs:
|
||||
release-please:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: GoogleCloudPlatform/release-please-action@3eee20cf311ef238a2220fb57f5b70ce72efa4dd
|
||||
- uses: GoogleCloudPlatform/release-please-action@2.2.0
|
||||
with:
|
||||
token: ${{ secrets.RELEASE_PR_TOKEN }}
|
||||
release-type: node
|
||||
|
||||
5
dist/index.js
vendored
5
dist/index.js
vendored
@@ -2237,7 +2237,7 @@ async function main () {
|
||||
const changelogTypes = core.getInput('changelog-types')
|
||||
|
||||
// Parse the changelogTypes if there are any
|
||||
let changelogSections = []
|
||||
let changelogSections = undefined
|
||||
if (changelogTypes) {
|
||||
changelogSections = JSON.parse(changelogTypes)
|
||||
}
|
||||
@@ -41220,7 +41220,6 @@ class Node extends release_pr_1.ReleasePR {
|
||||
sha: latestTag ? latestTag.sha : undefined,
|
||||
path: this.path,
|
||||
});
|
||||
console.info(`SECTIONS ${this.changelogSections}`);
|
||||
const cc = new conventional_commits_1.ConventionalCommits({
|
||||
commits,
|
||||
githubRepoUrl: this.repoUrl,
|
||||
@@ -41233,8 +41232,6 @@ class Node extends release_pr_1.ReleasePR {
|
||||
currentTag: `v${candidate.version}`,
|
||||
previousTag: candidate.previousTag,
|
||||
});
|
||||
console.info(commits);
|
||||
console.info(`CHANGELOG = ${changelogEntry}`);
|
||||
// don't create a release candidate until user facing changes
|
||||
// (fix, feat, BREAKING CHANGE) have been made; a CHANGELOG that's
|
||||
// one line is a good indicator that there were no interesting commits.
|
||||
|
||||
Reference in New Issue
Block a user