sindresorhus/refined-github

`fix-view-file-link-in-pr` breaks View file/raw link for PRs using default branch #2580

jack1142 posted onGitHub

These PRs should suffice as examples (at least one of them shouldn't get merged that soon so hopefully someone will be able to reproduce it by then 😄) https://github.com/Cog-Creators/Red-DiscordBot/pull/3027/files https://github.com/Cog-Creators/Red-DiscordBot/pull/3080/files

Both of those link to: https://github.com/[PR_AUTHOR]/Red-DiscordBot/blob/[PATH_TO_FILE] While they should point to: https://github.com/[PR_AUTHOR]/Red-DiscordBot/blob/[BRANCH_NAME]/[PATH_TO_FILE]


posted by fregante over 5 years ago

To be noted, PRs from the default branch are not a good idea

Oh yeah, I know, but you can't control all the contributors 😄

posted by jack1142 over 5 years ago

And thanks for quick fix.

posted by jack1142 over 5 years ago

Fund this Issue

$0.00
Funded

Pull requests