diff --git a/src/main/java/org/kohsuke/github/GHEventPayload.java b/src/main/java/org/kohsuke/github/GHEventPayload.java index 5d666f5090..69b961473a 100644 --- a/src/main/java/org/kohsuke/github/GHEventPayload.java +++ b/src/main/java/org/kohsuke/github/GHEventPayload.java @@ -27,6 +27,7 @@ public static class PullRequest extends GHEventPayload { private String action; private int number; private GHPullRequest pull_request; + private GHRepository repository; public String getAction() { return action; @@ -41,10 +42,15 @@ public GHPullRequest getPullRequest() { return pull_request; } + public GHRepository getRepository() { + return repository; + } + @Override void wrapUp(GitHub root) { super.wrapUp(root); - pull_request.wrapUp(root); + repository.wrap(root); + pull_request.wrap(repository); } }