Add simplified Github Issue/PR URL recognition
See original GitHub issueNow that we can click on URLs and files we could improve a bit on this and add recognition for a simplified version of github issues and pull requests.
I often use Spyder to develop spyder so this would be really handy, as I often see myself opening a browser tab and opening the referenced issue on sections of code.
Option 1
Simply include full urls to issues on our code base so we can click on them on the spot
Pros: No need to change code, just update the references Cons: Long urls might crop up in the docstrings and comments
# See: https://github.com/spyder-ide/spyder/issues/NNNN
'''See: https://github.com/spyder-ide/spyder/issues/NNNN'''
Option 2
Add a shorthand syntax for github issues and PRs that makes life easy for us.
Pros: Shorter “links” Cons: we need to update the code a bit + update the references
# See issue spyder-ide/spyder#NNNN
# See PR spyder-ide/spyder#NNNN
'''See PR spyder-ide/spyder#NNNN'''
This syntax would apply to both issues and PRs, since they are the “same” on github
What do you think @spyder-ide/core-developers ?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)

Top Related StackOverflow Question
@jitseniesen The basic machinery is already implemented so, it is just a matter of deciding a format regex and adding a couple of lines of code.
@bcolsen interesting!
Option 3++
And optional, so we give priority to github if not found
Something like (needs further thinking!)
Would match either of these
gh -> github gl: gitlab bb: bitbucket
I agree with this, it’d be really nice!