diff --git a/.github/actions/prepare-workspace/action.yml b/.github/actions/prepare-workspace/action.yml index a6e1ffab8e..3b3649cd68 100644 --- a/.github/actions/prepare-workspace/action.yml +++ b/.github/actions/prepare-workspace/action.yml @@ -43,20 +43,6 @@ runs: cp -r "${SRC}/${dir}/." "${DEST}${dir}/" fi done - CUSTOM_BASE="customized" - if [[ "${INSTALL_MODE}" == "per-repo" ]]; then - CUSTOM_BASE=".fullsend/customized" - fi - for dir in ${LAYERED_DIRS}; do - if [[ -d "${CUSTOM_BASE}/${dir}" ]]; then - find "${CUSTOM_BASE}/${dir}" -type f ! -name '.gitkeep' -print0 \ - | while IFS= read -r -d '' f; do - rel="${f#"${CUSTOM_BASE}"/}" - mkdir -p "$(dirname "${DEST}${rel}")" - cp "${f}" "${DEST}${rel}" - done - fi - done mkdir -p .github/scripts cp "${SRC}/.github/scripts/setup-agent-env.sh" .github/scripts/setup-agent-env.sh diff --git a/.github/workflows/reusable-code.yml b/.github/workflows/reusable-code.yml index 3bd91ec4b3..1d2d582243 100644 --- a/.github/workflows/reusable-code.yml +++ b/.github/workflows/reusable-code.yml @@ -113,20 +113,6 @@ jobs: cp -r "${SRC}/${dir}/." "${DEST}${dir}/" fi done - CUSTOM_BASE="customized" - if [[ "${INSTALL_MODE}" == "per-repo" ]]; then - CUSTOM_BASE=".fullsend/customized" - fi - for dir in ${LAYERED_DIRS}; do - if [[ -d "${CUSTOM_BASE}/${dir}" ]]; then - find "${CUSTOM_BASE}/${dir}" -type f ! -name '.gitkeep' -print0 \ - | while IFS= read -r -d '' f; do - rel="${f#"${CUSTOM_BASE}"/}" - mkdir -p "$(dirname "${DEST}${rel}")" - cp "${f}" "${DEST}${rel}" - done - fi - done mkdir -p .github/scripts cp "${SRC}/.github/scripts/setup-agent-env.sh" .github/scripts/setup-agent-env.sh diff --git a/.github/workflows/reusable-fix.yml b/.github/workflows/reusable-fix.yml index 181f75fef5..4d4c08c517 100644 --- a/.github/workflows/reusable-fix.yml +++ b/.github/workflows/reusable-fix.yml @@ -129,20 +129,6 @@ jobs: cp -r "${SRC}/${dir}/." "${DEST}${dir}/" fi done - CUSTOM_BASE="customized" - if [[ "${INSTALL_MODE}" == "per-repo" ]]; then - CUSTOM_BASE=".fullsend/customized" - fi - for dir in ${LAYERED_DIRS}; do - if [[ -d "${CUSTOM_BASE}/${dir}" ]]; then - find "${CUSTOM_BASE}/${dir}" -type f ! -name '.gitkeep' -print0 \ - | while IFS= read -r -d '' f; do - rel="${f#"${CUSTOM_BASE}"/}" - mkdir -p "$(dirname "${DEST}${rel}")" - cp "${f}" "${DEST}${rel}" - done - fi - done mkdir -p .github/scripts cp "${SRC}/.github/scripts/setup-agent-env.sh" .github/scripts/setup-agent-env.sh diff --git a/.github/workflows/reusable-prioritize.yml b/.github/workflows/reusable-prioritize.yml index d631229359..4e1d5ad22a 100644 --- a/.github/workflows/reusable-prioritize.yml +++ b/.github/workflows/reusable-prioritize.yml @@ -114,20 +114,6 @@ jobs: cp -r "${SRC}/${dir}/." "${DEST}${dir}/" fi done - CUSTOM_BASE="customized" - if [[ "${INSTALL_MODE}" == "per-repo" ]]; then - CUSTOM_BASE=".fullsend/customized" - fi - for dir in ${LAYERED_DIRS}; do - if [[ -d "${CUSTOM_BASE}/${dir}" ]]; then - find "${CUSTOM_BASE}/${dir}" -type f ! -name '.gitkeep' -print0 \ - | while IFS= read -r -d '' f; do - rel="${f#"${CUSTOM_BASE}"/}" - mkdir -p "$(dirname "${DEST}${rel}")" - cp "${f}" "${DEST}${rel}" - done - fi - done mkdir -p .github/scripts cp "${SRC}/.github/scripts/setup-agent-env.sh" .github/scripts/setup-agent-env.sh diff --git a/.github/workflows/reusable-retro.yml b/.github/workflows/reusable-retro.yml index 07268daaa6..56989af48e 100644 --- a/.github/workflows/reusable-retro.yml +++ b/.github/workflows/reusable-retro.yml @@ -110,20 +110,6 @@ jobs: cp -r "${SRC}/${dir}/." "${DEST}${dir}/" fi done - CUSTOM_BASE="customized" - if [[ "${INSTALL_MODE}" == "per-repo" ]]; then - CUSTOM_BASE=".fullsend/customized" - fi - for dir in ${LAYERED_DIRS}; do - if [[ -d "${CUSTOM_BASE}/${dir}" ]]; then - find "${CUSTOM_BASE}/${dir}" -type f ! -name '.gitkeep' -print0 \ - | while IFS= read -r -d '' f; do - rel="${f#"${CUSTOM_BASE}"/}" - mkdir -p "$(dirname "${DEST}${rel}")" - cp "${f}" "${DEST}${rel}" - done - fi - done mkdir -p .github/scripts cp "${SRC}/.github/scripts/setup-agent-env.sh" .github/scripts/setup-agent-env.sh diff --git a/.github/workflows/reusable-review.yml b/.github/workflows/reusable-review.yml index 5ce210c16f..47cd402f6c 100644 --- a/.github/workflows/reusable-review.yml +++ b/.github/workflows/reusable-review.yml @@ -111,20 +111,6 @@ jobs: cp -r "${SRC}/${dir}/." "${DEST}${dir}/" fi done - CUSTOM_BASE="customized" - if [[ "${INSTALL_MODE}" == "per-repo" ]]; then - CUSTOM_BASE=".fullsend/customized" - fi - for dir in ${LAYERED_DIRS}; do - if [[ -d "${CUSTOM_BASE}/${dir}" ]]; then - find "${CUSTOM_BASE}/${dir}" -type f ! -name '.gitkeep' -print0 \ - | while IFS= read -r -d '' f; do - rel="${f#"${CUSTOM_BASE}"/}" - mkdir -p "$(dirname "${DEST}${rel}")" - cp "${f}" "${DEST}${rel}" - done - fi - done mkdir -p .github/scripts cp "${SRC}/.github/scripts/setup-agent-env.sh" .github/scripts/setup-agent-env.sh diff --git a/.github/workflows/reusable-triage.yml b/.github/workflows/reusable-triage.yml index 6e3681c973..ee0db648d8 100644 --- a/.github/workflows/reusable-triage.yml +++ b/.github/workflows/reusable-triage.yml @@ -115,20 +115,6 @@ jobs: cp -r "${SRC}/${dir}/." "${DEST}${dir}/" fi done - CUSTOM_BASE="customized" - if [[ "${INSTALL_MODE}" == "per-repo" ]]; then - CUSTOM_BASE=".fullsend/customized" - fi - for dir in ${LAYERED_DIRS}; do - if [[ -d "${CUSTOM_BASE}/${dir}" ]]; then - find "${CUSTOM_BASE}/${dir}" -type f ! -name '.gitkeep' -print0 \ - | while IFS= read -r -d '' f; do - rel="${f#"${CUSTOM_BASE}"/}" - mkdir -p "$(dirname "${DEST}${rel}")" - cp "${f}" "${DEST}${rel}" - done - fi - done mkdir -p .github/scripts cp "${SRC}/.github/scripts/setup-agent-env.sh" .github/scripts/setup-agent-env.sh diff --git a/docs/plans/deprecate-customized-directory-overlay.md b/docs/plans/deprecate-customized-directory-overlay.md index 10a4ef6329..652a338c3e 100644 --- a/docs/plans/deprecate-customized-directory-overlay.md +++ b/docs/plans/deprecate-customized-directory-overlay.md @@ -90,10 +90,11 @@ logs. No behavioral change. --- -## PR 2: Remove overlay loop from reusable workflows +## PR 2: Remove overlay loop from reusable workflows *(done — PR #5836)* **Scope:** Remove the `CUSTOM_BASE` overlay from all 6 reusable -workflows. +workflows, the `prepare-workspace` composite action, and the scaffold +`repo-maintenance.yml` template. **`.github/workflows/reusable-triage.yml` (~lines 100–113):** **`.github/workflows/reusable-code.yml` (~lines 102–113):** diff --git a/internal/scaffold/fullsend-repo/.github/workflows/repo-maintenance.yml b/internal/scaffold/fullsend-repo/.github/workflows/repo-maintenance.yml index ce32e36e89..10c9c97cdd 100644 --- a/internal/scaffold/fullsend-repo/.github/workflows/repo-maintenance.yml +++ b/internal/scaffold/fullsend-repo/.github/workflows/repo-maintenance.yml @@ -54,14 +54,6 @@ jobs: set -euo pipefail mkdir -p scripts cp -r ".defaults/internal/scaffold/fullsend-repo/scripts/." scripts/ - if [[ -d "customized/scripts" ]]; then - find "customized/scripts" -type f ! -name '.gitkeep' -print0 \ - | while IFS= read -r -d '' f; do - rel="${f#customized/}" - mkdir -p "$(dirname "${rel}")" - cp "${f}" "${rel}" - done - fi rm -rf .defaults - name: Mint fullsend token diff --git a/internal/scaffold/scaffold_test.go b/internal/scaffold/scaffold_test.go index 7985cc72b3..4c80061bba 100644 --- a/internal/scaffold/scaffold_test.go +++ b/internal/scaffold/scaffold_test.go @@ -781,7 +781,8 @@ func TestRepoMaintenanceWorkflowContent(t *testing.T) { assert.Contains(t, s, "fullsend-ai/fullsend/.github/actions/mint-token@__FULLSEND_AI_REF__") assert.Contains(t, s, "Checkout upstream scripts") assert.Contains(t, s, "Prepare scripts") - assert.Contains(t, s, "customized/scripts") + assert.NotContains(t, s, "customized/scripts", + "customized/ overlay removed per ADR-0064") assert.Contains(t, s, "role: fullsend") assert.Contains(t, s, "id-token: write") assert.NotContains(t, s, "create-github-app-token")