Skip to content

Latest commit

 

History

History
106 lines (82 loc) · 1.92 KB

github_repository_collaborator.md

File metadata and controls

106 lines (82 loc) · 1.92 KB

github_repository_collaborator

back

Index

Terraform

terraform {
  required_providers {
    github = ">= 4.6.0"
  }
}

top

Example Usage

module "github_repository_collaborator" {
  source = "./modules/github/r/github_repository_collaborator"

  # permission - (optional) is a type of string
  permission = null
  # permission_diff_suppression - (optional) is a type of bool
  permission_diff_suppression = null
  # repository - (required) is a type of string
  repository = null
  # username - (required) is a type of string
  username = null
}

top

Variables

variable "permission" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "permission_diff_suppression" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "repository" {
  description = "(required)"
  type        = string
}

variable "username" {
  description = "(required)"
  type        = string
}

top

Resource

resource "github_repository_collaborator" "this" {
  # permission - (optional) is a type of string
  permission = var.permission
  # permission_diff_suppression - (optional) is a type of bool
  permission_diff_suppression = var.permission_diff_suppression
  # repository - (required) is a type of string
  repository = var.repository
  # username - (required) is a type of string
  username = var.username
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = github_repository_collaborator.this.id
}

output "invitation_id" {
  description = "returns a string"
  value       = github_repository_collaborator.this.invitation_id
}

output "this" {
  value = github_repository_collaborator.this
}

top