Skip to content

v2.1.0

Choose a tag to compare

@LouisMazel LouisMazel released this 08 Nov 19:56
· 150 commits to develop since this release

compare changes

🚀 Features

  • Preview the release of a merge in its pull request (d2dfd68)

    Run relizy merge-preview in the pipeline of a pull request (GitHub) or a merge request (GitLab), with the options of the release job. It computes the release of the merge without writing anything: no version, changelog, commit, tag, push, publish or hook.

    • The pull request gets a comment with the versions, the tags and the dist-tag the merge releases, plus what the pull request brings. It is updated at each push and rewritten by the release of the merge.
    • The commit status relizy/merge-preview is set. It fails when the release of the merge would fail: a version or tag already taken, a squash commit that is not a Conventional Commit, or a commitlint error.
    • A squash merge is detected from the provider (mergePreview.squash). Both outcomes are shown when they differ.
    - uses: relizy/action@v2
      with:
        merge-preview: true

    The merge-preview component does the same on GitLab, relizy init offers it, and mergePreview() runs it from code. The pull request comments are now listed by pages of 100.

  • Add the merge preview to a project already set up (e305360)

    relizy init offers the merge preview on its own, even when the release workflow is not generated or already exists. --only runs only some of its steps: config, commitlint, scripts, agents, workflow or merge-preview. relizy merge-preview init is the shortcut to add the merge preview workflow:

    npx relizy merge-preview init
    # The same
    npx relizy init --only merge-preview

    Without the config step, the existing config is kept without asking. The result of init() tells the merge preview workflow written in mergePreview.

  • Use the token of the GitHub CLI on a local run (63275bd)

    Without RELIZY_GITHUB_TOKEN, GITHUB_TOKEN or GH_TOKEN, a local run of relizy uses the token of the GitHub CLI when it is logged in (gh auth token, for the host of the repository). GitHub releases and PR comments then need no token to create.

    gh auth login
    relizy release

    The environment variables still take precedence, and a CI never asks the GitHub CLI.

  • Choose between the relizy integration and its CLI in the workflows of relizy init (5479bcc)

    On GitHub and gitlab.com, relizy init asks how the CI runs relizy: with the relizy action or component (the default, and the only choice with --yes), or with the relizy CLI, whose steps are written out in the workflow (the package manager, Node.js, the install, relizy release). The choice applies to the release workflow and to the merge preview. A self-managed GitLab always gets the job written out.

🩹 Fixes

  • Only bump the root version from the commits of the released packages (03ce66c)

    In unified and selective mode, the root version and the root changelog now count only the commits of the released packages: their directories (and former directories) and the catalog entries they use. A commit that changes no package (a CI workflow, a script, a private app left out by privatePackages, or the packages of another version group) no longer releases every package of a unified group.

    A private package still counts with privatePackages: 'release'. The root of a project without workspace packages keeps every commit.

📖 Documentation

  • Declare the AI usage preferences of the docs in robots.txt (8dc69a0)

    Content Signals (https://contentsignals.org) state that the docs can be used to train, to index and to answer in AI tools.

  • Serve the markdown of the pages to the agents that ask for it (b0da034)

    A Cloudflare Pages worker answers requests with Accept: text/markdown with the .md version of the page (llms.txt for the homepage). Browsers keep the HTML. The homepage also gets Link headers (RFC 8288) pointing to llms.txt and the getting started guide.

  • Publish the rules of relizy for the agents as a discoverable skill (a1c89c1)

    The build writes /.well-known/agent-skills/index.json (Agent Skills Discovery RFC v0.2.0) and the relizy skill: the rules that relizy mcp init writes in projects, with links to llms.txt. An agent finds them without installing relizy.

  • Publish an ARD manifest of the resources for the agents (e79a990)

    /.well-known/ai-catalog.json (Agentic Resource Discovery) lists the relizy skill and llms.txt, and the homepage links to it. The MCP server is left out, since it runs locally and ARD describes remote resources.

  • Expose the docs as WebMCP tools to the agents of the browser (1890820)

    When the browser supports WebMCP (document.modelContext), the docs register three read-only tools: list_docs (llms.txt), search_docs (the titles and descriptions of the pages) and get_doc (the markdown of a page, the current one by default).

  • Present the merge preview on the homepage, the README and to the AI agents (bbc6776)

    The AI agents set up by relizy mcp init never run relizy merge-preview without the user's approval, since it comments the pull request and sets a commit status.

🧪 Tests

  • Clear the variables of the CI run in the merge preview spec (46589fe)
  • Lower the coverage thresholds of the functions and branches (6a68aa0)
  • Run the GitHub CLI token spec outside a CI, whatever runs it (5ff255c)
  • Check the root commits of a selective group too (d470d10)
  • Lower the coverage threshold of the branches (ee44327)

❤️ Contributors