diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 8945fa5..158c88c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.104.0" + ".": "1.105.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index dabc26d..8bdfa21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Releases are automated via release-please from Conventional Commits. +## [1.105.0](https://github.com/JacobPEvans/tofu-github/compare/v1.104.0...v1.105.0) (2026-11-23) + + +### Features + +* **ci-fix:** declare the CI-fix dry-run variable and let nix-ai publish fixes ([#638](https://github.com/JacobPEvans/tofu-github/issues/638)) ([5cd0691](https://github.com/JacobPEvans/tofu-github/commit/5cd0691e976cbb37fb22dca321665239fa47fd4b)) + ## [1.104.0](https://github.com/JacobPEvans/tofu-github/compare/v1.103.0...v1.104.0) (2026-11-23) diff --git a/ci-fix-variables.tf b/ci-fix-variables.tf index 7976f79..c776e37 100644 --- a/ci-fix-variables.tf +++ b/ci-fix-variables.tf @@ -1,6 +1,7 @@ # Per-repository text for the canonical CI-fix caller (.github/workflows/ci-fix.yml), set as the # CI_FIX_REPO_CONTEXT, CI_FIX_CI_STRUCTURE and CI_FIX_EXTRA_TOOLS repository variables the caller reads. # The AI_AGENT_CI_FIX_ENABLED and AI_AGENT_PR_REVIEW_ENABLED variables opt into their caller workflows. +# AI_AGENT_CI_FIX_DRY_RUN set to 'false' lets the CI-fix caller publish; the caller runs dry without it. # Public repositories come from config/orgs//ci-fix.yml; private repositories from the `ci_fix` key of # their private repo override, so no private name is committed. A key that is unset or empty sets no variable. @@ -16,6 +17,7 @@ locals { extra_tools = "CI_FIX_EXTRA_TOOLS" ai_agent_ci_fix_enabled = "AI_AGENT_CI_FIX_ENABLED" ai_agent_pr_review_enabled = "AI_AGENT_PR_REVIEW_ENABLED" + ai_agent_ci_fix_dry_run = "AI_AGENT_CI_FIX_DRY_RUN" } ci_fix_variables = merge([ for repo, cfg in local.ci_fix_repos : { diff --git a/config/orgs/jpe-nix/ci-fix.yml b/config/orgs/jpe-nix/ci-fix.yml index 3064ed9..baecd32 100644 --- a/config/orgs/jpe-nix/ci-fix.yml +++ b/config/orgs/jpe-nix/ci-fix.yml @@ -8,7 +8,9 @@ # extra_tools: extra allowed agent tools, e.g. Bash(tofu:*) -> CI_FIX_EXTRA_TOOLS # ai_agent_ci_fix_enabled: enable the CI-fix workflow -> AI_AGENT_CI_FIX_ENABLED # ai_agent_pr_review_enabled: enable the PR review responder workflow -> AI_AGENT_PR_REVIEW_ENABLED +# ai_agent_ci_fix_dry_run: 'false' lets the CI-fix workflow publish its fix -> AI_AGENT_CI_FIX_DRY_RUN repositories: nix-ai: ai_agent_ci_fix_enabled: 'true' + ai_agent_ci_fix_dry_run: 'false' ai_agent_pr_review_enabled: 'true' diff --git a/tests/org-config.tftest.hcl b/tests/org-config.tftest.hcl index 1e3c622..ae4f00d 100644 --- a/tests/org-config.tftest.hcl +++ b/tests/org-config.tftest.hcl @@ -91,6 +91,11 @@ mock_provider "restapi" { alias = "no_body" } +# Owners with a merge-restriction.yml need a merge bypass app; runs that test other values set their own. +variables { + merge_bypass_app_ids = [2] +} + run "empty_non_dryvist_config_plans_from_live_repo_data" { command = plan @@ -912,7 +917,6 @@ run "merge_hold_ruleset_follows_the_owner_config" { variables { github_owner = "JacobPEvans-ai" automation_bypass_app_ids = [1] - merge_bypass_app_ids = [2] codeql_import_enabled = false }