diff --git a/examples/github/easy-github-repository-create-pull-request/README.md b/examples/github/easy-github-repository-create-pull-request/README.md new file mode 100644 index 0000000..e69de29 diff --git a/examples/github/easy-github-repository-create-pull-request/main.tf b/examples/github/easy-github-repository-create-pull-request/main.tf new file mode 100644 index 0000000..47117bb --- /dev/null +++ b/examples/github/easy-github-repository-create-pull-request/main.tf @@ -0,0 +1,9 @@ +resource "github_repository_pull_request" "example" { + base_repository = var.github_repository + base_ref = "main" + head_ref = "feature-branch" + title = "My newest feature" + body = "This will change everything" +} + + diff --git a/examples/github/easy-github-repository-create-pull-request/providers.tf b/examples/github/easy-github-repository-create-pull-request/providers.tf new file mode 100644 index 0000000..84f2ed2 --- /dev/null +++ b/examples/github/easy-github-repository-create-pull-request/providers.tf @@ -0,0 +1,3 @@ +provider "github" { + token = var.github_token +} diff --git a/examples/github/easy-github-repository-create-pull-request/terraform.tf b/examples/github/easy-github-repository-create-pull-request/terraform.tf new file mode 100644 index 0000000..9f3af79 --- /dev/null +++ b/examples/github/easy-github-repository-create-pull-request/terraform.tf @@ -0,0 +1,8 @@ +terraform { + required_providers { + github = { + source = "integrations/github" + version = "~> 4.0" + } + } +} diff --git a/examples/github/easy-github-repository-create-pull-request/variables.tf b/examples/github/easy-github-repository-create-pull-request/variables.tf new file mode 100644 index 0000000..41e345f --- /dev/null +++ b/examples/github/easy-github-repository-create-pull-request/variables.tf @@ -0,0 +1,8 @@ +variable "github_token" { + type = string +} + + +variable "github_repository" { + type = string +}