Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHIssue#isPullRequest is false despite being a PR #2061

Open
Haarolean opened this issue Mar 16, 2025 · 0 comments
Open

GHIssue#isPullRequest is false despite being a PR #2061

Haarolean opened this issue Mar 16, 2025 · 0 comments
Labels

Comments

@Haarolean
Copy link
Contributor

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

@bitwiseman bitwiseman added the bug label Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants