[TF-A] Adoption of Conventional Commits

Chris Kay Chris.Kay at arm.com
Thu Feb 11 13:58:13 UTC 2021


Hi all,

Recently we had an internal discussion on the merits of introducing semantics to commit messages pushed to the main TF-A repository, the conclusion being that we would look to adopting the Conventional Commits<https://www.conventionalcommits.org/en/v1.0.0/> specification in the near future. There was one major reason for this, which was to help us in automating the changelog in future releases, but it might also help us to dramatically reduce the overall amount of work needed to make a formal release in the future.

This requires some buy-in (or buy-out, in this case) from maintainers because - even though it's to only a relatively minor extent - it does involve an adjustment to everybody's workflow. Notably, commit messages will be expected to adopt the structure defined by the specification, which will be enforced by the CI. Most commits that go upstream today adhere to "something that looks like Conventional Commits", so the change is not exactly sweeping, but any change has the potential be an inconvenience.

With that in mind, I propose the following:

  *   We collectively adopt the specification, enforced only for @arm.com contributors until such a time that the majority of maintainers are familiar with the new demands
  *   We suggest - in the prerequisites documentation - the installation of two helper tools:
     *   Commitizen<https://github.com/commitizen/cz-cli>
     *   Commitlint<https://github.com/conventional-changelog/commitlint>


Installation of these tools will be optional, but I believe they can help with the transition. In the patches currently in review, they are installed as Git hooks automatically upon execution of npm install, so it requires no manual installation or configuration (other than a relatively up-to-date Node.js installation).

You'll find the patches here<https://review.trustedfirmware.org/q/topic:%22ck%252Fconventional-commits%22+(status:open%20OR%20status:merged)>, and specifically the changes to the prerequisites documentation here<https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/8224/1/docs/getting_started/prerequisites.rst>. Feel free to review these changes if you have comments specifically on their implementation.

Let me know if you have any questions or concerns. If everybody's on board, we can look to have this upstreamed shortly.

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.trustedfirmware.org/pipermail/tf-a/attachments/20210211/d7ccd5fb/attachment.htm>


More information about the TF-A mailing list