Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0d2ecfb

Browse filesBrowse files
committed
add repository to Pull Request payload and wrap the PR with the repository
1 parent 3830a58 commit 0d2ecfb
Copy full SHA for 0d2ecfb

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed

‎src/main/java/org/kohsuke/github/GHEventPayload.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHEventPayload.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public static class PullRequest extends GHEventPayload {
2727
private String action;
2828
private int number;
2929
private GHPullRequest pull_request;
30+
private GHRepository repository;
3031

3132
public String getAction() {
3233
return action;
@@ -41,10 +42,15 @@ public GHPullRequest getPullRequest() {
4142
return pull_request;
4243
}
4344

45+
public GHRepository getRepository() {
46+
return repository;
47+
}
48+
4449
@Override
4550
void wrapUp(GitHub root) {
4651
super.wrapUp(root);
47-
pull_request.wrapUp(root);
52+
repository.wrap(root);
53+
pull_request.wrap(repository);
4854
}
4955
}
5056

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.