WordPress Developer Ukraine, Kyiv
Conventional Commits and git-cliff: Automated WordPress Plugin Changelogs

Conventional Commits and git-cliff: Automated WordPress Plugin Changelog ...

Conventional Commits and git-cliff: a plugin changelog from the commit history The changelog in readme.txt is written at release time, from memory, and it shows: fixes are forgotten, internal refactorings are listed as features. If the commit messages follow a simple convention, a tool can sort them into “Features”, “Fixes” and “Breaking changes” and write…
Git Tags and Signed Releases for WordPress Plugins

Git Tags and Signed Releases for WordPress Plugins

Git tags and signed releases for a WordPress plugin A plugin release is a version number in three places (the plugin header, readme.txt‘s “Stable tag”, a constant in the code), a ZIP and, ideally, a tag in git that marks exactly which commit was released. When these drift apart, a support request for “version 2.4.1”…
Git Monorepo Strategy for WordPress Plugin Development

Git Monorepo Strategy for WordPress Plugin Development

A monorepo for several WordPress plugins An agency with five plugins and a shared library usually has six repositories. A change in the library means a release of the library, then a Composer update and a pull request in every plugin, and the integration tests run only after all of that. A monorepo puts all…
git notes: Annotating Commits Without Rewriting History

git notes: Annotating Commits Without Rewriting History

git notes: add information to commits without rewriting history A commit is immutable: changing its message changes its hash and rewrites the history after it, which is not acceptable on a shared branch. Sometimes information arrives later: the commit was deployed to production at 14:22, the reviewer approved it, a test on PHP 8.3 failed.…