Group Hook
The gitlab.GroupHook
resource allows to manage the lifecycle of a group hook. Upstream API: GitLab REST API docs
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.GroupHook;
import com.pulumi.gitlab.GroupHookArgs;
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 example = new GroupHook("example", GroupHookArgs.builder()
.group("example/hooked")
.mergeRequestsEvents(true)
.url("https://example.com/hook/example")
.build());
var allAttributes = new GroupHook("allAttributes", GroupHookArgs.builder()
.confidentialIssuesEvents(false)
.confidentialNoteEvents(true)
.deploymentEvents(true)
.enableSslVerification(false)
.group(1)
.issuesEvents(false)
.jobEvents(true)
.mergeRequestsEvents(true)
.noteEvents(true)
.pipelineEvents(true)
.pushEvents(true)
.pushEventsBranchFilter("devel")
.releasesEvents(true)
.subgroupEvents(true)
.tagPushEvents(true)
.token("supersecret")
.url("http://example.com")
.wikiPageEvents(true)
.build());
}
}
Import
A GitLab Group Hook can be imported using a key composed of <group-id>:<hook-id>
, e.g.
$ pulumi import gitlab:index/groupHook:GroupHook example "12345:1"
NOTEthe token
resource attribute is not available for imported resources as this information cannot be read from the GitLab API.
Properties
Invoke the hook for confidential issues events.
Invoke the hook for confidential notes events.
Invoke the hook for deployment events.
Enable ssl verification when invoking the hook.
Invoke the hook for issues events.
Invoke the hook for merge requests.
Invoke the hook for notes events.
Invoke the hook for pipeline events.
Invoke the hook for push events.
Invoke the hook for push events on matching branches only.
Invoke the hook for releases events.
Invoke the hook for subgroup events.
Invoke the hook for tag push events.
Invoke the hook for wiki page events.