But target_path is the absolute path of the target file on the machine that's running the script instead of the path relative to the repo root.
So you end up with a link to https://github.com/<org>/<repo>/blob/HEAD//github/workspace/docs/README.rst instead of https://github.com/<org>/<repo>/blob/HEAD/docs/README.rst
Similar to #34
Another problem with relative links...
When linking to GitHub we do:
But
target_path
is the absolute path of the target file on the machine that's running the script instead of the path relative to the repo root.So you end up with a link to
https://github.com/<org>/<repo>/blob/HEAD//github/workspace/docs/README.rst
instead ofhttps://github.com/<org>/<repo>/blob/HEAD/docs/README.rst