Please read the official documentation from Microsoft to associate Github related items
https://devblogs.microsoft.com/visualstudio/reference-github-issues-and-pull-requests-in-visual-studio/
In general, not depending especially from Github, to link items just use hastag (#) follow with the identifier of the item.