File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,9 +150,12 @@ The following abbreviations can be used in a comment to generate a link:
150150
151151See also the `list of autolinks supported by GitHub <autolinks _>`_.
152152
153- To link to files in the repository, use Markdown links. If you link to
154- the default GitHub path, the file will link to the latest current
155- version on the given branch.
153+ To link to a file in the repository, use a Markdown link with the path
154+ of the file relative to the repository root, for example
155+ ``[the os module docs](Doc/library/os.rst) ``. In issues, such links
156+ point to the latest version of the file on the default branch. In PRs,
157+ they are resolved against the PR's branch instead, so prefer permanent
158+ links there.
156159
157160You can get a permanent link to a given revision of a given file by
158161`pressing "y" <https://docs.github.com/en/repositories/working-with-files/using-files/getting-permanent-links-to-files >`__.
You can’t perform that action at this time.
0 commit comments