Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

fix(issue-type): --color オプションの選択肢を固定カラーに制限する #131

@lollipop-onl

Description

@lollipop-onl

概要

issue-type create / issue-type edit--color オプションが任意の #hex を受け付ける形になっているが、Backlog の課題種別カラーは 固定10色 のみ有効。

現在の description が "Display color (#hex)" になっており、ユーザーが任意のカラーコードを入力できると誤解する。

Backlog が受け付ける固定カラー

# 名前 カラーコード
1 Red #EA2C00
2 Orange #ea733b
3 Pink #e07b9a
4 Purple #868cb7
5 Aqua #3b9dbd
6 Green #4caf93
7 Lime #a1af2f
8 Yellow #dc9925
9 Shocking Pink #f42858
10 Black #393939

注: Green (--commonColorGreen) は CSS 変数 var(--defaultColorMain) を参照しており、RGB 値 76,175,147 から #4caf93 と推定。

現状の問題

  • --color の description が "Display color (#hex)" で、自由入力可能に見える
  • 無効なカラーコードを指定した場合の挙動が不明確
  • インタラクティブプロンプトでもフリーテキスト入力になっている

対応方針

  1. --color のバリデーション追加: 上記10色のカラーコードのみ受け付ける
  2. description の改善: 有効な色の一覧を示す(例: "Display color (red, orange, pink, ...)")
  3. インタラクティブプロンプト: フリーテキスト → リスト選択 UI に変更
  4. 名前→コード変換: --color red のように色名で指定できるようにし、内部で #EA2C00 に変換する

対象ファイル

  • packages/cli/src/commands/issue-type/create.ts
  • packages/cli/src/commands/issue-type/edit.ts
  • テストファイル(上記の .test.ts
  • plans/command-specifications.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions