Skip to content

Commit 16296f4

Browse files
committed
fix current state
1 parent 4437652 commit 16296f4

File tree

4 files changed

+21
-34
lines changed

4 files changed

+21
-34
lines changed

terraform/main.tf

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,6 @@ terraform {
66
github = {
77
source = "integrations/github"
88
}
9-
10-
# Random Provider
11-
# https://registry.terraform.io/providers/hashicorp/random/latest/docs
12-
13-
random = {
14-
source = "hashicorp/random"
15-
}
16-
17-
# Time Provider
18-
# https://registry.terraform.io/providers/hashicorp/time/latest/docs
19-
20-
time = {
21-
source = "hashicorp/time"
22-
}
239
}
2410
}
2511

terraform/resources-repos.tf

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@ resource "github_repository" "this" {
88

99
for_each = var.repositories
1010

11-
allow_auto_merge = each.value.allow_auto_merge
12-
allow_merge_commit = each.value.allow_merge_commit
13-
allow_rebase_merge = each.value.allow_rebase_merge
14-
allow_squash_merge = each.value.allow_squash_merge
15-
allow_update_branch = each.value.allow_update_branch
16-
archive_on_destroy = true
17-
delete_branch_on_merge = true
18-
description = each.value.description
19-
has_downloads = each.value.has_downloads
20-
has_discussions = each.value.has_discussions
21-
has_issues = true
22-
has_projects = true
23-
has_wiki = each.value.has_wiki
24-
is_template = each.value.is_template
25-
name = each.key
26-
topics = each.value.topics
27-
visibility = each.value.visibility
28-
vulnerability_alerts = true
11+
allow_auto_merge = each.value.allow_auto_merge
12+
allow_merge_commit = each.value.allow_merge_commit
13+
allow_rebase_merge = each.value.allow_rebase_merge
14+
allow_squash_merge = each.value.allow_squash_merge
15+
allow_update_branch = each.value.allow_update_branch
16+
archive_on_destroy = true
17+
delete_branch_on_merge = each.value.delete_branch_on_merge
18+
description = each.value.description
19+
has_downloads = each.value.has_downloads
20+
has_discussions = each.value.has_discussions
21+
has_issues = true
22+
has_projects = true
23+
has_wiki = each.value.has_wiki
24+
is_template = each.value.is_template
25+
name = each.key
26+
topics = each.value.topics
27+
visibility = each.value.visibility
28+
vulnerability_alerts = true
2929

3030
dynamic "template" {
3131
for_each = each.value.template != null ? [each.value.template] : []

terraform/tfstate.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"version": 4,
33
"terraform_version": "1.9.3",
4-
"serial": 95,
4+
"serial": 98,
55
"lineage": "425397de-8394-a003-8a6c-bce854d9cc53",
66
"outputs": {},
77
"resources": [
@@ -316,7 +316,7 @@
316316
"default_branch": "main",
317317
"delete_branch_on_merge": true,
318318
"description": "The controls for managing Django Commons projects",
319-
"etag": "W/\"312b9849a32911763a28d044423d2f70b3a8352f77a1d37492b6c86a0cdceece\"",
319+
"etag": "W/\"ea2861ea815a93f58cb6de87bdeadf4180c8867141f15b04bed786ba41e1580b\"",
320320
"full_name": "django-commons/controls",
321321
"git_clone_url": "git://github.com/django-commons/controls.git",
322322
"gitignore_template": null,

terraform/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ variable "repositories" {
2727
allow_rebase_merge = optional(bool, false)
2828
allow_squash_merge = optional(bool, true)
2929
allow_update_branch = optional(bool, true)
30+
delete_branch_on_merge = optional(bool, true)
3031
enable_branch_protection = optional(bool, true)
3132
has_discussions = optional(bool, true)
3233
has_downloads = optional(bool, true)

0 commit comments

Comments
 (0)