feat: Enhance Mattermost extractor to support channel names and improve configuration options

This commit is contained in:
2026-04-09 15:02:03 -06:00
parent e6efa35ae1
commit 060f6dfc00
4 changed files with 184 additions and 6 deletions

View File

@@ -19,6 +19,30 @@ This directory contains the workspace-local Mattermost extractor used by OpenCod
2. Fill in your Mattermost values.
3. Create a local virtual environment if you want an isolated runtime.
Preferred channel config:
- `CHANNELS=fidelity-preguntas`
Channel names are preferred for AI context because the exported records will use the readable channel name instead of the raw channel ID.
The script can resolve channel names without a team if the authenticated user can access the channel and the name is unique across the user's teams.
Supported env options:
- `CHANNELS`
Mixed list of channel names or channel IDs.
- `CHANNEL_NAMES`
Channel names only.
- `CHANNEL_IDS`
Legacy channel IDs only.
Optional only for disambiguation:
- `MATTERMOST_TEAM_NAME`
- `MATTERMOST_TEAM_ID`
Use one of those only if the same channel name exists in multiple teams or if you want to force team-specific resolution.
Example:
```bash