Merge pull request #38 from janinko/fixPullRequestPayload

add repository to Pull Request payload and wrap the PR with the repository
This commit is contained in:
Kohsuke Kawaguchi
2013-05-06 14:32:11 -07:00

View File

@@ -27,6 +27,7 @@ public abstract class GHEventPayload {
private String action;
private int number;
private GHPullRequest pull_request;
private GHRepository repository;
public String getAction() {
return action;
@@ -41,10 +42,15 @@ public abstract class GHEventPayload {
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);
}
}