Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions examples/github/easy-github-issue-create-issue-label/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# https://github.com/ssbostan/terraform-awesome

# Create a new, red colored label for repo "test_repo"
resource "github_issue_label" "test_repo" {
repository = "test-repo"
name = "Urgent"
color = "FF0000"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# https://github.com/ssbostan/terraform-awesome

provider "github" {
token = var.token
}
10 changes: 10 additions & 0 deletions examples/github/easy-github-issue-create-issue-label/terraform.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# https://github.com/ssbostan/terraform-awesome

terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 4.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# https://github.com/ssbostan/terraform-awesome

variable "token" {
type = string
}
13 changes: 13 additions & 0 deletions examples/github/easy-github-issue-create-new-issue/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://github.com/ssbostan/terraform-awesome

resource "github_repository" "test" {
name = "tf-acc-test-%s"
auto_init = true
has_issues = true
}

resource "github_issue" "test" {
repository = github_repository.test.name
title = "My issue title"
body = "The body of my issue"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# https://github.com/ssbostan/terraform-awesome

provider "github" {
token = var.token
}
10 changes: 10 additions & 0 deletions examples/github/easy-github-issue-create-new-issue/terraform.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# https://github.com/ssbostan/terraform-awesome

terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 4.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# https://github.com/ssbostan/terraform-awesome

variable "token" {
type = string
}