Pointing at one thing
Every comment, every changed line and every number has an address you can send.
On the page
- A comment: its time is a link to itself (
#c-<id>on an issue,#rc-<id>on a pull's line comment). With script on, Copy link beside it copies the full address. - A diff line: its number is a link to that line (
#d-<file>-R<line>). The page opens scrolled to it, with the line marked. The+beside the number comments on that line, and a line comment's thread has Reply under it. On a phone the lines keep their reading size: tap anywhere on a line to select it (its address goes in the bar) and a bar opens under it with Copy link and Comment, each a full thumb target. - A reference in a comment:
#12links to issue or pull 12 of the repository, andsrc/cart.ts:31links to that line of the file on the default branch. Inside code it stays code. - A link into a private repository, signed out: the page reads the same as a missing one, and sign in brings you back to the address you opened.
In the terminal
Open a pull, go to its diff tab, put the cursor on a line and press c: the comment is anchored
to that line, and its thread shows under it, as on the page. The terminal has no addresses to
copy; it walks to the line instead.
src/web/comments.ts (permalinks and references) and src/web/diff-view.ts (line addresses)
draw the page; src/tui/screens/pull.ts is the terminal's side.