Add per-repository option to disable backreferences #212191
🏷️ Discussion TypeQuestion BodyEseentially what I am asking is the same as this old SO thread: https://stackoverflow.com/questions/34580385/suppress-github-references-from-commit-message-to-pr It'd be nice if one could suppress the reference announcements from repositories outside the organization, as it can get annoying very easily (especially if they constantly rebase that branch, making the references be duplicated) |
Replies: 1 comment
|
There's no setting for this right now, not per repo and not at the org level either. Any commit, issue or comment anywhere on GitHub that mentions your issue ( The only fix is on the side doing the referencing. If the link points to It's documented here (look for the part about backlinks), and it's the same trick Dependabot and Renovate use so they don't flood upstream issues. So if it's a handful of forks causing the noise, asking them to use that in their commit messages, or to just keep the issue reference in the PR description instead of every commit, should stop it. If you want an actual toggle, I'd also repost this as Product Feedback. Those get picked up by the feedback bot and logged for the product team. |
There's no setting for this right now, not per repo and not at the org level either. Any commit, issue or comment anywhere on GitHub that mentions your issue (
#123,owner/repo#123or the full URL) adds a "mentioned this" event to it. A rebase rewrites the SHAs, so every force-push of that branch adds another batch, which is why you end up with duplicates. As far as I know there's no way to hide them from the receiving side.The only fix is on the side doing the referencing. If the link points to
redirect.github.cominstead ofgithub.com, the link still works but GitHub doesn't create the backlink:It's documented here (look for the part a…