ServiceGithub

class ServiceGithub : KotlinCustomResource

The gitlab.ServiceGithub resource allows to manage the lifecycle of a project integration with GitHub.

This resource requires a GitLab Enterprise instance. 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.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.ServiceGithub;
import com.pulumi.gitlab.ServiceGithubArgs;
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 awesomeProject = new Project("awesomeProject", ProjectArgs.builder()
.description("My awesome project.")
.visibilityLevel("public")
.build());
var github = new ServiceGithub("github", ServiceGithubArgs.builder()
.project(awesomeProject.id())
.token("REDACTED")
.repositoryUrl("https://github.com/gitlabhq/terraform-provider-gitlab")
.build());
}
}

Import

$ pulumi import gitlab:index/serviceGithub:ServiceGithub You can import a service_github state using `<resource> <project_id>`
$ pulumi import gitlab:index/serviceGithub:ServiceGithub github 1

Properties

Link copied to clipboard
val active: Output<Boolean>

Whether the integration is active.

Link copied to clipboard
val createdAt: Output<String>

Create time.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val project: Output<String>

ID of the project you want to activate integration on.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val repositoryUrl: Output<String>

The URL of the GitHub repo to integrate with, e,g, https://github.com/gitlabhq/terraform-provider-gitlab.

Link copied to clipboard
val staticContext: Output<Boolean>?

Append instance name instead of branch to the status. Must enable to set a GitLab status check as required in GitHub. See Static / dynamic status check names to learn more.

Link copied to clipboard
val title: Output<String>

Title.

Link copied to clipboard
val token: Output<String>

A GitHub personal access token with at least repo:status scope.

Link copied to clipboard
val updatedAt: Output<String>

Update time.

Link copied to clipboard
val urn: Output<String>