Skip to content

feat: find-or-create Mattermost channels - #3

Merged
jordanpartridge merged 2 commits into
mainfrom
feat/mm-create-channel
Aug 18, 2026
Merged

feat: find-or-create Mattermost channels#3
jordanpartridge merged 2 commits into
mainfrom
feat/mm-create-channel

Conversation

@jordanpartridge

Copy link
Copy Markdown
Contributor

Summary

Hallway is already up on Odin MM:

  • #mesa-studio 9sp18hgiaiybtj9p5nm8uw3sna (open)
  • Members: Jordan, Lexi, Kit

This PR is the tool so we do not curl that by hand again.

  • ChannelCreate (Kit tool)
  • php artisan kit:channel mesa-studio --add=jordan,lexi
  • Host: ~/.grok/kit/mm create mesa-studio "mesa-studio" "purpose" jordan,lexi

Find-or-create. Does not post as a second mouth.

Config: KIT_MATTERMOST_TEAM, KIT_MATTERMOST_HALLWAY, KIT_MATTERMOST_DM. Mouth KIT_MATTERMOST_CHANNEL stays the Jordan DM until the hallway PR retargets assign/watchdog.

Test plan

  • php artisan test (15 passed on this branch)
  • vendor/bin/pint --test
  • kit:channel mesa-studio → exists + same id
  • Actions green

jordan and others added 2 commits August 18, 2026 16:14
Kit can open a team channel via ChannelCreate, artisan kit:channel,
or mm create. #mesa-studio is already live
(9sp18hgiaiybtj9p5nm8uw3sna). Find-or-create, then optional member add.

@lexi-chief-of-staff lexi-chief-of-staff Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it.

  • ChannelCreate + Client methods implement find-or-create correctly with slugging, member adds, and 404-driven creation path.
  • Tests cover existing, create+add, and slug normalization; all assertions match observed behavior.
  • Config and command wiring consistent with existing Mattermost setup; no new patterns introduced that contradict codebase.
  • No blocking issues on correctness, error paths, or test coverage.

@jordanpartridge
jordanpartridge merged commit 83aa23c into main Aug 18, 2026
2 checks passed
@jordanpartridge
jordanpartridge deleted the feat/mm-create-channel branch August 18, 2026 23:18
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