diff --git a/scripts/comment-preview.mjs b/scripts/comment-preview.mjs index df77646..1ddfbf1 100644 --- a/scripts/comment-preview.mjs +++ b/scripts/comment-preview.mjs @@ -39,9 +39,7 @@ export const renderPreviewComment = ({ branch, prototypes, runUrl }) => { ? [ "The preview deployment is ready. Paste a URL below into **Load Developer Extensions from URL** in Roam:", "", - ...previews.map( - ({ prototype, url }) => `- [Load \`${prototype}\` in Roam](${url})`, - ), + ...previews.map(({ url }) => `- ${url}`), ].join("\n") : "CI passed, but this branch does not contain an installable prototype yet."; const details = runUrl ? `\n\n[View publishing details](${runUrl})` : ""; diff --git a/test/comment-preview.test.mjs b/test/comment-preview.test.mjs index 3045054..7f66428 100644 --- a/test/comment-preview.test.mjs +++ b/test/comment-preview.test.mjs @@ -24,7 +24,7 @@ test("serializes publishing runs without interrupting an active upload", async ( assert.match(workflow, /cancel-in-progress: false/); }); -test("renders resolved Roam preview links", () => { +test("renders resolved Roam preview URLs without link labels", () => { const body = renderPreviewComment({ branch: "agent/stock-prototype", prototypes: ["stock-prototype"], @@ -34,8 +34,9 @@ test("renders resolved Roam preview links", () => { assert.match(body, new RegExp(PREVIEW_COMMENT_MARKER)); assert.match( body, - /https:\/\/discoursegraphs\.com\/releases\/prototypes\/previews\/agent--stock-prototype\/stock-prototype\//, + /- https:\/\/discoursegraphs\.com\/releases\/prototypes\/previews\/agent--stock-prototype\/stock-prototype\//, ); + assert.doesNotMatch(body, /Load `stock-prototype` in Roam/); assert.match(body, /Load Developer Extensions from URL/); assert.match(body, /actions\/runs\/123/); });