I'm afraid it's the only solution at the moment (besides precommit hooks).
It also doesn't account for, say, if somebody forks and modifies their code (it doesn't know which project to link to, it just assumes tgstation/-tg-station).