Skip to content

Add Matrix workflow action module - #970

Merged
adulau merged 1 commit into
mainfrom
codex/matrix-chat-action
Oct 25, 2026
Merged

adulau merged 1 commit into
mainfrom
codex/matrix-chat-action

Conversation

@adulau

@adulau adulau commented Oct 25, 2026

Copy link
Copy Markdown
Member

Add a Matrix chat action alongside Mattermost so workflows can send templated messages to an existing Matrix room. Configure the homeserver URL, bot access token and room ID; the action renders Jinja2 templates against matchingData or data, with the same JSON fallback as Mattermost.

The module sends plain-text m.room.message events through the Matrix Client-Server API using the existing requests dependency. It encodes room IDs, uses unique transaction IDs, applies a timeout, and reports success only after an HTTP 200 response with an event ID. Errors are returned without provider response bodies or credentials. Includes a setup guide and generated module catalog entries.

Supports unencrypted rooms; the bot must already have joined and be allowed to send messages. End-to-end encryption and HTML/Markdown formatting are unsupported.

Validation:

  • pytest -q tests/test_matrix.py: 48 passed, including prepared HTTP request checks and /modules + /query integration.
  • Black and isort checks passed for both new Python files.
  • Flake8 passed for tracked project Python files using the CI exclusions, plus both new files.
  • git diff --check passed.

Matrix HTTP responses are mocked; no live homeserver or bot credentials were supplied.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T10:07:10.402310Z 9034ca4 PR opened
🔒 Security Review ✅ Completed 2026-10-25T10:10:08.995592Z 9034ca4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@adulau
adulau merged commit c34a111 into main Oct 25, 2026
7 checks passed
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