Detect Pull Request id automatically if not specified

@willnet I'm kinda stealing a bit of your idea/code here, so want to make sure you're :ok: with it. Of course, you're given credit in CHANGELOG :smile: 
The important part of this pull request.