# `mix poney.release_check`
[🔗](https://github.com/hattoriai/poney-elixir/blob/v0.1.0/lib/mix/tasks/poney.release_check.ex#L1)

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.

# `git`

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

What git says about the checkout.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
