Skip to content

ユーザーグループ一覧・メンバー表示に対応(usergroupsコマンド追加)#12

Merged
mimo-3 merged 11 commits into
mainfrom
add-usergroups-command
Jul 23, 2026
Merged

ユーザーグループ一覧・メンバー表示に対応(usergroupsコマンド追加)#12
mimo-3 merged 11 commits into
mainfrom
add-usergroups-command

Conversation

@mimo-3

@mimo-3 mimo-3 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

Slack のユーザーグループ(@engineers のようなメンショングループ)を CLI から参照できるようにしました。これまでユーザー・チャンネルの参照コマンドはありましたが、ユーザーグループを扱う手段がなかったため追加しています。

  • slack-cli usergroups list — ワークスペースのユーザーグループ一覧(--include-disabled で無効化済みも表示)
  • slack-cli usergroups members --id S123 / --handle @engineers — グループのメンバー一覧(ユーザー名を解決して表示)

実装は既存の users / members コマンドのパターン(UsergroupOperations の切り出し、withSlackClient + renderByFormatcreateMembersFormatter の再利用、ターミナルサニタイズ)に揃えています。利用には usergroups:read スコープが必要です(README に追記済み)。

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation / chore / dependency update

Test plan

  • Added/updated vitest specs for the changed behavior(コマンド16件 + operations 12件を追加、全723件パス)
  • npm run check passes
  • npm run build passes
  • npm test passes
  • Manually exercised the CLI(実ワークスペースでの動作確認は未実施のため、レビュー時にお手元でお試しいただけると助かります)

Checklist

  • package.json version bumped per semver (patch/minor/major) — 新機能のため minor(0.23.0 → 0.24.0)
  • CHANGELOG.md updated with a new entry — fork 以降は GitHub Releases 管理のため更新していません
  • README / docs updated if user-facing surface changed — User Groups セクション・オプション表・必要スコープを追記

@mimo-3
mimo-3 merged commit ca3df81 into main Jul 23, 2026
3 of 4 checks passed
@mimo-3
mimo-3 deleted the add-usergroups-command branch July 23, 2026 15:37
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.

1 participant