mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-13 15:51:41 +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:
|
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
5
dist/index.js
vendored
@@ -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.
|
||||||
|
|||||||
2
index.js
2
index.js
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user