OctoPermalinker is a browser extension that searches GitHub comments/files for links to files on branches, and adds a link to where the branch pointed when the comment/file was made/updated. This helps you avoid following a link that was broken after being posted. For context, here's some discussion about broken GitHub links: Don't link to line numbers in GitHub.
OctoPermalinker is available from the Chrome Web Store. If you use Firefox, install Chrome Store Foxified first.
Alternatively, you can build and install OctoPermalinker locally by following the Quick Start section of the Contributing guide.
Without authentication, the GitHub API allows only 60 requests per hour. You can increase this to 5,000 requests per hour by creating an OAuth token (no scopes needed) and entering it into the extension options page (at chrome://extensions/
in Chrome, or about:addons
-> Extensions in Firefox).
OctoPermalinker will also detect if you paste a fragile link into a comment box. When this happens, OctoPermalinker will notify you of the corresponding permalink, in case you'd like to use it instead.
Anyone can help make this project better - check out the Contributing guide!
If you encounter a problem using OctoPermalinker, or would like to request an enhancement, feel free to create an issue.
- @stefanbuck for building OctoLinker, which this project is based on.
The OctoPermalinker project is not affiliated with, sponsored by, or endorsed by github, inc.
Copyright (c) 2017–present Joseph Frazier Licensed under the MIT license.