lib/github: introduce `Issue::is_pull_request` method