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 66145e1

Browse filesBrowse files
committed
Seems there is an undocumented but important PING event used by github-plugin
1 parent 7bf8621 commit 66145e1
Copy full SHA for 66145e1

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+23
-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
+23Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,29 @@ void wrapUp(GitHub root) {
398398
}
399399
}
400400

401+
/**
402+
* A ping.
403+
*/
404+
public static class Ping extends GHEventPayload {
405+
private GHRepository repository;
406+
407+
public void setRepository(GHRepository repository) {
408+
this.repository = repository;
409+
}
410+
411+
public GHRepository getRepository() {
412+
return repository;
413+
}
414+
415+
@Override
416+
void wrapUp(GitHub root) {
417+
super.wrapUp(root);
418+
if (repository!=null)
419+
repository.wrap(root);
420+
}
421+
422+
}
423+
401424
/**
402425
* A repository was made public.
403426
*

0 commit comments

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