Skip to content

Commit 97df9d2

Browse files
authored
ci(workflows): trigger CI on stacked-PR branches (#562)
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: #558 Refs: #559 Refs: #560
1 parent 7465d92 commit 97df9d2

2 files changed

Lines changed: 40 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,27 @@ permissions:
55

66
on:
77
push:
8-
branches: [main]
8+
branches:
9+
- main
10+
- 'fix/**'
11+
- 'feat/**'
12+
- 'docs/**'
13+
- 'qa/**'
14+
- 'refactor/**'
15+
- 'perf/**'
16+
- 'chore/**'
17+
- 'ci/**'
918
pull_request:
10-
branches: [main]
19+
branches:
20+
- main
21+
- 'fix/**'
22+
- 'feat/**'
23+
- 'docs/**'
24+
- 'qa/**'
25+
- 'refactor/**'
26+
- 'perf/**'
27+
- 'chore/**'
28+
- 'ci/**'
1129
merge_group:
1230
branches: [main]
1331

.github/workflows/sonarcloud.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,27 @@ name: Code Quality Analysis
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
7+
- 'fix/**'
8+
- 'feat/**'
9+
- 'docs/**'
10+
- 'qa/**'
11+
- 'refactor/**'
12+
- 'perf/**'
13+
- 'chore/**'
14+
- 'ci/**'
615
pull_request:
7-
branches: [main]
16+
branches:
17+
- main
18+
- 'fix/**'
19+
- 'feat/**'
20+
- 'docs/**'
21+
- 'qa/**'
22+
- 'refactor/**'
23+
- 'perf/**'
24+
- 'chore/**'
25+
- 'ci/**'
826
workflow_dispatch:
927

1028
permissions:

0 commit comments

Comments
 (0)