diff --git a/README.md b/README.md index e8149f2..f93f63b 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,7 @@ steps: | `proxy-server` | Configure a proxy servier in the form of `:` e.g. `proxy-host.com:8080` | | `skip-github-release` | If `true`, do not attempt to create releases. This is useful if splitting release tagging from PR creation. | | `skip-github-pull-request` | If `true`, do not attempt to create release pull requests. This is useful if splitting release tagging from PR creation. | +| `skip-labeling` | If `true`, do not attempt to label the PR. | ## GitHub Credentials diff --git a/action.yml b/action.yml index f2775e1..1b1237b 100644 --- a/action.yml +++ b/action.yml @@ -58,6 +58,10 @@ inputs: description: 'if set to true, then do not try to open pull requests' required: false default: false + skip-labeling: + description: 'if set to true, then do not try to label the PR' + required: false + default: false changelog-host: description: 'The proto://host where commits live. Default `https://github.com`' required: false diff --git a/src/index.ts b/src/index.ts index d5a77a6..aef301e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -39,6 +39,7 @@ interface ActionInputs { targetBranch?: string; skipGitHubRelease?: boolean; skipGitHubPullRequest?: boolean; + skipLabeling?: boolean; fork?: boolean; includeComponentInTag?: boolean; changelogHost: string; @@ -60,6 +61,7 @@ function parseInputs(): ActionInputs { proxyServer: getOptionalInput('proxy-server'), skipGitHubRelease: getOptionalBooleanInput('skip-github-release'), skipGitHubPullRequest: getOptionalBooleanInput('skip-github-pull-request'), + skipLabeling: getOptionalBooleanInput('skip-labeling'), fork: getOptionalBooleanInput('fork'), includeComponentInTag: getOptionalBooleanInput('include-component-in-tag'), changelogHost: core.getInput('changelog-host') || DEFAULT_GITHUB_SERVER_URL, @@ -95,13 +97,15 @@ function loadOrBuildManifest( }, { fork: inputs.fork, + skipLabeling: inputs.skipLabeling, }, inputs.path ); } - const manifestOverrides = inputs.fork + const manifestOverrides = inputs.fork || inputs.skipLabeling ? { fork: inputs.fork, + skipLabeling: inputs.skipLabeling, } : {}; core.debug('Loading manifest from config file');