mix poney.release_check (Poney v0.1.0)

Copy Markdown View Source

Checks the repository before a release of Poney.

$ mix poney.release_check

This task is for work on Poney itself; the release alias runs it before mix hex.publish, and nothing is published or tagged when it fails. In any project but Poney, it stops with an error. It fetches main and the tags from origin first, then fails when:

  • the first heading of CHANGELOG.md is not this version's, with its date (## [0.1.0] - 2026-11-25): an ## [Unreleased] heading above it means the changelog was not cut;
  • a {:poney, "~> ..."} requirement in the README or a guide is not this version's series (~> 0.1 for any 0.1.x);
  • the checkout is not main, has uncommitted changes, or is not the commit origin/main points at;
  • the tag v<version> already exists.

Summary

Types

What git says about the checkout.

Types

git()

@type git() :: %{
  branch: String.t() | nil,
  dirty: boolean(),
  head: String.t() | nil,
  origin: String.t() | nil,
  tagged: boolean()
}

What git says about the checkout.