RepositoryProject

class RepositoryProject : KotlinCustomResource

This resource allows you to create and manage projects for GitHub repository.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const example = new github.Repository("example", {
name: "example",
description: "My awesome codebase",
hasProjects: true,
});
const project = new github.RepositoryProject("project", {
name: "A Repository Project",
repository: example.name,
body: "This is a repository project.",
});
import pulumi
import pulumi_github as github
example = github.Repository("example",
name="example",
description="My awesome codebase",
has_projects=True)
project = github.RepositoryProject("project",
name="A Repository Project",
repository=example.name,
body="This is a repository project.")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;
return await Deployment.RunAsync(() =>
{
var example = new Github.Repository("example", new()
{
Name = "example",
Description = "My awesome codebase",
HasProjects = true,
});
var project = new Github.RepositoryProject("project", new()
{
Name = "A Repository Project",
Repository = example.Name,
Body = "This is a repository project.",
});
});
package main
import (
"github.com/pulumi/pulumi-github/sdk/v6/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := github.NewRepository(ctx, "example", &github.RepositoryArgs{
Name: pulumi.String("example"),
Description: pulumi.String("My awesome codebase"),
HasProjects: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = github.NewRepositoryProject(ctx, "project", &github.RepositoryProjectArgs{
Name: pulumi.String("A Repository Project"),
Repository: example.Name,
Body: pulumi.String("This is a repository project."),
})
if err != nil {
return err
}
return nil
})
}
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.RepositoryProject;
import com.pulumi.github.RepositoryProjectArgs;
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 Repository("example", RepositoryArgs.builder()
.name("example")
.description("My awesome codebase")
.hasProjects(true)
.build());
var project = new RepositoryProject("project", RepositoryProjectArgs.builder()
.name("A Repository Project")
.repository(example.name())
.body("This is a repository project.")
.build());
}
}
resources:
example:
type: github:Repository
properties:
name: example
description: My awesome codebase
hasProjects: true
project:
type: github:RepositoryProject
properties:
name: A Repository Project
repository: ${example.name}
body: This is a repository project.

Properties

Link copied to clipboard
val body: Output<String>?

The body of the project.

Link copied to clipboard
val etag: Output<String>
Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the project.

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 project.

Link copied to clipboard
val url: Output<String>

URL of the project

Link copied to clipboard
val urn: Output<String>