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 7dc620a

Browse filesBrowse files
committed
More details emerge on the PingEvent payload
1 parent 66145e1 commit 7dc620a
Copy full SHA for 7dc620a

File tree

Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-0
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
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ void wrapUp(GitHub root) {
403403
*/
404404
public static class Ping extends GHEventPayload {
405405
private GHRepository repository;
406+
private GHOrganization organization;
406407

407408
public void setRepository(GHRepository repository) {
408409
this.repository = repository;
@@ -412,11 +413,22 @@ public GHRepository getRepository() {
412413
return repository;
413414
}
414415

416+
public GHOrganization getOrganization() {
417+
return organization;
418+
}
419+
420+
public void setOrganization(GHOrganization organization) {
421+
this.organization = organization;
422+
}
423+
415424
@Override
416425
void wrapUp(GitHub root) {
417426
super.wrapUp(root);
418427
if (repository!=null)
419428
repository.wrap(root);
429+
if (organization != null) {
430+
organization.wrapUp(root);
431+
}
420432
}
421433

422434
}

0 commit comments

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