Skip to content

Commit 0c90d37

Browse files
committed
fix: override GHPullRequest isPullRequest
1 parent 36f0922 commit 0c90d37

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/main/java/org/kohsuke/github/GHPullRequest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,16 @@ public boolean isMerged() throws IOException {
492492
return merged;
493493
}
494494

495+
/**
496+
* Since a GHPullRequest is always a pull request, this method always returns true.
497+
*
498+
* @return true
499+
*/
500+
@Override
501+
public boolean isPullRequest() {
502+
return true;
503+
}
504+
495505
/**
496506
* Retrieves all the commits associated to this pull request.
497507
*

0 commit comments

Comments
 (0)