Skip to content

Commit

Permalink
Merge pull request #38 from janinko/fixPullRequestPayload
Browse files Browse the repository at this point in the history
add repository to Pull Request payload and wrap the PR with the repository
  • Loading branch information
kohsuke committed May 6, 2013
2 parents 3830a58 + 0d2ecfb commit 367a5f0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/org/kohsuke/github/GHEventPayload.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
}

Expand Down

0 comments on commit 367a5f0

Please sign in to comment.