matrix-org / matrix-org/matrix-hookshot
Title URL issue
- Dominant language
- TypeScript
- Stars
- 450
- Forks
- 95
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 23
Description
```
{
"body": "⤵+ [[ID-123]](https://github.com/HarHarLinks/repo/pull/456) #456 for **[HarHarLinks/repo](https://github.com/HarHarLinks/repo)**\n\n **[HarHarLinks](https://github.com/HarHarLinks)**:\n\n > some description",
"external_url": "https://github.com/HarHarLinks/repo/pull/456",
"format": "org.matrix.custom.html",
"formatted_body": "
⤵+ [ID-123](https://github.com/HarHarLinks/repo/pull/456) #456 for HarHarLinks/repo
\n\n\nsome description
\n",
"msgtype": "m.text",
"uk.half-shot.matrix-hookshot.github.comment": {
"id": $id
},
"uk.half-shot.matrix-hookshot.github.issue": {
"id": $id,
"number": 456,
"title": "[ID-123]",
"url": "https://github.com/HarHarLinks/repo/pull/456"
},
"uk.half-shot.matrix-hookshot.github.repo": {
"id": $other_id,
"name": "HarHarLinks/repo",
"url": "https://github.com/HarHarLinks/repo"
}
}
```The formatted_body renders as:
> \[[ID-123](https://my.atlassian.net/browse/ID-123?atlOrigin=someIdHere)\]\(https://github.com/HarHarLinks/repo/pull/456)About which I don't really see where it gets the Jira link (but I might not be able to see that the issue was renamed?) nor do I see how that HTML should have been generated from that markdown.
GitHub (correctly) makes from that markdown:
> [[ID-123]](https://github.com/HarHarLinks/repo/pull/456)
Contributor guide
Research direction
Start by reproducing the supplied markdown and comparing GitHub's rendering with the bridge's formatted_body, especially the nested link and unexpected Jira URL. Trace the formatting path responsible for this Matrix event; done means the rendered output preserves the original GitHub links and matches the expected markdown conversion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100