matrix-org / matrix-org/matrix-hookshot
GitHub notifications can exceed matrix's maximum event size
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 450
- Forks
- 95
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 23
Description
Very long posts are cut off by matrix's message size limit, e.g. https://github.com/vector-im/element-web/issues/20467#issuecomment-1038839125
You could split them up, however that's not great in the middle of a code block. I would rather it not post the code block at all but simply link to the comment instead.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the GitHub notification formatting and Matrix message-sending entry points, then inspect how long posts and code blocks are handled. Done means oversized notifications no longer exceed Matrix's event limit and a code block that cannot fit is omitted in favor of a link to the GitHub comment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100