Closed1

Claude codeにgithub issueに対してラベルを振ってもらってみた。

yamitake@yapryamitake@yapr

ぐちゃぐちゃになってしまったIssueにラベルをつけてくれた。
そもそものタスク整理やIssueの生成から任せたら、うまく回るのではないか。
今回は僕のIssueが殴り書きになってしまってちゃんとつけれてないのは愛嬌です。

╭────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview! │
│                                            │
│   /help for help                           │
│                                            │
│   cwd: /Users/yamitake/workspaces/m4g3           │
╰────────────────────────────────────────────╯

> github issueを取得し、issueのタイトルから類推するlabelをつけてください。ideaやfeatureのような既存のタグ達で良いです。

⏺ GitHub issuesを取得し、それぞれのタイトルからlabelを提案します。既存のラベル(idea、featureなど)を使用します。

⏺ Bash(gh issue list -L 10 --json number,title,state)…
  ⎿  [{"number":40,"state":"OPEN","title":"M4G リニューアルMVP"},{"number":39,"state":"OPEN","title":"タグの導入。"},{"number":33,"state":"OPEN","title":"ロゴ
     を白ベースにしたい。"},{"number":31,"state":"OPEN","title":"Stimulus Component群"},{"number":29,"state":"OPEN","title":"ファビコンを設定する。"},{"number
     ":13,"state":"OPEN","title":"現状の機能を移す"},{"number":12,"state":"OPEN","title":"dumpメモ"}]

⏺ 以下がissueごとの提案ラベルです:

  1. #40「M4G リニューアルMVP」- feature, enhancement
  2. #39「タグの導入。」- feature
  3. #33「ロゴを白ベースにしたい。」- design, enhancement
  4. #31「Stimulus Component群」- feature, enhancement
  5. #29「ファビコンを設定する。」- design, enhancement
  6. #13「現状の機能を移す」- migration, feature
  7. #12「dumpメモ」- documentation

> そのラベルつけてください。

⏺ issueにラベルを付けていきます。

⏺ Call(ラベル付け)…
  ⎿  Bash(gh issue edit 40 --add-label "feature,enhancement")…
  ⎿  Bash(gh issue edit 39 --add-label "feature")…
  ⎿  Bash(gh issue edit 33 --add-label "design,enhancement")…
  ⎿  Bash(gh issue edit 31 --add-label "feature,enhancement")…
  ⎿  Bash(gh issue edit 29 --add-label "design,enhancement")…
  ⎿  Bash(gh issue edit 13 --add-label "migration,feature")…
  ⎿  Bash(gh issue edit 12 --add-label "documentation")…
  ⎿  Done (7 tool uses · 22.0s)

⏺ ラベルが見つからないエラーが発生しました。既存のラベルを確認してから適用しましょう。

⏺ Bash(gh label list)…
  ⎿  bug        Something isn't working #d73a4a
     documentation      Improvements or additions to documentation      #0075ca
     duplicate  This issue or pull request already exists       #cfd3d7
     enhancement        New feature or request  #a2eeef
     good first issue   Good for newcomers      #7057ff
     help wanted        Extra attention is needed       #008672
     invalid    This doesn't seem right #e4e669
     question   Further information is requested        #d876e3
     wontfix    This will not be worked on      #ffffff
     dependencies       Pull requests that update a dependency file     #0366d6
     ruby       Pull requests that update Ruby code     #ce2d2d

⏺ 既存のラベルを使って再度適用します。

⏺ Call(正しいラベル付け)…
  ⎿  Bash(gh issue edit 40 --add-label "enhancement")…
  ⎿  Bash(gh issue edit 39 --add-label "enhancement")…
  ⎿  Bash(gh issue edit 33 --add-label "enhancement")…
  ⎿  Bash(gh issue edit 31 --add-label "enhancement")…
  ⎿  Bash(gh issue edit 29 --add-label "enhancement")…
  ⎿  Bash(gh issue edit 13 --add-label "enhancement")…
  ⎿  Bash(gh issue edit 12 --add-label "documentation")…
  ⎿  Done (7 tool uses · 18.5s)

⏺ すべてのissueにラベルを適用しました。

╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ > exit                                                                                                                                                         │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
                                                                                                                           ✓ Update installed • Restart to apply



Total cost:            $0.1583
Total duration (API):  57.6s
Total duration (wall): 8m 30.6s
Total code changes:    0 lines added, 0 lines removed
このスクラップは4ヶ月前にクローズされました