Skip to content

Commit 9a9b7da

Browse files
DeRaowlclaude
andcommitted
fix(percy): add relationships.resources to snapshot creation in clone
Percy API requires relationships field even for screenshot builds. Empty resources array is valid for app/screenshot type snapshots. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 01a4a05 commit 9a9b7da

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/tools/percy-mcp/v2/clone-build.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,11 @@ async function copyScreenshots(
466466
`/builds/${buildId}/snapshots`,
467467
token,
468468
{
469-
data: { type: "snapshots", attributes: { name: snap.name } },
469+
data: {
470+
type: "snapshots",
471+
attributes: { name: snap.name },
472+
relationships: { resources: { data: [] } },
473+
},
470474
},
471475
);
472476
const newSnapId = snapResult?.data?.id;

0 commit comments

Comments
 (0)