github-api icon indicating copy to clipboard operation
github-api copied to clipboard

`GHIssue#isPullRequest` is false despite being a PR

Open Haarolean opened this issue 7 months ago • 0 comments

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:

  1. Get an instance of GHEventPayload.PullRequest event
  2. Get the pr entity via payload.getPullRequest()
  3. Observe that despite object being an instance of GHPullRequest the return value of isPullRequest method is false.

Expected behavior expected true

Haarolean avatar Mar 16 '25 15:03 Haarolean