From 47bb0a995a8d49702f1f97a6312c2df90b4f5049 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 25 Jan 2026 06:14:19 +0000 Subject: [PATCH] fix(workflow): enhance branch propagation by adding support for feature branches from development --- .github/workflows/propagate-changes.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/propagate-changes.yml b/.github/workflows/propagate-changes.yml index 7ea36e16..332cb92c 100644 --- a/.github/workflows/propagate-changes.yml +++ b/.github/workflows/propagate-changes.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - development concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -143,8 +144,24 @@ jobs: } if (currentBranch === 'main') { - // Main -> Development (simplified - no more cascade) + // Main -> Development await createPR('main', 'development'); + } else if (currentBranch === 'development') { + // Development -> Feature branches (direct, no nightly intermediary) + const branches = await github.paginate(github.rest.repos.listBranches, { + owner: context.repo.owner, + repo: context.repo.repo, + }); + + const featureBranches = branches + .map(b => b.name) + .filter(name => name.startsWith('feature/')); + + core.info(`Found ${featureBranches.length} feature branches: ${featureBranches.join(', ')}`); + + for (const featureBranch of featureBranches) { + await createPR('development', featureBranch); + } } env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}