From 1a4217fc5af4d6a1a679709447b32633be19bceb Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Wed, 10 Aug 2022 09:32:13 -0700 Subject: [PATCH] feat: add a `changelog-host` parameter to `action.yml` (#550) * Add a changelog-host parameter to action.yml. Fixes https://github.com/google-github-actions/release-please-action/issues/525 * fix default changelog-host Co-authored-by: Jeff Ching Signed-off-by: Jeffrey Rennie Signed-off-by: Jeffrey Rennie Co-authored-by: Jeff Ching --- action.yml | 4 ++++ index.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/action.yml b/action.yml index e014a32..94a285e 100644 --- a/action.yml +++ b/action.yml @@ -36,6 +36,10 @@ inputs: description: 'specify a CHANGELOG path other than the root CHANGELOG.md' required: false default: '' + changelog-host: + description: 'The proto://host where commits live.' + required: false + default: 'https://github.com' command: description: 'release-please command to run, either "github-release", or "release-pr" (defaults to running both)' required: false diff --git a/index.js b/index.js index f9761be..56e1e0c 100644 --- a/index.js +++ b/index.js @@ -113,6 +113,7 @@ async function manifestInstance (github) { const path = core.getInput('path') || undefined const releaseType = core.getInput('release-type', { required: true }) const changelogPath = core.getInput('changelog-path') || undefined + const changelogHost = core.getInput('changelog-host') || undefined const changelogTypes = core.getInput('changelog-types') || undefined const changelogSections = changelogTypes && JSON.parse(changelogTypes) const versionFile = core.getInput('version-file') || undefined @@ -129,6 +130,7 @@ async function manifestInstance (github) { packageName, releaseType, changelogPath, + changelogHost, changelogSections, versionFile, extraFiles,