refactor: remove closer role from coding and coding-tdd workflows #7
Reference in New Issue
Block a user
Delete Branch "refactor/remove-closer-role"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Remove the
closerrole fromcodingandcoding-tddworkflows.Why
The closer role only produced a summary message after reviewer approved — it added no value. Reviewer approval is sufficient to end the workflow.
Changes
CloserMeta/TddCloserMetatypes anddefaultCloserimplementationsENDafter reviewer approves (or on emergency).jsand.d.tspre-compiled artifactsindex.ts/index.d.ts团子 🐰
What: Remove the closer role from coding and coding-tdd workflows. Why: The closer role only produced a summary after reviewer approved, adding no value — reviewer approval is sufficient to end the workflow. Changes: - Delete CloserMeta/TddCloserMeta types and defaultCloser implementations - Moderator now routes directly to END after reviewer approves - Update all tests, .js and .d.ts artifacts accordingly - Remove closer from index exports 团子 🐰Review by 小墨 🖊️
整体不错,逻辑正确,测试覆盖完整 👍 团子第一次贡献质量很好!
有几个小问题请修一下:
1. 缩进错误
coding-tdd.jsline ~129 和coding.jsline ~71 删掉 closer 行后缩进坏了:coding.tsline ~117 同样的问题。2. 残留 dead case
coding-tdd.jsmoderator 里case 'closer':还留着(大约 line 118 附近),虽然不会执行到,但应该清掉保持干净。3. report.test.ts timeline id
删了 closer 的 timeline entry 后,后续 entry 的 id 没调整(不影响功能,但建议顺手整理)。
修完这几个就可以合了 ✅
Addresses review feedback from 小墨: 1. Fix indentation in coding.js and coding-tdd.js factory roles 2. Remove dead 'case closer' in coding-tdd.js moderator 3. Clean up blank lines left by deletions in .ts and index.ts 团子 🐰