repository

dwp/repository/github

Terraform Module HCL GITHUB

Terraform module to manage GitHub repositories

Install
module "repository" {
source = "dwp/repository/github"
version = "0.0.4"
}
plain text: /constructs/tfmod-dwp-repository-github/install.txt
⭐ Source on GitHub 📦 Registry page
README

GitHub Repository Terraform Module Terraform module to manage GitHub repositories Requirements - Terraform 0.14 - GitHub personal access token with the following permissions: - admin:repo_hook, delete_repo, read:org, read:user, repo - A GitHub organisation or user Usage For a GitHub organisation ``hcl module "my_repo" { source = "dwp/repository/github" name = "my-repo" } ` For a GitHub user `hcl module "my_repo" { source = "dwp/repository/github" name = "my-repo" branch_protection_enabled = false } ` Example `hcl variable "github_organization" { type = string description = "GitHub Organisation to create repos in" default = "dwp" } variable "github_token" { type = string description = "GitHub personal access token for managing repos" } provider "github" { token = var.github_token organizati

Inputs (26)
NameTypeDescriptionDefault
namestringName of the repository. Can only contain lowercase letters, numbers, and hyphens required
auto_initbool(Optional) Meaningful only during create, set to true to produce an initial commtrue
topicslist(string)(Optional) A list of GitHub topics to add to this repository[ "govuk", "hacktoberfest" ]
branch_protection_enabledbool(Optional) Control branch protection for the default branchtrue
enforce_adminsbool(Optional) Enforce status checks for repository administratorstrue
require_status_checksbool(Optional) Require all status checks listed in status_checks to passtrue
has_downloadsbool(Optional) Enables GitHub issuesfalse
is_templatebool(Optional) Tells GitHub it's a template repositoryfalse
allow_merge_commitbool(Optional) Set to `false` to disable merge commits on the repositoryfalse
status_checkslist(any)(Optional) A list of required passing CI checks[]
dismiss_stale_reviewsbool(Optional) Dismiss approved reviews automatically when a new commit is pushedtrue
require_code_owner_reviewsbool(Optional) Require an approved review in pull requests including files with a defalse
required_approving_review_countnumber(Optional) Require x number of approvals to satisfy branch protection requiremen1
homepage_urlstring(Optional) Home page URL for the Git repo""
has_issuesbool(Optional) Enables GitHub issuestrue
has_wikibool(Optional) Enables GitHub wikifalse
templateobject({ owner = string (Optional) Use a template repository to create this repository{ "owner": "", "repo": "" }
team_accessmap(object({ team_id = strA map of access to the repository{}
allow_rebase_mergebool(Optional) Set to `false` to disable rebase merges on the repositorytrue
labelsmap(object({ name =(Optional) A map of labels to add to this repository{ "invalid": { "color_hex": "00000
delete_branch_on_mergebool(Optional) Automatically delete head branch after a pull request is mergedtrue
Resources (4)
github_branch_protection_v3github_issue_labelgithub_repositorygithub_team_repository
Topics & Tags
hacktoberfestgovuk
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.4
Cloud GITHUB
★ Stars3
Forks6
Total downloads1.2k
Inputs26
Resources4
LicenseMIT
Namespacedwp
Updated