Skip to content

feat(roadmap): add mattermost /roadmap slash command - #2914

Merged
dan-petty merged 3 commits into
mainfrom
feat/1395-mattermost-roadmap-slash-command
Oct 31, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/1395-mattermost-roadmap-slash-command

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Add the /roadmap slash command responder to the roadmap service webhook router.

What changed

  • Add mattermost webhook provider to the webhook router with cluster exposure, form URL-encoded content type, and AuthorizationToken verifier.
  • Add ephemeral chat responder for /roadmap and /roadmap status [<repo>] commands reporting worker status per repository and lane from memory.
  • Increment metric devops_cli_service_chat_commands_total on slash command requests.
  • Track pending triggers and completed worker rounds in RepoWorker and expose them via read-only ServiceManager.lane_statuses().
  • Register managed credential mattermost.command_token and cluster secret entry DEVOPS_CLI_MATTERMOST_COMMAND_TOKEN.
  • Update Kubernetes manifests: allow internal connections from Mattermost to roadmap-service, update network policies in k8s/mattermost/ and k8s/devops/roadmap-service/.
  • Update k8s/README.md with configuration instructions and secret table entry.

Closes #1395

Add the /roadmap slash command responder to the roadmap service webhook router.

### What changed
- Add `mattermost` webhook provider to the webhook router with cluster exposure, form URL-encoded content type, and `AuthorizationToken` verifier.
- Add ephemeral chat responder for `/roadmap` and `/roadmap status [<repo>]` commands reporting worker status per repository and lane from memory.
- Increment metric `devops_cli_service_chat_commands_total` on slash command requests.
- Track pending triggers and completed worker rounds in `RepoWorker` and expose them via read-only `ServiceManager.lane_statuses()`.
- Register managed credential `mattermost.command_token` and cluster secret entry `DEVOPS_CLI_MATTERMOST_COMMAND_TOKEN`.
- Update Kubernetes manifests: allow internal connections from Mattermost to roadmap-service, update network policies in `k8s/mattermost/` and `k8s/devops/roadmap-service/`.
- Update `k8s/README.md` with configuration instructions and secret table entry.

Closes #1395
@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Oct 31, 2026
Add unit tests for AuthorizationToken verification and responder error paths to satisfy changed-line coverage requirements.
Use typing.cast instead of assert statements in webhook payload authentication to comply with security scanner rules.
@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 20:29
@dan-petty
dan-petty merged commit d669c15 into main Oct 31, 2026
19 checks passed
@dan-petty
dan-petty deleted the feat/1395-mattermost-roadmap-slash-command branch October 31, 2026 20:40
dan-petty pushed a commit that referenced this pull request Oct 31, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.33.0](v0.32.0...v0.33.0)
(2026-10-31)


### Features

* **docker:** preview requests in dry run for docker and sandbox
commands ([#2923](#2923))
([b35ac53](b35ac53)),
closes [#2251](#2251)
* **roadmap:** add mattermost /roadmap slash command
([#2914](#2914))
([d669c15](d669c15)),
closes [#1395](#1395)
* **roadmap:** stage every Ready item, implement low effort
([#2924](#2924))
([7950748](7950748)),
closes [#2906](#2906)
* **scan:** preview requests in dry run for scan commands
([#2903](#2903))
([310322c](310322c)),
closes [#2250](#2250)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

1 participant