repo2post - v0.1.1
    Preparing search index...

    Function listTags

    @vtx-labs/repo2post — programmatic API.

    Turn a git range, tag diff, or pull request into a release blog post, changelog, release notes, launch thread, or technical breakdown — with a single AI call. The library reads the change set from git (read-only), builds a grounded prompt in the chosen style, and generates the content through the AI SDK (any provider/model string, routed via the Vercel AI Gateway).

    import { collectChanges, generatePost } from "@vtx-labs/repo2post";

    const changes = await collectChanges({ from: "v1.0.0", to: "v1.1.0" });
    const post = await generatePost(
    { changes, style: "changelog", project: "my-lib" },
    { model: "anthropic/claude-sonnet-4.5" },
    );
    console.log(post.content);
    • List tags newest-first (by creation date), capped at limit.

      Parameters

      • cwd: string
      • limit: number = 20

      Returns Promise<string[]>