diff --git a/actions/setup/js/messages.test.cjs b/actions/setup/js/messages.test.cjs index c4fcf7f6dd..deb45c6578 100644 --- a/actions/setup/js/messages.test.cjs +++ b/actions/setup/js/messages.test.cjs @@ -267,7 +267,8 @@ describe("messages.cjs", () => { }); expect(result).toContain("gh aw add owner/repo/workflow.md@main"); - expect(result).toContain("View source at"); + expect(result).toContain("[agentic workflow](https://github.com/owner/repo)"); + expect(result).not.toContain("View source at"); }); it("should use custom install template", async () => { diff --git a/actions/setup/js/messages_footer.cjs b/actions/setup/js/messages_footer.cjs index d61f50f091..364bef100c 100644 --- a/actions/setup/js/messages_footer.cjs +++ b/actions/setup/js/messages_footer.cjs @@ -61,7 +61,7 @@ function getFooterInstallMessage(ctx) { const templateContext = toSnakeCase(ctx); // Default installation template - const defaultInstall = "> To install this workflow, run `gh aw add {workflow_source}`. View source at [{workflow_source_url}]({workflow_source_url})."; + const defaultInstall = "> To install this [agentic workflow]({workflow_source_url}), run\n> ```\n> gh aw add {workflow_source}\n> ```"; // Use custom installation message if configured return messages?.footerInstall ? renderTemplate(messages.footerInstall, templateContext) : renderTemplate(defaultInstall, templateContext);