|
1 | 1 | locals {
|
2 |
| - organization = terraform.workspace |
3 |
| - config = yamldecode(file("${path.module}/../github/${local.organization}.yml")) |
4 |
| - state = { |
| 2 | + organization = terraform.workspace |
| 3 | + config = yamldecode(file("${path.module}/../github/${local.organization}.yml")) |
| 4 | + state = { |
5 | 5 | for resource in jsondecode(file("${path.module}/${local.organization}.tfstate.json")).values.root_module.resources :
|
6 |
| - "${resource.mode}.${resource.type}.${resource.name}.${resource.index}" => merge(resource.values, {"index" = resource.index}) |
| 6 | + "${resource.mode}.${resource.type}.${resource.name}.${resource.index}" => merge(resource.values, { "index" = resource.index }) |
7 | 7 | }
|
8 | 8 | resource_types = []
|
9 | 9 | advanced_security = false
|
| 10 | + defaults = { |
| 11 | + github_membership = { |
| 12 | + username = null |
| 13 | + role = null |
| 14 | + } |
| 15 | + github_repository = { |
| 16 | + name = null |
| 17 | + allow_auto_merge = null |
| 18 | + allow_merge_commit = null |
| 19 | + allow_rebase_merge = null |
| 20 | + allow_squash_merge = null |
| 21 | + allow_update_branch = null |
| 22 | + archive_on_destroy = null |
| 23 | + archived = null |
| 24 | + auto_init = null |
| 25 | + default_branch = null |
| 26 | + delete_branch_on_merge = null |
| 27 | + description = null |
| 28 | + gitignore_template = null |
| 29 | + has_discussions = null |
| 30 | + has_downloads = null |
| 31 | + has_issues = null |
| 32 | + has_projects = null |
| 33 | + has_wiki = null |
| 34 | + homepage_url = null |
| 35 | + ignore_vulnerability_alerts_during_read = null |
| 36 | + is_template = null |
| 37 | + license_template = null |
| 38 | + merge_commit_message = null |
| 39 | + merge_commit_title = null |
| 40 | + squash_merge_commit_message = null |
| 41 | + squash_merge_commit_title = null |
| 42 | + topics = null |
| 43 | + visibility = null |
| 44 | + vulnerability_alerts = null |
| 45 | + security_and_analysis = [] |
| 46 | + pages = [] |
| 47 | + template = [] |
| 48 | + } |
| 49 | + github_repository_collaborator = { |
| 50 | + repository = null |
| 51 | + username = null |
| 52 | + permission = null |
| 53 | + } |
| 54 | + github_branch_protection = { |
| 55 | + pattern = null |
| 56 | + repository_id = null |
| 57 | + allows_deletions = null |
| 58 | + allows_force_pushes = null |
| 59 | + blocks_creations = null |
| 60 | + enforce_admins = null |
| 61 | + lock_branch = null |
| 62 | + push_restrictions = null |
| 63 | + require_conversation_resolution = null |
| 64 | + require_signed_commits = null |
| 65 | + required_linear_history = null |
| 66 | + required_pull_request_reviews = [] |
| 67 | + required_status_checks = [] |
| 68 | + } |
| 69 | + github_team = { |
| 70 | + name = null |
| 71 | + description = null |
| 72 | + parent_team_id = null |
| 73 | + privacy = null |
| 74 | + } |
| 75 | + github_team_repository = { |
| 76 | + repository = null |
| 77 | + team_id = null |
| 78 | + permission = null |
| 79 | + } |
| 80 | + github_team_membership = { |
| 81 | + team_id = null |
| 82 | + username = null |
| 83 | + role = null |
| 84 | + } |
| 85 | + github_repository_file = { |
| 86 | + repository = null |
| 87 | + file = null |
| 88 | + content = null |
| 89 | + branch = null |
| 90 | + overwrite_on_create = null |
| 91 | + commit_author = null |
| 92 | + commit_email = null |
| 93 | + commit_message = null |
| 94 | + } |
| 95 | + github_issue_label = { |
| 96 | + repository = null |
| 97 | + name = null |
| 98 | + color = null |
| 99 | + description = null |
| 100 | + } |
| 101 | + } |
10 | 102 | }
|
0 commit comments