|
| 1 | +# --------------------------------------------------------------------------------------------------------------------- |
| 2 | +# ENVIRONMENT VARIABLES |
| 3 | +# Define these secrets as environment variables. |
| 4 | +# --------------------------------------------------------------------------------------------------------------------- |
| 5 | + |
| 6 | +# GITHUB_ORGANIZATION |
| 7 | +# GITHUB_TOKEN |
| 8 | + |
| 9 | +# --------------------------------------------------------------------------------------------------------------------- |
| 10 | +# REQUIRED VARIABLES |
| 11 | +# These variables must be set when using this module. |
| 12 | +# --------------------------------------------------------------------------------------------------------------------- |
| 13 | + |
| 14 | +# --------------------------------------------------------------------------------------------------------------------- |
| 15 | +# OPTIONAL VARIABLES |
| 16 | +# These variables have defaults, but may be overridden. |
| 17 | +# --------------------------------------------------------------------------------------------------------------------- |
| 18 | + |
| 19 | +variable "name" { |
| 20 | + description = "The name of the created repository." |
| 21 | + type = string |
| 22 | + default = "test-public-repository-with-collaborators" |
| 23 | +} |
| 24 | + |
| 25 | +variable "description" { |
| 26 | + description = "The description of the created repository." |
| 27 | + type = string |
| 28 | + default = "A public repository created with terraform to test the terraform-github-repository module." |
| 29 | +} |
| 30 | + |
| 31 | +variable "url" { |
| 32 | + description = "The url of the created repository." |
| 33 | + type = string |
| 34 | + default = "https://github.com/mineiros-io" |
| 35 | +} |
| 36 | + |
| 37 | + |
| 38 | +variable "has_issues" { |
| 39 | + description = "Set to true to enable the GitHub Issues features on the repository." |
| 40 | + type = bool |
| 41 | + default = false |
| 42 | +} |
| 43 | + |
| 44 | +variable "has_projects" { |
| 45 | + description = "Set to true to enable the GitHub Projects features on the repository." |
| 46 | + type = bool |
| 47 | + default = false |
| 48 | +} |
| 49 | + |
| 50 | +variable "has_wiki" { |
| 51 | + description = "Set to true to enable the GitHub Wiki features on the repository." |
| 52 | + type = bool |
| 53 | + default = false |
| 54 | +} |
| 55 | + |
| 56 | +variable "allow_merge_commit" { |
| 57 | + description = "Set to false to disable merge commits on the repository." |
| 58 | + type = bool |
| 59 | + default = true |
| 60 | +} |
| 61 | + |
| 62 | +variable "allow_squash_merge" { |
| 63 | + description = "Set to true to enable squash merges on the repository." |
| 64 | + type = bool |
| 65 | + default = false |
| 66 | +} |
| 67 | + |
| 68 | +variable "allow_rebase_merge" { |
| 69 | + description = "Set to true to enable rebase merges on the repository." |
| 70 | + type = bool |
| 71 | + default = false |
| 72 | +} |
| 73 | + |
| 74 | +variable "has_downloads" { |
| 75 | + description = "Set to true to enable the (deprecated) downloads features on the repository." |
| 76 | + type = bool |
| 77 | + default = false |
| 78 | +} |
| 79 | + |
| 80 | +variable "auto_init" { |
| 81 | + description = "Wether or not to produce an initial commit in the repository." |
| 82 | + type = bool |
| 83 | + default = true |
| 84 | +} |
| 85 | + |
| 86 | +variable "gitignore_template" { |
| 87 | + description = "Use the name of the template without the extension. For example, Haskell. Available templates: https://github.com/github/gitignore" |
| 88 | + type = string |
| 89 | + default = "Terraform" |
| 90 | +} |
| 91 | + |
| 92 | +variable "license_template" { |
| 93 | + description = "Use the name of the template without the extension. For example, 'mit' or 'mpl-2.0'. Available licences: https://github.com/github/choosealicense.com/tree/gh-pages/_licenses" |
| 94 | + type = string |
| 95 | + default = "mit" |
| 96 | +} |
| 97 | + |
| 98 | +variable "topics" { |
| 99 | + description = "The list of topics of the repository." |
| 100 | + type = list(string) |
| 101 | + default = ["terraform", "integration-test"] |
| 102 | +} |
| 103 | + |
| 104 | +variable "admin_collaborators" { |
| 105 | + description = "A list of GitHub usernames that should be added as admin collaborators to the created repository." |
| 106 | + type = list(string) |
| 107 | + default = ["terraform-test-user-1"] |
| 108 | +} |
| 109 | + |
| 110 | +variable "webhook_url" { |
| 111 | + description = "Send events to this URL" |
| 112 | + type = string |
| 113 | + default = "https://example.com/events" |
| 114 | +} |
| 115 | + |
| 116 | +variable "webhook_content_type" { |
| 117 | + description = "Use this content-type in the webhook" |
| 118 | + type = string |
| 119 | + default = "application/json" |
| 120 | +} |
| 121 | + |
| 122 | +variable "webhook_insecure_ssl" { |
| 123 | + description = "Configure TLS encryption on the webhook" |
| 124 | + type = bool |
| 125 | + default = true |
| 126 | +} |
| 127 | + |
| 128 | +variable "webhook_secret" { |
| 129 | + description = "The shared secret for the webhook" |
| 130 | + type = string |
| 131 | + default = "correct horse battery staple" |
| 132 | +} |
| 133 | + |
| 134 | +variable "webhook_active" { |
| 135 | + description = "Indicate if the webhook should receive events" |
| 136 | + type = bool |
| 137 | + default = true |
| 138 | +} |
| 139 | + |
| 140 | +variable "webhook_events" { |
| 141 | + description = "The events which will trigger this webhook" |
| 142 | + type = list(string) |
| 143 | + default = ["issues"] |
| 144 | +} |
0 commit comments