Skip to content

Commit 29adf29

Browse files
authored
Document name input working on complete and update (#22)
1 parent 6c57680 commit 29adf29

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Once installed, run it from your AI agent with `/linear-release-setup` (or just
5858
| --------------- | -------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
5959
| `access_key` | Yes | | Linear pipeline access key for authentication |
6060
| `command` | No | `sync` | Command to run: `sync`, `complete`, or `update` |
61-
| `name` | No | | Custom release name for `sync`. Whenever `sync` is called with `name`, the value is applied to the targeted release — both newly created releases and existing ones get the provided name. Ignored (with warning) for `complete` and `update`. |
61+
| `name` | No | | Custom release name. For `sync`, the value is applied to the targeted release — both newly created releases and existing ones get the provided name. For `complete` and `update`, sets the name on the targeted release. |
6262
| `version` | No | | Release version identifier (alias: `release_version`) |
6363
| `stage` | No | | Deployment stage such as `staging` or `production` (required for `update`) |
6464
| `include_paths` | No | | Filter commits by file paths (comma-separated globs for monorepos) |

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ inputs:
1515
required: false
1616
default: sync
1717
name:
18-
description: Custom release name. Only used with the "sync" command.
18+
description: Custom release name. Applied to the targeted release for "sync", "complete", and "update".
1919
required: false
2020
version:
2121
description: Release version identifier. Maps to CLI --release-version (e.g., "v1.2.3").

run.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ if [[ "$COMMAND" == "update" && -z "${INPUT_STAGE:-}" ]]; then
4444
exit 1
4545
fi
4646

47-
if [[ "$COMMAND" != "sync" && -n "${INPUT_NAME:-}" ]]; then
48-
echo "::warning::name input is ignored when command is '$COMMAND' (only used with 'sync')"
49-
fi
50-
5147
args=()
5248
[[ -n "${INPUT_NAME:-}" ]] && args+=("--name=${INPUT_NAME}")
5349
[[ -n "${INPUT_VERSION:-}" ]] && args+=("--release-version=${INPUT_VERSION}")

0 commit comments

Comments
 (0)