Skip to content

Commit fb7f385

Browse files
huksleychingor13
andauthored
feat: support for skip-labeling parameter for GitHub action (#1066)
Adds support and documentation for the skipLabeling option when running release-please from GitHub Actions. This option in the config are ignored when running in release-please-action, and only honored when you pass it as an option via a command line. This PR adds the same support to GitHub action. --------- Co-authored-by: Jeff Ching <[email protected]>
1 parent 35ed136 commit fb7f385

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ steps:
8383
| `proxy-server` | Configure a proxy servier in the form of `<host>:<port>` e.g. `proxy-host.com:8080` |
8484
| `skip-github-release` | If `true`, do not attempt to create releases. This is useful if splitting release tagging from PR creation. |
8585
| `skip-github-pull-request` | If `true`, do not attempt to create release pull requests. This is useful if splitting release tagging from PR creation. |
86+
| `skip-labeling` | If `true`, do not attempt to label the PR. |
8687

8788
## GitHub Credentials
8889

Diff for: action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ inputs:
5858
description: 'if set to true, then do not try to open pull requests'
5959
required: false
6060
default: false
61+
skip-labeling:
62+
description: 'if set to true, then do not try to label the PR'
63+
required: false
64+
default: false
6165
changelog-host:
6266
description: 'The proto://host where commits live. Default `https://github.com`'
6367
required: false

Diff for: src/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ interface ActionInputs {
3939
targetBranch?: string;
4040
skipGitHubRelease?: boolean;
4141
skipGitHubPullRequest?: boolean;
42+
skipLabeling?: boolean;
4243
fork?: boolean;
4344
includeComponentInTag?: boolean;
4445
changelogHost: string;
@@ -60,6 +61,7 @@ function parseInputs(): ActionInputs {
6061
proxyServer: getOptionalInput('proxy-server'),
6162
skipGitHubRelease: getOptionalBooleanInput('skip-github-release'),
6263
skipGitHubPullRequest: getOptionalBooleanInput('skip-github-pull-request'),
64+
skipLabeling: getOptionalBooleanInput('skip-labeling'),
6365
fork: getOptionalBooleanInput('fork'),
6466
includeComponentInTag: getOptionalBooleanInput('include-component-in-tag'),
6567
changelogHost: core.getInput('changelog-host') || DEFAULT_GITHUB_SERVER_URL,
@@ -95,13 +97,15 @@ function loadOrBuildManifest(
9597
},
9698
{
9799
fork: inputs.fork,
100+
skipLabeling: inputs.skipLabeling,
98101
},
99102
inputs.path
100103
);
101104
}
102-
const manifestOverrides = inputs.fork
105+
const manifestOverrides = inputs.fork || inputs.skipLabeling
103106
? {
104107
fork: inputs.fork,
108+
skipLabeling: inputs.skipLabeling,
105109
}
106110
: {};
107111
core.debug('Loading manifest from config file');

0 commit comments

Comments
 (0)