Skip to content

Commit 624eb2e

Browse files
wip v28
1 parent 66e9cad commit 624eb2e

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

packages/pipelines/asset-pack/src/__tests__/finish-delivery.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ describe('finish pull-request delivery', () => {
8282
draft: true,
8383
}));
8484
expect(exec.get('finish', 'pullRequestUrl')).toContain('/pull/123');
85+
expect(exec.get('finish', 'deliveryReadiness')).toMatchObject({
86+
status: 'delivered',
87+
prUrl: 'https://github.com/engineeredsoftware/ENGI/pull/123',
88+
branch: 'bitcode/asset-pack-run-123',
89+
path: '.bitcode/asset-packs/run-123.md',
90+
});
8591
expect(exec.get('finish', 'deliveryPath')).toBe('.bitcode/asset-packs/run-123.md');
8692
expect(emitToolUsage).toHaveBeenCalledTimes(3);
8793
expect(emitToolUsage.mock.calls[1][3]).toMatchObject({

packages/pipelines/asset-pack/src/agents/finish/deliver-asset-pack-to-destination-agent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ async function deliverPullRequest(
219219
...result,
220220
contentRoot,
221221
contentBytes: Buffer.byteLength(content, 'utf8'),
222-
branch,
223-
file,
224-
pullRequest,
222+
branchResult: branch,
223+
fileResult: file,
224+
pullRequestResult: pullRequest,
225225
});
226226
return result;
227227
} catch (error) {

0 commit comments

Comments
 (0)