Issue Labels Args
Provides GitHub issue labels resource. This resource allows you to create and manage issue labels within your GitHub organization.
Note: github.IssueLabels cannot be used in conjunction with github.IssueLabel or they will fight over what your policy should be. This resource is authoritative. For adding a label to a repo in a non-authoritative manner, use github.IssueLabel instead. If you change the case of a label's name, its' color, or description, this resource will edit the existing label to match the new values. However, if you change the name of a label, this resource will create a new label with the new name and delete the old label. Beware that this will remove the label from any issues it was previously attached to.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.IssueLabels;
import com.pulumi.github.IssueLabelsArgs;
import com.pulumi.github.inputs.IssueLabelsLabelArgs;
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 testRepo = new IssueLabels("testRepo", IssueLabelsArgs.builder()
.labels(
IssueLabelsLabelArgs.builder()
.color("FF0000")
.name("Urgent")
.build(),
IssueLabelsLabelArgs.builder()
.color("FF0000")
.name("Critical")
.build())
.repository("test-repo")
.build());
}
}
Import
GitHub Issue Labels can be imported using the repository name
, e.g.
$ pulumi import github:index/issueLabels:IssueLabels test_repo test_repo