Skip to content

Commit 66e55d1

Browse files
Remove Too Many Cooks from homepage; path-filter CI for website-only PRs (#65)
## TLDR Removes the Too Many Cooks feature card from the homepage (it moved to tmc-mcp.dev and left this repo) and path-filters CI so website-only PRs no longer run the full Dart lint/test/build suite. ## What Was Changed or Deleted? - **Homepage (en + zh):** deleted the `Too Many Cooks` feature card from `website/src/index.njk` and `website/src/zh/index.njk`. TMC is no longer an example of this project. - **docs/mcp (unchanged this PR, already correct):** the `docs/mcp` pages retain a short note that TMC has moved to [tmc-mcp.dev](https://tmc-mcp.dev) and is no longer part of this repository — satisfying "other pages must point to tmc-mcp.dev explaining it moved." - **CI path filtering:** added a `changes` detection job (`dorny/paths-filter`) and gated `lint`/`test`/`build` behind `needs.changes.outputs.code == 'true'` and `website` behind `needs.changes.outputs.website == 'true'`. Website-only PRs skip the Dart suite; code-only PRs skip the website job. ## How Do The Automated Tests Prove It Works? - All **108 Playwright website tests pass** locally after the change, including `pages.spec.js › Homepage › homepage loads with all essential elements` — the homepage still renders correctly with the card gone. - Verified the generated output: `_site/index.html` and `_site/zh/index.html` contain **zero** occurrences of "Too Many Cooks"/"tmc", while `_site/docs/mcp/index.html` and `_site/zh/docs/mcp/index.html` still link to `tmc-mcp.dev`. - Job-level `if` skips (not workflow-level `paths:`) are used deliberately so skipped jobs report a "skipped" conclusion that satisfies required status checks rather than leaving them pending and blocking the merge. ## Breaking Changes - [x] None
1 parent 8acd90e commit 66e55d1

3 files changed

Lines changed: 31 additions & 18 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,35 @@ env:
1818
SERVER_BINARY: build/bin/server_node.js
1919

2020
jobs:
21+
# Change detection ([CI-PATH-FILTER]). Website-only PRs skip the Dart
22+
# lint/test/build jobs; code-only PRs skip the website job. Job-level `if`
23+
# skips report a "skipped" conclusion that SATISFIES required status checks —
24+
# unlike workflow-level `paths:` filters, which leave required checks pending
25+
# forever and block the merge. So we gate here, never with `on: paths`.
26+
changes:
27+
name: Detect changes
28+
runs-on: ubuntu-latest
29+
timeout-minutes: 5
30+
outputs:
31+
code: ${{ steps.filter.outputs.code }}
32+
website: ${{ steps.filter.outputs.website }}
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: dorny/paths-filter@v3
36+
id: filter
37+
with:
38+
filters: |
39+
website:
40+
- 'website/**'
41+
code:
42+
- '!website/**'
43+
2144
lint:
2245
name: Lint
2346
runs-on: ubuntu-latest
2447
timeout-minutes: 10
48+
needs: changes
49+
if: needs.changes.outputs.code == 'true'
2550
steps:
2651
- uses: actions/checkout@v4
2752
- uses: ./.github/actions/setup
@@ -88,7 +113,8 @@ jobs:
88113
name: Test
89114
runs-on: ubuntu-latest
90115
timeout-minutes: 10
91-
needs: lint
116+
needs: [changes, lint]
117+
if: needs.changes.outputs.code == 'true'
92118
steps:
93119
- uses: actions/checkout@v4
94120
- uses: ./.github/actions/setup
@@ -143,7 +169,8 @@ jobs:
143169
name: Build
144170
runs-on: ubuntu-latest
145171
timeout-minutes: 10
146-
needs: test
172+
needs: [changes, test]
173+
if: needs.changes.outputs.code == 'true'
147174
steps:
148175
- uses: actions/checkout@v4
149176
- uses: ./.github/actions/setup
@@ -169,6 +196,8 @@ jobs:
169196
name: Website Tests
170197
runs-on: ubuntu-latest
171198
timeout-minutes: 10
199+
needs: changes
200+
if: needs.changes.outputs.website == 'true'
172201
steps:
173202
- uses: actions/checkout@v4
174203

‎website/src/index.njk‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -375,15 +375,6 @@ ReactElement counter() {
375375
<a href="https://github.com/MelbourneDeveloper/dart_node/tree/main/packages/dart_node_vsix" target="_blank" rel="noopener noreferrer" class="pub-link">Source &rarr;</a>
376376
</div>
377377
</div>
378-
379-
<div class="feature-card">
380-
<div class="feature-icon" style="background: #8e44ad;">T</div>
381-
<h3>Too Many Cooks</h3>
382-
<p>Multi-agent coordination MCP server, originally built with dart_node_mcp. It has moved to its own home and is no longer part of this repo.</p>
383-
<div class="feature-links">
384-
<a href="https://tmc-mcp.dev" target="_blank" rel="noopener noreferrer" class="pub-link">tmc-mcp.dev &rarr;</a>
385-
</div>
386-
</div>
387378
</div>
388379
</div>
389380
</section>

‎website/src/zh/index.njk‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,6 @@ ReactElement counter() {
247247
<p>VSCode 扩展 API 绑定,使用 Dart 构建 Visual Studio Code 扩展。</p>
248248
<a href="https://github.com/MelbourneDeveloper/dart_node/tree/main/packages/dart_node_vsix" target="_blank" rel="noopener noreferrer">在 GitHub 查看源码 &rarr;</a>
249249
</div>
250-
251-
<div class="feature-card">
252-
<div class="feature-icon" style="background: #8e44ad;">T</div>
253-
<h3>Too Many Cooks</h3>
254-
<p>多 AI 代理协调 MCP 服务器,最初使用 dart_node_mcp 构建。它已迁移到独立站点,不再是本仓库的一部分。</p>
255-
<a href="https://tmc-mcp.dev" target="_blank" rel="noopener noreferrer">tmc-mcp.dev &rarr;</a>
256-
</div>
257250
</div>
258251
</div>
259252
</section>

0 commit comments

Comments
 (0)