mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-18 02:42:25 +02:00
fix: make documentation release review and publication consistent
Review before commit, clarify changelog safeguards and unavailable reviewer modes, and preserve raw PR bodies across separate shell calls. Keep title sync in one shell and add regression coverage. Co-authored-by: OpenAI Codex <noreply@openai.com>
This commit is contained in:
co-authored by
OpenAI Codex
parent
9096d9f3f8
commit
24ed2030f4
@@ -63,8 +63,8 @@ describe('content-binding template drift', () => {
|
||||
|
||||
test('release-body write side carries the banner tripwire (and it actually fires)', () => {
|
||||
const body = rendered('document-release/sections/release-body.md');
|
||||
expect(body).toContain('grep -c "UNTRUSTED TRACKER CONTENT" /tmp/gstack-pr-body-$$.md');
|
||||
expect(body).toContain('grep -c "UNTRUSTED TRACKER CONTENT" /tmp/gstack-pr-body-orig-$$.md');
|
||||
expect(body).toContain('grep -c "UNTRUSTED TRACKER CONTENT" "<run-dir>/body.md"');
|
||||
expect(body).toContain('grep -c "UNTRUSTED TRACKER CONTENT" "<run-dir>/body-original.md"');
|
||||
// The fail-open shape: grep -c prints 0 AND exits 1 on no-match, so an
|
||||
// `|| echo 0` double-emits and breaks the -gt into the clean branch.
|
||||
expect(body).not.toContain('|| echo 0');
|
||||
@@ -94,8 +94,8 @@ describe('content-binding template drift', () => {
|
||||
fs.writeFileSync(path.join(dir, 'orig.md'), origContent);
|
||||
fs.writeFileSync(path.join(dir, 'new.md'), newContent);
|
||||
return block![0]
|
||||
.replaceAll('/tmp/gstack-pr-body-orig-$$.md', path.join(dir, 'orig.md'))
|
||||
.replaceAll('/tmp/gstack-pr-body-$$.md', path.join(dir, 'new.md'));
|
||||
.replaceAll('<run-dir>/body-original.md', path.join(dir, 'orig.md'))
|
||||
.replaceAll('<run-dir>/body.md', path.join(dir, 'new.md'));
|
||||
};
|
||||
|
||||
// Banner leaked into the outgoing body → the ABORT branch fires, loudly.
|
||||
|
||||
Reference in New Issue
Block a user