github-api
github-api copied to clipboard
`GHIssue#isPullRequest` is false despite being a PR
Describe the bug
isPullRequest in GHIssue returns false due to pull_request == null condition. The PR object was acquired via payload.getPullRequest() method of GHEventPayload.PullRequest class.
To Reproduce Steps to reproduce the behavior:
- Get an instance of
GHEventPayload.PullRequestevent - Get the pr entity via
payload.getPullRequest() - Observe that despite object being an instance of
GHPullRequestthe return value ofisPullRequestmethod is false.
Expected behavior expected true