@@ -19,6 +19,7 @@ const DEFAULT_CONFIG_FILE = 'release-please-config.json';
19
19
const DEFAULT_MANIFEST_FILE = '.release-please-manifest.json' ;
20
20
const DEFAULT_GITHUB_API_URL = 'https://api.github.com' ;
21
21
const DEFAULT_GITHUB_GRAPHQL_URL = 'https://api.github.com' ;
22
+ const DEFAULT_GITHUB_SERVER_URL = 'https://github.com' ;
22
23
23
24
interface Proxy {
24
25
host : string ;
@@ -40,6 +41,7 @@ interface ActionInputs {
40
41
skipGitHubPullRequest ?: boolean ;
41
42
fork ?: boolean ;
42
43
includeComponentInTag ?: boolean ;
44
+ changelogHost : string ;
43
45
}
44
46
45
47
function parseInputs ( ) : ActionInputs {
@@ -60,6 +62,7 @@ function parseInputs(): ActionInputs {
60
62
skipGitHubPullRequest : getOptionalBooleanInput ( 'skip-github-pull-request' ) ,
61
63
fork : getOptionalBooleanInput ( 'fork' ) ,
62
64
includeComponentInTag : getOptionalBooleanInput ( 'include-component-in-tag' ) ,
65
+ changelogHost : core . getInput ( 'changelog-host' ) || DEFAULT_GITHUB_SERVER_URL ,
63
66
} ;
64
67
return inputs ;
65
68
}
@@ -88,6 +91,7 @@ function loadOrBuildManifest(
88
91
{
89
92
releaseType : inputs . releaseType ,
90
93
includeComponentInTag : inputs . includeComponentInTag ,
94
+ changelogHost : inputs . changelogHost ,
91
95
} ,
92
96
{
93
97
fork : inputs . fork ,
@@ -205,4 +209,4 @@ if (require.main === module) {
205
209
main ( ) . catch ( err => {
206
210
core . setFailed ( `release-please failed: ${ err . message } ` )
207
211
} )
208
- }
212
+ }
0 commit comments