PEP-248: задание, которое исполнитель не берёт, — не очередь проверок #235

Merged
peppa-bot merged 14 commits from task/pep-248 into main 2026-11-25 19:05:54 +00:00
Showing only changes of commit ad59289ae7 - Show all commits

View File

@ -210,7 +210,9 @@ describe("reviewer details", () => {
assert.equal(done.error, "ревьюер ответил не по формату");
// No runner: the PM gets "ready for review" directly.
assert.equal((await t.ref()).task.status, "review");
await cardDetailsMatch((await readyQuestions(t))[0]!, /Ревьюер не отработал: ревьюер ответил не по формату/);
// The status goes before the card is sent: wait for the card itself.
const card = await waitFor("ready for review", async () => (await readyQuestions(t))[0] ?? null);
await cardDetailsMatch(card, /Ревьюер не отработал: ревьюер ответил не по формату/);
// Approved head → asking again goes straight to review with the note.
await core.updateTask(db, await t.ref(), { status: "in_progress" });