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 e67fbb4

Browse filesBrowse files
authored
Merge pull request hub4j#362 from KostyaSha/pingHook
Add ping hook method
2 parents 29b5357 + 8d1b44d commit e67fbb4
Copy full SHA for e67fbb4

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHHook.java
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ public Map<String, String> getConfig() {
4141
return Collections.unmodifiableMap(config);
4242
}
4343

44+
/**
45+
* @see <a href="https://developer.github.com/v3/repos/hooks/#ping-a-hook">Ping hook</a>
46+
*/
47+
public void ping() throws IOException {
48+
new Requester(getRoot()).method("POST").to(getApiRoute() + "/pings");
49+
}
50+
4451
/**
4552
* Deletes this hook.
4653
*/

0 commit comments

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