From 113f2a88b4a484d972a38f1f8c79c415509f83da Mon Sep 17 00:00:00 2001 From: Alexey Zhokhov Date: Sun, 11 Oct 2026 16:04:25 +0700 Subject: [PATCH 1/2] chore(policy): rename managed repo key to github-terraform GitHub repository renamed jackin-project/jackin-github-terraform -> jackin-project/github-terraform; inventory key, guards, and import triples follow the new slug. Signed-off-by: Alexey Zhokhov --- README.md | 2 +- REUSE.toml | 2 +- checks.tf | 16 ++++++++-------- imports.tf | 12 ++++++------ variables.tf | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 48cd478..f9c6c5b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# jackin-github-terraform +# github-terraform Manages GitHub repository settings and branch/tag protection for the `jackin-project` organization: 9 repositories, each with repository merge diff --git a/REUSE.toml b/REUSE.toml index 216a0c8..cf9f858 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -2,7 +2,7 @@ version = 1 SPDX-PackageName = "jackin-github-terraform" SPDX-PackageSupplier = "Alexey Zhokhov " -SPDX-PackageDownloadLocation = "https://github.com/jackin-project/jackin-github-terraform" +SPDX-PackageDownloadLocation = "https://github.com/jackin-project/github-terraform" SPDX-PackageOriginator = "Person: Alexey Zhokhov" # Declare copyright and license for the whole repository. Source files also diff --git a/checks.tf b/checks.tf index 73ce701..8a688a6 100644 --- a/checks.tf +++ b/checks.tf @@ -5,7 +5,7 @@ check "mandatory_target_repositories_present" { assert { - condition = toset(keys(var.repository_policies)) == toset(["homebrew-tap", "jackin", "jackin-agent-smith", "jackin-dev", "jackin-github-terraform", "jackin-marketplace", "jackin-role-action", "jackin-sentinel", "jackin-the-architect"]) + condition = toset(keys(var.repository_policies)) == toset(["homebrew-tap", "jackin", "jackin-agent-smith", "jackin-dev", "github-terraform", "jackin-marketplace", "jackin-role-action", "jackin-sentinel", "jackin-the-architect"]) error_message = "repository_policies must contain exactly the 9 managed jackin-project repositories (8 standard plus jackin-marketplace)." } } @@ -37,19 +37,19 @@ check "no_ci_exception_allowlist_is_explicit" { check "self_protection_enforced" { assert { - condition = contains(keys(var.repository_policies), "jackin-github-terraform") - error_message = "jackin-github-terraform must remain in the managed repository inventory; every inventory entry receives both rulesets." + condition = contains(keys(var.repository_policies), "github-terraform") + error_message = "github-terraform must remain in the managed repository inventory; every inventory entry receives both rulesets." } } check "jackin_terraform_required_checks_match_ci" { assert { - condition = contains(keys(var.repository_policies), "jackin-github-terraform") ? ( - length(var.repository_policies["jackin-github-terraform"].required_checks) == 2 && - contains(var.repository_policies["jackin-github-terraform"].required_checks, "Required") && - contains(var.repository_policies["jackin-github-terraform"].required_checks, "DCO") + condition = contains(keys(var.repository_policies), "github-terraform") ? ( + length(var.repository_policies["github-terraform"].required_checks) == 2 && + contains(var.repository_policies["github-terraform"].required_checks, "Required") && + contains(var.repository_policies["github-terraform"].required_checks, "DCO") ) : false - error_message = "jackin-github-terraform must require the current green CI aggregator (Required) and DCO checks." + error_message = "github-terraform must require the current green CI aggregator (Required) and DCO checks." } } diff --git a/imports.tf b/imports.tf index 49bf96b..46a3c62 100644 --- a/imports.tf +++ b/imports.tf @@ -62,18 +62,18 @@ import { } import { - to = module.repository_policy.github_repository.managed_settings["jackin-github-terraform"] - id = "jackin-github-terraform" + to = module.repository_policy.github_repository.managed_settings["github-terraform"] + id = "github-terraform" } import { - to = module.repository_policy.github_repository_ruleset.protect_main["jackin-github-terraform"] - id = "jackin-github-terraform:15175310" + to = module.repository_policy.github_repository_ruleset.protect_main["github-terraform"] + id = "github-terraform:15175310" } import { - to = module.repository_policy.github_repository_ruleset.protect_tags["jackin-github-terraform"] - id = "jackin-github-terraform:15179227" + to = module.repository_policy.github_repository_ruleset.protect_tags["github-terraform"] + id = "github-terraform:15179227" } import { diff --git a/variables.tf b/variables.tf index 6ea481f..27237f3 100644 --- a/variables.tf +++ b/variables.tf @@ -39,7 +39,7 @@ variable "repository_policies" { visibility = "public" required_checks = ["Required", "DCO"] } - "jackin-github-terraform" = { + "github-terraform" = { visibility = "public" required_checks = ["Required", "DCO"] } From 37023df367a3f33b157341e41d1776eb6f5d494e Mon Sep 17 00:00:00 2001 From: Alexey Zhokhov Date: Sun, 11 Oct 2026 16:09:06 +0700 Subject: [PATCH 2/2] chore(rename): finish package identity (REUSE.toml, NOTICE) Signed-off-by: Alexey Zhokhov --- NOTICE | 2 +- REUSE.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NOTICE b/NOTICE index bd489a0..056e453 100644 --- a/NOTICE +++ b/NOTICE @@ -1,4 +1,4 @@ -jackin-github-terraform +github-terraform Copyright 2026 Alexey Zhokhov This product includes software developed by Alexey Zhokhov diff --git a/REUSE.toml b/REUSE.toml index cf9f858..472919d 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -1,6 +1,6 @@ version = 1 -SPDX-PackageName = "jackin-github-terraform" +SPDX-PackageName = "github-terraform" SPDX-PackageSupplier = "Alexey Zhokhov " SPDX-PackageDownloadLocation = "https://github.com/jackin-project/github-terraform" SPDX-PackageOriginator = "Person: Alexey Zhokhov"