Issue #240: [feature] Format issue tracker links (and others) in changeset and pull request comments
Reported by: | Samuel Delisle |
State: | new |
Created on: | 2016-08-12 15:54 |
Updated on: | 2018-05-18 20:22 |
Description
Issue tracking links (issue_pat
/issue_server_link
...) are currently only formatted in commit messages.
It would be nice if it was also possible to use them in changeset comments and pull request comments.
In addition, it would be nice to have a built-in way to create internal links while commenting. For example:
pr:123
could link to pull request 123 (this one cannot be configured manually with a customissue_pat_...
entry because pull request links don't seem to work globally, they need to be prefixed with the repo url)repo:<repo>
could link to a particular repo (or repo group) and display its full name instead of its idchangeset:<changeset>
orchangeset:<repo>:<changeset>
could link to a particular changeset. If <repo> is not specified, the changeset would be assumed to be in the current repository. Maybe changeset hashes could even be automatically recognized without requiring a prefix?file:<filename>
orfile:<repo>:<filename>
orfile:<changeset>:<filename>
could link to a file
If comments have a global id, maybe we could even link to another comment.
This would make it possible to refer to other elements in a more concise way without giving a full url, which would become invalid if the server home url changes for some reason.
Attachments
Comments
Comment by Samuel Delisle, on 2016-08-12 17:15
Comment by Thomas De Schampheleire, on 2018-05-18 20:22