RepositoryAutolinkReference

class RepositoryAutolinkReference : KotlinCustomResource

This resource allows you to create and manage an autolink reference for a single repository.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.Repository;
import com.pulumi.github.RepositoryArgs;
import com.pulumi.github.RepositoryAutolinkReference;
import com.pulumi.github.RepositoryAutolinkReferenceArgs;
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 repo = new Repository("repo", RepositoryArgs.builder()
.description("GitHub repo managed by Terraform")
.private_(false)
.build());
var autolink = new RepositoryAutolinkReference("autolink", RepositoryAutolinkReferenceArgs.builder()
.repository(repo.name())
.keyPrefix("TICKET-")
.targetUrlTemplate("https://example.com/TICKET?query=<num>")
.build());
}
}

Import

Import by key prefix

$ pulumi import github:index/repositoryAutolinkReference:RepositoryAutolinkReference auto oof/OOF-

Properties

Link copied to clipboard
val etag: Output<String>

An etag representing the autolink reference object.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val isAlphanumeric: Output<Boolean>?

Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. Default is true.

Link copied to clipboard
val keyPrefix: Output<String>

This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.

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

The repository of the autolink reference.

Link copied to clipboard

The template of the target URL used for the links; must be a valid URL and contain <num> for the reference number

Link copied to clipboard
val urn: Output<String>