From a2b9b6f8c978d54b1d4f27abbf1e1e087967b3de Mon Sep 17 00:00:00 2001 From: Dave Arnold Date: Tue, 18 Feb 2025 21:43:08 -0800 Subject: [PATCH] Remove unnecessary blank lines in github_files.tf for improved readability --- github_files.tf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/github_files.tf b/github_files.tf index d9b70ea..f3bee96 100644 --- a/github_files.tf +++ b/github_files.tf @@ -1,6 +1,6 @@ locals { repo_exists = var.create_repo ? github_repository.repo[0] : data.github_repository.existing[0] - + # Process files only if commit signing is not required or if explicitly allowed should_manage_files = !try(local.repo_exists.require_signed_commits, false) || var.allow_unsigned_files } @@ -17,7 +17,7 @@ resource "github_repository_file" "codeowners" { commit_author = var.commit_author commit_email = var.commit_email overwrite_on_create = true - + lifecycle { ignore_changes = [ content, @@ -53,7 +53,7 @@ locals { resource "github_repository_file" "extra_files" { for_each = local.should_manage_files ? tomap({ for file in local.extra_files : "${element(split("/", file.path), length(split("/", file.path)) - 1)}" => file }) : {} - + repository = local.repo_exists.name branch = var.github_default_branch file = each.value.path @@ -62,7 +62,7 @@ resource "github_repository_file" "extra_files" { commit_author = var.commit_author commit_email = var.commit_email overwrite_on_create = true - + lifecycle { ignore_changes = [ content, @@ -73,7 +73,7 @@ resource "github_repository_file" "extra_files" { resource "github_repository_file" "managed_extra_files" { for_each = local.should_manage_files ? tomap({ for file in var.managed_extra_files : "${element(split("/", file.path), length(split("/", file.path)) - 1)}" => file }) : {} - + repository = local.repo_exists.name branch = var.github_default_branch file = each.value.path @@ -82,7 +82,7 @@ resource "github_repository_file" "managed_extra_files" { commit_author = var.commit_author commit_email = var.commit_email overwrite_on_create = true - + lifecycle { ignore_changes = [ branch