feat(project): add --label flag to project create and update#226
Closed
KinomotoMio wants to merge 1 commit into
Closed
feat(project): add --label flag to project create and update#226KinomotoMio wants to merge 1 commit into
KinomotoMio wants to merge 1 commit into
Conversation
schpet
added a commit
that referenced
this pull request
Jul 14, 2026
Adds a repeatable `--label` flag to `linear project update`, mirroring the existing `project create --label`: names resolve case-insensitively and an unknown label raises NotFoundError (no auto-create). The flag uses replace semantics — the supplied labels become the project's complete label set — consistent with `project update --team` and `issue update --label`. Empty/whitespace labels are rejected up front, and case-insensitive duplicates collapse to a single ID. The project-label lookup is extracted from project-create into a shared getProjectLabelIdByName helper in utils/linear.ts so create and update stay identical. This reshapes the update half of #226 to the repo's existing label conventions; the create half of #226 already shipped in #216, and the PR's auto-create/interactive-create behavior is intentionally dropped. Co-authored-by: KinomotoMio <200703522+KinomotoMio@users.noreply.github.com>
Owner
|
Thanks for this, @KinomotoMio — closing as superseded, but your Here's how it shook out:
The |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--label <label>tolinear project createandlinear project updatefor Linear ProjectLabel IDs.projectLabelCreatewithout forcing a color.project update --labeladditive by preserving current project label IDs and appending new ones.project create -i, including a create-new option.Test plan
npx --yes deno@2.7.9 task codegennpx --yes deno@2.7.9 task checknpx --yes deno@2.7.9 lintTZ=UTC npx --yes deno@2.7.9 task test(337 passed, 5 ignored)TZ=UTC npx --yes deno@2.7.9 test --allow-all --quiet test/commands/project/project-create.test.ts test/commands/project/project-update.test.ts