Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit 19431a1

Browse files
authoredDec 1, 2023
fix: restore include-component-in-tag default (false) (#888)
v3 had this option and must be configurable or at least set to `false` so that the default behavior is to create a plain `v1.2.3` tag (without the component name prefixed). Found this while dogfooding our own usage of the action (in this repo).
1 parent eb6e951 commit 19431a1

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed
 

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ steps:
7979
| `github-api-url` | Override the GitHub API URL. |
8080
| `github-graphql-url` | Override the GitHub GraphQL URL |
8181
| `fork` | If `true`, send the PR from a fork. This requires the `token` to be a user that can create forks (e.g. not the default `GITHUB_TOKEN`) |
82+
| `include-component-in-tag` | If true, add prefix to tags and branches, allowing multiple libraries to be released from the same repository |
8283
| `proxy-server` | Configure a proxy servier in the form of `<host>:<port>` e.g. `proxy-host.com:8080` |
8384
| `skip-github-release` | If `true`, do not attempt to create releases. This is useful if splitting release tagging from PR creation. |
8485
| `skip-github-pull-request` | If `true`, do not attempt to create release pull requests. This is useful if splitting release tagging from PR creation. |

‎action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ inputs:
4242
description: 'If true, send the PR from a fork. This requires the token to be a user that can create forks (e.g. not the default GITHUB_TOKEN)'
4343
required: false
4444
default: false
45+
include-component-in-tag:
46+
description: 'If true, add prefix to tags and branches, allowing multiple libraries to be released from the same repository'
47+
required: false
4548
proxy-server:
4649
description: 'set proxy sever when you run this action behind a proxy. format is host:port e.g. proxy-host.com:8080'
4750
required: false

‎dist/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -116242,6 +116242,7 @@ function parseInputs() {
116242116242
skipGitHubRelease: getOptionalBooleanInput('skip-github-release'),
116243116243
skipGitHubPullRequest: getOptionalBooleanInput('skip-github-pull-request'),
116244116244
fork: getOptionalBooleanInput('fork'),
116245+
includeComponentInTag: getOptionalBooleanInput('include-component-in-tag'),
116245116246
};
116246116247
return inputs;
116247116248
}
@@ -116260,6 +116261,7 @@ function loadOrBuildManifest(github, inputs) {
116260116261
core.debug('Building manifest from config');
116261116262
return release_please_1.Manifest.fromConfig(github, github.repository.defaultBranch, {
116262116263
releaseType: inputs.releaseType,
116264+
includeComponentInTag: inputs.includeComponentInTag,
116263116265
}, {
116264116266
fork: inputs.fork,
116265116267
}, inputs.path);

‎src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ interface ActionInputs {
3939
skipGitHubRelease?: boolean;
4040
skipGitHubPullRequest?: boolean;
4141
fork?: boolean;
42+
includeComponentInTag?: boolean;
4243
}
4344

4445
// TODO: replace this interface is exported from release-please
@@ -86,6 +87,7 @@ function parseInputs(): ActionInputs {
8687
skipGitHubRelease: getOptionalBooleanInput('skip-github-release'),
8788
skipGitHubPullRequest: getOptionalBooleanInput('skip-github-pull-request'),
8889
fork: getOptionalBooleanInput('fork'),
90+
includeComponentInTag: getOptionalBooleanInput('include-component-in-tag'),
8991
};
9092
return inputs;
9193
}
@@ -113,6 +115,7 @@ function loadOrBuildManifest(
113115
github.repository.defaultBranch,
114116
{
115117
releaseType: inputs.releaseType,
118+
includeComponentInTag: inputs.includeComponentInTag,
116119
},
117120
{
118121
fork: inputs.fork,

0 commit comments

Comments
 (0)
This repository has been archived.