Issue Label
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
// Create a new, red colored label
const testRepo = new github.IssueLabel("test_repo", {
repository: "test-repo",
name: "Urgent",
color: "FF0000",
});Content copied to clipboard
import pulumi
import pulumi_github as github
# Create a new, red colored label
test_repo = github.IssueLabel("test_repo",
repository="test-repo",
name="Urgent",
color="FF0000")Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;
return await Deployment.RunAsync(() =>
{
// Create a new, red colored label
var testRepo = new Github.IssueLabel("test_repo", new()
{
Repository = "test-repo",
Name = "Urgent",
Color = "FF0000",
});
});Content copied to clipboard
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 {
// Create a new, red colored label
_, err := github.NewIssueLabel(ctx, "test_repo", &github.IssueLabelArgs{
Repository: pulumi.String("test-repo"),
Name: pulumi.String("Urgent"),
Color: pulumi.String("FF0000"),
})
if err != nil {
return err
}
return nil
})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.IssueLabel;
import com.pulumi.github.IssueLabelArgs;
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) {
// Create a new, red colored label
var testRepo = new IssueLabel("testRepo", IssueLabelArgs.builder()
.repository("test-repo")
.name("Urgent")
.color("FF0000")
.build());
}
}Content copied to clipboard
resources:
# Create a new, red colored label
testRepo:
type: github:IssueLabel
name: test_repo
properties:
repository: test-repo
name: Urgent
color: FF0000Content copied to clipboard
Import
GitHub Issue Labels can be imported using an ID made up of repository:name, e.g.
$ pulumi import github:index/issueLabel:IssueLabel panic_label terraform:panicContent copied to clipboard