Skip to content

Allow --name on complete & update commands#49

Merged
RomainCscn merged 2 commits intomainfrom
tom/lin-68713-allow-cli-to-set-release-name-on-completion-105d
May 6, 2026
Merged

Allow --name on complete & update commands#49
RomainCscn merged 2 commits intomainfrom
tom/lin-68713-allow-cli-to-set-release-name-on-completion-105d

Conversation

@tommoor
Copy link
Copy Markdown
Member

@tommoor tommoor commented May 1, 2026

Lets linear-release complete accept --name=<name> so CI/CD pipelines can set a release name at completion time (in addition to sync). The name is forwarded to the releaseCompleteByAccessKey mutation; --name on update still emits the ignored-flag warning.

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 1, 2026

@tommoor tommoor requested a review from axelniklasson May 1, 2026 13:57
Copy link
Copy Markdown
Member Author

tommoor commented May 1, 2026

Might be something I'm missing, but I don't see a clear reason we can't include this on complete for flexibility.

@tommoor tommoor marked this pull request as ready for review May 1, 2026 13:57
Copy link
Copy Markdown
Collaborator

No reason I think. Also

- **`--name` seems ignored**: `--name` applies to `sync` and `complete`; `update` ignores it and prints a warning.

feels a bit silly, and we should probably just add it to update too

Copy link
Copy Markdown
Member Author

tommoor commented May 4, 2026

@linear go ahead and extend this pattern to the update command as well so --name arg is accepted on all.

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 4, 2026

On it — I’ve started working on extending this to update as well.

@RomainCscn
Copy link
Copy Markdown
Collaborator

Need API changes before merging this. I can take over @tommoor, I have another fix for --name not being set on sync in some cases.

Pass the custom release name through the releaseCompleteByAccessKey mutation so CI/CD pipelines can set a release name at completion time.
@RomainCscn RomainCscn force-pushed the tom/lin-68713-allow-cli-to-set-release-name-on-completion-105d branch from cd6bf3d to 0d0f9a6 Compare May 6, 2026 07:29
RomainCscn added a commit to linear/linear-release-action that referenced this pull request May 6, 2026
Pairs with linear-release CLI extending --name support to the complete
and update commands (linear/linear-release#49). The action input map
already forwards `name` to the CLI, so no behavioral change is needed
here — just the description in action.yml and the corresponding row in
the README inputs table.
@RomainCscn RomainCscn changed the title Allow --name on complete command Allow --name on complete & update commands May 6, 2026
Co-authored-by: linear[bot] <44709815+linear[bot]@users.noreply.github.com>
@RomainCscn RomainCscn force-pushed the tom/lin-68713-allow-cli-to-set-release-name-on-completion-105d branch from 0d0f9a6 to 6619e49 Compare May 6, 2026 07:36
@RomainCscn RomainCscn merged commit 569dabc into main May 6, 2026
2 checks passed
@RomainCscn RomainCscn deleted the tom/lin-68713-allow-cli-to-set-release-name-on-completion-105d branch May 6, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants