@tablation/crew 0.49.1 → 0.49.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +9 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -9253,10 +9253,10 @@ function movedPast(r, t, branch, pushedAs) {
|
|
|
9253
9253
|
const head = resolve2(r.cwd, branch);
|
|
9254
9254
|
const remoteHead = resolve2(r.cwd, `${r.repo.branch.remote}/${pushedAs}`);
|
|
9255
9255
|
if (remoteHead && !isAncestor(r.cwd, remoteHead, verified) && remoteHead !== head) {
|
|
9256
|
-
return { ticket: t, verified, head: remoteHead };
|
|
9256
|
+
return { ticket: t, verified, head: remoteHead, branch: pushedAs };
|
|
9257
9257
|
}
|
|
9258
9258
|
if (head && head !== verified && !isAncestor(r.cwd, head, verified)) {
|
|
9259
|
-
return { ticket: t, verified, head };
|
|
9259
|
+
return { ticket: t, verified, head, branch: pushedAs };
|
|
9260
9260
|
}
|
|
9261
9261
|
return null;
|
|
9262
9262
|
}
|
|
@@ -9345,6 +9345,12 @@ ${h.prFailure.tail}
|
|
|
9345
9345
|
try {
|
|
9346
9346
|
await tracker.updateTicket(t.id, { [contract.columns.status]: contract.statuses.handoff }, t.updated_at);
|
|
9347
9347
|
await tracker.postEvent(t.id, body, seat, "requeued");
|
|
9348
|
+
await tracker.postEvent(
|
|
9349
|
+
t.id,
|
|
9350
|
+
pushedEventBody(q.head, remote, q.branch),
|
|
9351
|
+
seat,
|
|
9352
|
+
"pushed"
|
|
9353
|
+
);
|
|
9348
9354
|
emit.emit(`returned to ${contract.statuses.handoff} \u2014 branch moved past ${q.verified.slice(0, 8)}`, { ticket: t.issue_id });
|
|
9349
9355
|
} catch (e) {
|
|
9350
9356
|
emit.warn(`could not return to ${contract.statuses.handoff}: ${e.message}`, { ticket: t.issue_id });
|
|
@@ -9778,7 +9784,7 @@ async function runReleaseCycle(o, movedPast2) {
|
|
|
9778
9784
|
const moved = branch ? movedPastVerified(o.cwd, branch, verified) : null;
|
|
9779
9785
|
if (!moved) continue;
|
|
9780
9786
|
drop.add(t.id);
|
|
9781
|
-
movedPast2.push({ ticket: t, verified: moved.verified, head: moved.tip });
|
|
9787
|
+
movedPast2.push({ ticket: t, verified: moved.verified, head: moved.tip, branch: pushedBranchForTicket(o.repo, t) });
|
|
9782
9788
|
o.emit.error(
|
|
9783
9789
|
`not releasing ${t.issue_id}: ${branch} is at ${moved.tip.slice(0, 8)}, past the ${moved.verified.slice(0, 8)} QA verified`,
|
|
9784
9790
|
{ ticket: t.issue_id }
|
package/package.json
CHANGED