public class GithubWebhook extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.diffplug.common.base.Throwing.BiConsumer<com.google.gson.JsonObject,org.eclipse.egit.github.core.client.GitHubClient> |
getOnHookEvent()
Get what happens when a webhook request is delivered.
|
static void |
setOnHookEvent(com.diffplug.common.base.Throwing.BiConsumer<com.google.gson.JsonObject,org.eclipse.egit.github.core.client.GitHubClient> onHookEvent)
Set what happens when a webhook request is delivered.
|
static void |
startServer()
Start the webhook.
|
public static void setOnHookEvent(com.diffplug.common.base.Throwing.BiConsumer<com.google.gson.JsonObject,org.eclipse.egit.github.core.client.GitHubClient> onHookEvent)
onHookEvent - Throwing.BiConsumer containing JsonObject (the request payload) and GitHubClient (authentication for the API).public static com.diffplug.common.base.Throwing.BiConsumer<com.google.gson.JsonObject,org.eclipse.egit.github.core.client.GitHubClient> getOnHookEvent()
Throwing.BiConsumer containing JsonObject (the request payload) and GitHubClient (authentication for the API).public static void startServer()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.