mirror of
https://github.com/schpet/linear-cli.git
synced 2026-09-14 14:26:50 +08:00
7e84ad9747
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>