This document will eventually outline all aspects of guidance to make your contributing experience a fruitful and enjoyable one. What it already contains is information about commit message formatting and how that directly affects the numerous automated processes that are used for this repo. It also covers how to contribute to this formula's documentation.
Table of Contents
Submitting a pull request is more than just code! To achieve a quality product, the tests and documentation need to be updated as well. An excellent pull request will include these in the changes, wherever relevant.
Since every type of change requires making Git commits, we will start by covering the importance of ensuring that all of your commit messages are in the correct format.
This formula uses semantic-release for automating numerous processes such as bumping the version number appropriately, creating new tags/releases and updating the changelog. The entire process relies on the structure of commit messages to determine the version bump, which is then used for the rest of the automation.
Full details are available in the upstream docs regarding the Angular Commit Message Conventions. The key factor is that the first line of the commit message must follow this format:
type(scope): subject
- E.g.
docs(contributing): add commit message formatting instructions
.
Besides the version bump, the changelog and release notes are formatted accordingly. So based on the example above:
- contributing: add commit message formatting instructions
- The
type
translates into aDocumentation
sub-heading. - The
(scope):
will be shown in bold text without the brackets. - The
subject
follows thescope
as standard text.
pre-commit is configured for this formula, which you may optionally use to ease the steps involved in submitting your changes, including checking the formatting of your commit messages.
First install the pre-commit
package manager locally using the appropriate
method, then run bin/install-hooks
in the
formula's root directory and now pre-commit
will run automatically on each
git commit
.
$ bin/install-hooks pre-commit installed at .git/hooks/pre-commit pre-commit installed at .git/hooks/commit-msg
This formula uses commitlint for checking commit messages during CI testing.
This ensures that they are in accordance with the semantic-release
settings.
For more details about the default settings, refer back to the commitlint
reference rules.
This formula applies some customisations to the defaults, as outlined in the table below, based upon the type of the commit:
Type | Heading | Description | Bump (default) | Bump (custom) |
---|---|---|---|---|
build |
Build System | Changes related to the build system | – | |
chore |
– | Changes to the build process or auxiliary tools and libraries such as documentation generation | – | |
ci |
Continuous Integration | Changes to the continuous integration configuration | – | |
docs |
Documentation | Documentation only changes | – | 0.0.1 |
feat |
Features | A new feature | 0.1.0 | |
fix |
Bug Fixes | A bug fix | 0.0.1 | |
perf |
Performance Improvements | A code change that improves performance | 0.0.1 | |
refactor |
Code Refactoring | A code change that neither fixes a bug nor adds a feature | – | 0.0.1 |
revert |
Reverts | A commit used to revert a previous commit | – | 0.0.1 |
style |
Styles | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.) | – | 0.0.1 |
test |
Tests | Adding missing or correcting existing tests | – | 0.0.1 |
Adding BREAKING CHANGE
to the footer of the extended description of the commit message will always trigger a major
version change, no matter which type has been used.
This will be appended to the changelog and release notes as well.
To preserve good formatting of these notes, the following format is prescribed:
BREAKING CHANGE: <explanation in paragraph format>.
An example of that:
...
BREAKING CHANGE: With the removal of all of the `.sls` files under
`template package`, this formula no longer supports the installation of
packages.
These formulas are already compatible with semantic-release and have global CODEOWNERS
defined:
- apache-formula
- apt-formula
- bind-formula
- caddy-formula
- carbon-relay-ng-formula
- deepsea-formula
- devstack-formula
- dhcpd-formula
- dnsmasq-formula
- eclipse-formula
- fail2ban-formula
- golang-formula
- haproxy-formula
- iptables-formula
- iscsi-formula
- java-formula
- jetbrains-appcode-formula
- jetbrains-clion-formula
- jetbrains-datagrip-formula
- jetbrains-goland-formula
- jetbrains-intellij-formula
- jetbrains-phpstorm-formula
- jetbrains-pycharm-formula
- jetbrains-resharper-formula
- jetbrains-rider-formula
- jetbrains-rubymine-formula
- jetbrains-webstorm-formula
- letsencrypt-formula
- libvirt-formula
- lvm-formula
- lynis-formula
- maven-formula
- mongodb-formula
- nginx-formula
- nifi-formula
- nut-formula
- openldap-formula
- openntpd-formula
- openvpn-formula
- packages-formula
- php-formula
- postfix-formula
- postgres-formula
- powerdns-formula
- proftpd-formula
- rng-tools-formula
- rspamd-formula
- salt-formula
- sqldeveloper-formula
- sqlplus-formula
- strongswan-formula
- suricata-formula
- sysctl-formula
- template-formula
- vault-formula
- zabbix-formula
These formulas are also compatible with semantic-release:
- apt-cacher-formula
- cert-formula
- chrony-formula
- collectd-formula
- consul-formula
- cron-formula
- django-formula
- docker-formula
- epel-formula
- exim-formula
- firewalld-formula
- grafana-formula
- hostsfile-formula
- icinga2-formula
- influxdb-formula
- keepalived-formula
- locale-formula
- logrotate-formula
- mysql-formula
- nfs-formula
- node-formula
- ntp-formula
- openssh-formula
- prometheus-formula
- rabbitmq-formula
- redis-formula
- rkhunter-formula
- snmp-formula
- stunnel-formula
- sudoers-formula
- syslog-ng-formula
- sysstat-formula
- systemd-formula
- telegraf-formula
- timezone-formula
- tomcat-formula
- ufw-formula
- users-formula
- varnish-formula
- vim-formula
- vsftpd-formula