Skip to content

Commit 61054fe

Browse files
committed
fix: fix typo
1 parent 7d219c1 commit 61054fe

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

modules/repository-environment/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ No modules.
4444
| <a name="input_name"></a> [name](#input\_name) | (Required) The name of the environment. | `string` | n/a | yes |
4545
| <a name="input_repository"></a> [repository](#input\_repository) | (Required) The repository name which the environment belongs to. | `string` | n/a | yes |
4646
| <a name="input_allow_admin_to_bypass"></a> [allow\_admin\_to\_bypass](#input\_allow\_admin\_to\_bypass) | (Optional) Whether to allow admins to bypass the wait timer and deployment review. The default value is `true`. | `bool` | `true` | no |
47-
| <a name="input_allows_self_approval"></a> [allows\_self\_approval](#input\_allows\_self\_approval) | (Optional) Whether to allow users to approve their own deployment. The default value is `false`. | `bool` | `false` | no |
47+
| <a name="input_allow_self_approval"></a> [allow\_self\_approval](#input\_allow\_self\_approval) | (Optional) Whether to allow users to approve their own deployment. The default value is `false`. | `bool` | `false` | no |
4848
| <a name="input_deployment_policy"></a> [deployment\_policy](#input\_deployment\_policy) | (Optional) A configuration for deployment policy. `deployment_policy` block as defined below.<br/> (Optional) `restriction` - The type of deployment restriction. Valid values are `NONE`, `PROTECTED_BRANCH`, or `CUSTOM`. Defaults to `NONE`.<br/> (Optional) `branches` - A set of branch name patterns to restrict deployments to when the restriction type is `CUSTOM`.<br/> (Optional) `tags` - A set of tag name patterns to restrict deployments to when the restriction type is `CUSTOM`. | <pre>object({<br/> restriction = optional(string, "NONE")<br/> branches = optional(set(string), [])<br/> tags = optional(set(string), [])<br/> })</pre> | `{}` | no |
4949
| <a name="input_reviewers"></a> [reviewers](#input\_reviewers) | (Optional) A list of reviewers who may review jobs that reference the environment. Up to 6 reviewers can be added to an environment. Each item of `reviewers` block as defined below.<br/> (Required) `type` - The type of the reviewer. Valid values are `USER` or `TEAM`.<br/> (Required) `name` - The username of the reviewer if the type is `USER`, or the team slug if the type is `TEAM`. | <pre>list(object({<br/> type = string<br/> name = string<br/> }))</pre> | `[]` | no |
5050
| <a name="input_secrets"></a> [secrets](#input\_secrets) | (Optional) A map of GitHub Actions secrets to set for the environment. Currently, all values will be ignored and treated as placeholders. You should mange the secrets manually in GitHub after the environment is created. Defaults to `{}`. | `map(string)` | `{}` | no |
@@ -56,7 +56,7 @@ No modules.
5656
| Name | Description |
5757
|------|-------------|
5858
| <a name="output_allow_admin_to_bypass"></a> [allow\_admin\_to\_bypass](#output\_allow\_admin\_to\_bypass) | Whether to allow admins to bypass the wait timer and deployment review. |
59-
| <a name="output_allows_self_approval"></a> [allows\_self\_approval](#output\_allows\_self\_approval) | Whether to allow users to approve their own deployment. |
59+
| <a name="output_allow_self_approval"></a> [allow\_self\_approval](#output\_allow\_self\_approval) | Whether to allow users to approve their own deployment. |
6060
| <a name="output_deployment_policy"></a> [deployment\_policy](#output\_deployment\_policy) | The configuration for deployment policy of the environment. |
6161
| <a name="output_name"></a> [name](#output\_name) | The name of the environment. |
6262
| <a name="output_repository"></a> [repository](#output\_repository) | The repository name which the environment belongs to. |

modules/repository-environment/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ resource "github_repository_environment" "this" {
3030

3131
wait_timer = var.wait_timer
3232
can_admins_bypass = var.allow_admin_to_bypass
33-
prevent_self_review = !var.allows_self_approval
33+
prevent_self_review = !var.allow_self_approval
3434

3535
reviewers {
3636
teams = values(data.github_team.this)[*].id

modules/repository-environment/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ output "allow_admin_to_bypass" {
1818
value = github_repository_environment.this.can_admins_bypass
1919
}
2020

21-
output "allows_self_approval" {
21+
output "allow_self_approval" {
2222
description = "Whether to allow users to approve their own deployment."
2323
value = !github_repository_environment.this.prevent_self_review
2424
}

modules/repository-environment/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ variable "allow_admin_to_bypass" {
2424
nullable = false
2525
}
2626

27-
variable "allows_self_approval" {
27+
variable "allow_self_approval" {
2828
description = "(Optional) Whether to allow users to approve their own deployment. The default value is `false`."
2929
type = bool
3030
default = false

modules/repository/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ This module creates following resources.
6262
| <a name="input_default_branch"></a> [default\_branch](#input\_default\_branch) | (Optional) Set the default branch for the repository. Default is `main` branch. | `string` | `"main"` | no |
6363
| <a name="input_deploy_keys"></a> [deploy\_keys](#input\_deploy\_keys) | (Optional) A list of deploy keys to grant access to the repository. A deploy key is a SSH key. Each item of `deploy_keys` block as defined below.<br/> (Optional) `name` - A name of deploy key.<br/> (Required) `key` - A SSH key. Begins with 'ssh-rsa', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384', 'ecdsa-sha2-nistp521', 'ssh-ed25519', 'sk-ecdsa-sha2-nistp256@openssh.com', or 'sk-ssh-ed25519@openssh.com'.<br/> (Optional) `writable` - Whether to allow write access to the repository. The key can be used to push to the repository if enabled. Defaults to `false`. | <pre>list(object({<br/> name = optional(string)<br/> key = string<br/> writable = optional(bool, false)<br/> }))</pre> | `[]` | no |
6464
| <a name="input_description"></a> [description](#input\_description) | (Optional) A description of the repository. | `string` | `"Managed by Terraform."` | no |
65-
| <a name="input_environments"></a> [environments](#input\_environments) | (Optional) A list of environments for the repository. Each item of `environments` block as defined below.<br/> (Required) `name` - The name of the environment.<br/> (Optional) `wait_timer` - The amount of time in minutes to wait before allowing deployments to proceed. The default value is `0`.<br/> (Optional) `allow_admin_to_bypass` - Whether to allow admins to bypass the wait timer and deployment review. The default value is `true`.<br/> (Optional) `allows_self_approval` - Whether to allow users to approve their own deployment. The default value is `false`.<br/> (Optional) `reviewers` - A list of reviewers who may review jobs that reference the environment. Each item of `reviewers` block as defined below.<br/> (Required) `type` - The type of the reviewer. Valid values are `USER` or `TEAM`.<br/> (Required) `name` - The name of the reviewer. For a user reviewer, the value should be the user's username. For a team reviewer, the value should be the team's slug.<br/> (Optional) `deployment_policy` - A configuration for deployment policy of the environment. `deployment_policy` block as defined below.<br/> (Optional) `restriction` - The type of deployment restriction. Valid values are `NONE`, `PROTECTED_BRANCH`, or `CUSTOM`. Defaults to `NONE`.<br/> (Optional) `branches` - A set of branch name patterns to restrict deployments to when the restriction type is `CUSTOM`.<br/> (Optional) `tags` - A set of tag name patterns to restrict deployments to when the restriction type is `CUSTOM`.<br/> (Optional) `variables` - A map of GitHub Actions variables to set for the environment. Defaults to `{}`.<br/> (Optional) `secrets` - A map of GitHub Actions secrets to set for the environment. Defaults to `{}`. | <pre>list(object({<br/> name = string<br/> wait_timer = optional(number, 0)<br/> allow_admin_to_bypass = optional(bool, true)<br/> allows_self_approval = optional(bool, false)<br/><br/> reviewers = optional(list(object({<br/> type = string<br/> name = string<br/> })), [])<br/> deployment_policy = optional(object({<br/> restriction = optional(string, "NONE")<br/> branches = optional(set(string), [])<br/> tags = optional(set(string), [])<br/> }), {})<br/><br/> variables = optional(map(string), {})<br/> secrets = optional(map(string), {})<br/> }))</pre> | `[]` | no |
65+
| <a name="input_environments"></a> [environments](#input\_environments) | (Optional) A list of environments for the repository. Each item of `environments` block as defined below.<br/> (Required) `name` - The name of the environment.<br/> (Optional) `wait_timer` - The amount of time in minutes to wait before allowing deployments to proceed. The default value is `0`.<br/> (Optional) `allow_admin_to_bypass` - Whether to allow admins to bypass the wait timer and deployment review. The default value is `true`.<br/> (Optional) `allow_self_approval` - Whether to allow users to approve their own deployment. The default value is `false`.<br/> (Optional) `reviewers` - A list of reviewers who may review jobs that reference the environment. Each item of `reviewers` block as defined below.<br/> (Required) `type` - The type of the reviewer. Valid values are `USER` or `TEAM`.<br/> (Required) `name` - The name of the reviewer. For a user reviewer, the value should be the user's username. For a team reviewer, the value should be the team's slug.<br/> (Optional) `deployment_policy` - A configuration for deployment policy of the environment. `deployment_policy` block as defined below.<br/> (Optional) `restriction` - The type of deployment restriction. Valid values are `NONE`, `PROTECTED_BRANCH`, or `CUSTOM`. Defaults to `NONE`.<br/> (Optional) `branches` - A set of branch name patterns to restrict deployments to when the restriction type is `CUSTOM`.<br/> (Optional) `tags` - A set of tag name patterns to restrict deployments to when the restriction type is `CUSTOM`.<br/> (Optional) `variables` - A map of GitHub Actions variables to set for the environment. Defaults to `{}`.<br/> (Optional) `secrets` - A map of GitHub Actions secrets to set for the environment. Defaults to `{}`. | <pre>list(object({<br/> name = string<br/> wait_timer = optional(number, 0)<br/> allow_admin_to_bypass = optional(bool, true)<br/> allow_self_approval = optional(bool, false)<br/><br/> reviewers = optional(list(object({<br/> type = string<br/> name = string<br/> })), [])<br/> deployment_policy = optional(object({<br/> restriction = optional(string, "NONE")<br/> branches = optional(set(string), [])<br/> tags = optional(set(string), [])<br/> }), {})<br/><br/> variables = optional(map(string), {})<br/> secrets = optional(map(string), {})<br/> }))</pre> | `[]` | no |
6666
| <a name="input_features"></a> [features](#input\_features) | (Optional) A list of enabled features on the repository. Available features: `DISCUSSIONS`, `ISSUES`, `PROJECTS`, `WIKI`. Defaults to `["ISSUES"]` | `set(string)` | <pre>[<br/> "ISSUES"<br/>]</pre> | no |
6767
| <a name="input_files"></a> [files](#input\_files) | (Optional) A list of files to create and manage within the repository. Each item of `files` block as defined below.<br/> (Required) `file` - A `file` block as defined below.<br/> (Required) `path` - The path of the file to manage.<br/> (Required) `content` - The file content.<br/> (Optional) `commit` - A `commit` block as defined below.<br/> (Optional) `author` - Committer author name to use. NOTE: GitHub app users may omit author and email information so GitHub can verify commits as the GitHub App. This maybe useful when a branch protection rule requires signed commits.<br/> (Optional) `email` - Committer email address to use. NOTE: GitHub app users may omit author and email information so GitHub can verify commits as the GitHub App. This may be useful when a branch protection rule requires signed commits.<br/> (Optional) `message` - The commit message when creating, updating or deleting the managed file. Defaults to `chore: managed by Terraform.`.<br/> (Optional) `overwrite_on_create` - Enable overwriting existing files. If set to true it will overwrite an existing file with the same name. If set to false it will fail if there is an existing file with the same name. Defaults to `true`. | <pre>list(object({<br/> file = object({<br/> path = string<br/> content = string<br/> })<br/> commit = optional(object({<br/> author = optional(string)<br/> email = optional(string)<br/> message = optional(string, "chore: managed by Terraform.")<br/> }), {})<br/> overwrite_on_create = optional(bool, true)<br/> }))</pre> | `[]` | no |
6868
| <a name="input_homepage"></a> [homepage](#input\_homepage) | (Optional) A URL of website describing the repository. | `string` | `""` | no |

modules/repository/actions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module "environment" {
1616
wait_timer = each.value.wait_timer
1717

1818
allow_admin_to_bypass = each.value.allow_admin_to_bypass
19-
allows_self_approval = each.value.allows_self_approval
19+
allow_self_approval = each.value.allow_self_approval
2020

2121
reviewers = [
2222
for reviewer in each.value.reviewers :

modules/repository/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ variable "environments" {
314314
(Required) `name` - The name of the environment.
315315
(Optional) `wait_timer` - The amount of time in minutes to wait before allowing deployments to proceed. The default value is `0`.
316316
(Optional) `allow_admin_to_bypass` - Whether to allow admins to bypass the wait timer and deployment review. The default value is `true`.
317-
(Optional) `allows_self_approval` - Whether to allow users to approve their own deployment. The default value is `false`.
317+
(Optional) `allow_self_approval` - Whether to allow users to approve their own deployment. The default value is `false`.
318318
(Optional) `reviewers` - A list of reviewers who may review jobs that reference the environment. Each item of `reviewers` block as defined below.
319319
(Required) `type` - The type of the reviewer. Valid values are `USER` or `TEAM`.
320320
(Required) `name` - The name of the reviewer. For a user reviewer, the value should be the user's username. For a team reviewer, the value should be the team's slug.
@@ -329,7 +329,7 @@ variable "environments" {
329329
name = string
330330
wait_timer = optional(number, 0)
331331
allow_admin_to_bypass = optional(bool, true)
332-
allows_self_approval = optional(bool, false)
332+
allow_self_approval = optional(bool, false)
333333

334334
reviewers = optional(list(object({
335335
type = string

0 commit comments

Comments
 (0)