mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-14 20:37:14 +01:00
captain docs: plan-first rule matches R65 (no plan review for bug fixes)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
5192908de4
commit
9911da738b
8 files changed
+26
-16
No files matched your search
@@ -81,15 +81,17 @@ describe('/captain skill', () => {
|
||||
expect(read('captain/templates/automation-flaky-pass.md')).toContain('never merge');
|
||||
});
|
||||
|
||||
test('every copy of the plan-first exemptions names the two fix exemptions and the eng-only plan for every other fix', () => {
|
||||
test('every copy of the plan-first exemptions names the two fix exemptions and the R65 no-review rule for other bug fixes', () => {
|
||||
for (const rel of ['docs/captain.md', 'captain/SKILL.md', 'captain/templates/CREW.md', 'capy/skill/gstack/SKILL.md']) {
|
||||
const text = read(rel).replace(/\s+/g, ' ');
|
||||
expect(text, rel).toMatch(/S1 emergenc(?:y|ies) \(a? ?broken install or upgrade, a? ?red main, a security bug\)/);
|
||||
expect(text, rel).toMatch(/already[- ]diagnosed,? (?:and )?audited problem list|problem list that was already diagnosed and audited/);
|
||||
expect(text, rel).toContain('one-round, eng-only plan');
|
||||
expect(text, rel).toContain('gstack-autoplan next --kind fix');
|
||||
expect(text, rel).toContain('--kind feature');
|
||||
expect(text, rel).not.toContain('one-round, eng-only plan');
|
||||
}
|
||||
expect(read('docs/captain.md')).toContain('gstack-autoplan close --out <run dir> --phase ceo --deferred');
|
||||
expect(read('captain/templates/brief.md').replace(/\s+/g, ' ')).toContain('gstack-autoplan close --out <run dir> --phase ceo --deferred');
|
||||
expect(read('docs/captain.md')).toContain('AUTOPLAN: not needed (bug fix; R65)');
|
||||
expect(read('captain/templates/brief.md').replace(/\s+/g, ' ')).toContain('--kind feature');
|
||||
});
|
||||
|
||||
test('is generic: parameters, not one crew\'s codes, names or repository', () => {
|
||||
|
||||
Reference in new issue
Block a user