mirror of
https://github.com/jlengrand/github-api.git
synced 2026-05-06 00:11:24 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user