mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-10 10:40:32 +01:00
fix: close review-cycle gaps (a stamp must change a stamp file, result requires a full --head and fails closed without headRefOid, digits-only --pr) with tests for every cycle-3 branch
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
4afaa98f54
commit
95cf833708
7 files changed
+54
-12
No files matched your search
@@ -330,6 +330,11 @@ describe('ready', () => {
|
||||
const bare = queue(repo, ['ready', '--pr', '1', '--pregate', pregateFor(repo, bareMerge)], shim(bareMerge, shippedBody('1', pin)));
|
||||
expect(bare.status).toBe(EXIT.refused);
|
||||
expect(bare.err).toMatch(staleRe(bareMerge));
|
||||
repo.git('commit', '-q', '--allow-empty', '-m', 'empty commit is not a stamp');
|
||||
const emptyOnMerge = repo.git('rev-parse', 'HEAD');
|
||||
const empty = queue(repo, ['ready', '--pr', '1', '--pregate', pregateFor(repo, emptyOnMerge)], shim(emptyOnMerge, shippedBody('1', pin)));
|
||||
expect(empty.status).toBe(EXIT.refused);
|
||||
expect(empty.err).toMatch(staleRe(emptyOnMerge));
|
||||
repo.git('reset', '-q', '--hard', pin);
|
||||
fs.appendFileSync(path.join(repo.work, 'pr-s.txt'), 'real change before the merge\n');
|
||||
repo.git('commit', '-qam', 'edit on the pin side');
|
||||
|
||||
Reference in new issue
Block a user