mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-25 01:21:24 +01:00
After a /design-review run, /autoplan, /plan-ceo-review and /plan-eng-review now read the branch's real design doc instead of the one-line audit summary that /design-review saves next to it. Plan reviews are only useful when they review the actual design, so picking up a pointer file silently gave them nothing to work with. Nothing to do. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
515244505a
commit
a1e2c7eeaa
3 files changed
+23
-1
No files matched your search
@@ -136,4 +136,21 @@ describe('rendered Design Doc Check block', () => {
|
||||
const repo = f.write(path.join(f.repo, 'docs/designs/add-memo-export.md'), 5);
|
||||
expect(f.find({}, ['proj', 'feat-memo'])).toBe(repo);
|
||||
});
|
||||
test('a /design-review audit summary is never returned as the design doc (#4615)', () => {
|
||||
const f = fixture();
|
||||
f.write(path.join(f.home, '.gstack/projects/proj/user-feat-x-design-audit-20261121-100000.md'), 10);
|
||||
expect(f.find()).toBe('');
|
||||
expect(f.find({}, ['proj', 'other'])).toBe('');
|
||||
const doc = f.write(path.join(f.home, '.gstack/projects/proj/user-feat-x-design-20261101-100000.md'), 1000);
|
||||
expect(f.find()).toBe(doc);
|
||||
expect(f.find({}, ['proj', 'other'])).toBe(doc);
|
||||
});
|
||||
test('a branch named after a design audit still finds its design doc, not its audit summary (#4615)', () => {
|
||||
const f = fixture();
|
||||
const args = ['proj', 'fix-design-audit'];
|
||||
f.write(path.join(f.home, '.gstack/projects/proj/user-fix-design-audit-design-audit-20261121-100000.md'), 10);
|
||||
expect(f.find({}, args)).toBe('');
|
||||
const doc = f.write(path.join(f.home, '.gstack/projects/proj/user-fix-design-audit-design-20261101-100000.md'), 1000);
|
||||
expect(f.find({}, args)).toBe(doc);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user