From 41480108bcdc842d04d0dbf7bca23418fe2c490c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yuniel=20Acosta=20P=C3=A9rez?= <33158051+yacosta738@users.noreply.github.com> Date: Fri, 14 Aug 2026 19:22:18 +0200 Subject: [PATCH] ci(workflows): trigger CI on stacked-PR branches Add the conventional stacked-PR branch prefixes to the ci.yml and sonarcloud.yml pull_request and push triggers so each layer of a stacked PR (fix/, feat/, docs/, qa/, refactor/, perf/, chore/, ci/) runs the full build, test, lint, format, security audit, and code quality pipeline instead of waiting for the top layer to merge. The full CI still runs on main and merge_group as before; only the list of trigger branches expands. The change keeps the existing main branch in the list and adds the conventional prefixes used by the project's stacked-PR workflow. Refs: https://github.com/dallay/agentsync/pull/558 Refs: https://github.com/dallay/agentsync/pull/559 Refs: https://github.com/dallay/agentsync/pull/560 --- .github/workflows/ci.yml | 22 ++++++++++++++++++++-- .github/workflows/sonarcloud.yml | 22 ++++++++++++++++++++-- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4299ac90..ee61666f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,9 +5,27 @@ permissions: on: push: - branches: [main] + branches: + - main + - 'fix/**' + - 'feat/**' + - 'docs/**' + - 'qa/**' + - 'refactor/**' + - 'perf/**' + - 'chore/**' + - 'ci/**' pull_request: - branches: [main] + branches: + - main + - 'fix/**' + - 'feat/**' + - 'docs/**' + - 'qa/**' + - 'refactor/**' + - 'perf/**' + - 'chore/**' + - 'ci/**' merge_group: branches: [main] diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index fe625e7c..e98eb285 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -2,9 +2,27 @@ name: Code Quality Analysis on: push: - branches: [main] + branches: + - main + - 'fix/**' + - 'feat/**' + - 'docs/**' + - 'qa/**' + - 'refactor/**' + - 'perf/**' + - 'chore/**' + - 'ci/**' pull_request: - branches: [main] + branches: + - main + - 'fix/**' + - 'feat/**' + - 'docs/**' + - 'qa/**' + - 'refactor/**' + - 'perf/**' + - 'chore/**' + - 'ci/**' workflow_dispatch: permissions: