Organization Webhook
This resource allows you to create and manage webhooks for GitHub organization.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.OrganizationWebhook;
import com.pulumi.github.OrganizationWebhookArgs;
import com.pulumi.github.inputs.OrganizationWebhookConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new OrganizationWebhook("foo", OrganizationWebhookArgs.builder()
.active(false)
.configuration(OrganizationWebhookConfigurationArgs.builder()
.contentType("form")
.insecureSsl(false)
.url("https://google.de/")
.build())
.events("issues")
.build());
}
}
Content copied to clipboard
Import
Organization webhooks can be imported using the id
of the webhook. The id
of the webhook can be found in the URL of the webhook. For example, "https://github.com/organizations/foo-org/settings/hooks/123456789"
.
$ pulumi import github:index/organizationWebhook:OrganizationWebhook terraform 123456789
Content copied to clipboard
If secret is populated in the webhook's configuration, the value will be imported as "********".
Properties
Link copied to clipboard
A list of events which should trigger the webhook. See a list of available events