no-mistakes(review): Fix doc-only onboarding route
This commit is contained in:
committed by
Codesmith
parent
66ff521c71
commit
b006b1a23e
@@ -89,7 +89,7 @@ Exit.
|
|||||||
|
|
||||||
If the user skips mapping, continue with a warning.
|
If the user skips mapping, continue with a warning.
|
||||||
|
|
||||||
If `is_brownfield` is false and `planning_exists` is false, print:
|
If `is_brownfield` is false and `planning_exists` is false and `has_docs_candidates` is false, print:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
No existing code was detected. For a greenfield project, run:
|
No existing code was detected. For a greenfield project, run:
|
||||||
|
|||||||
@@ -229,6 +229,11 @@ describe('/gsd:onboard command contract', () => {
|
|||||||
/If `has_docs_candidates` is true and `project_exists` is false:/,
|
/If `has_docs_candidates` is true and `project_exists` is false:/,
|
||||||
'workflow must offer docs ingest before project setup even when codebase mapping already created .planning',
|
'workflow must offer docs ingest before project setup even when codebase mapping already created .planning',
|
||||||
);
|
);
|
||||||
|
assert.match(
|
||||||
|
content,
|
||||||
|
/If `is_brownfield` is false and `planning_exists` is false and `has_docs_candidates` is false, print:/,
|
||||||
|
'workflow must not send doc-only repos to new-project before the docs ingest gate',
|
||||||
|
);
|
||||||
assert.ok(content.includes('new-project'), 'workflow must route to new-project');
|
assert.ok(content.includes('new-project'), 'workflow must route to new-project');
|
||||||
assert.ok(content.includes('.planning/onboarding/SUMMARY.md'), 'workflow must create onboarding summary');
|
assert.ok(content.includes('.planning/onboarding/SUMMARY.md'), 'workflow must create onboarding summary');
|
||||||
assert.match(content, /overwrite|idempotent|do not overwrite/i, 'workflow must protect existing planning');
|
assert.match(content, /overwrite|idempotent|do not overwrite/i, 'workflow must protect existing planning');
|
||||||
|
|||||||
Reference in New Issue
Block a user