Skip to content

Latest commit

 

History

History
286 lines (239 loc) · 13.5 KB

CONTRIBUTING.rst

File metadata and controls

286 lines (239 loc) · 13.5 KB

How to contribute

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.

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:

Documentation

  • contributing: add commit message formatting instructions
  • The type translates into a Documentation sub-heading.
  • The (scope): will be shown in bold text without the brackets.
  • The subject follows the scope 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:

  1. apache-formula
  2. apt-formula
  3. bind-formula
  4. caddy-formula
  5. carbon-relay-ng-formula
  6. deepsea-formula
  7. devstack-formula
  8. dhcpd-formula
  9. dnsmasq-formula
  10. eclipse-formula
  11. fail2ban-formula
  12. golang-formula
  13. haproxy-formula
  14. iptables-formula
  15. iscsi-formula
  16. java-formula
  17. jetbrains-appcode-formula
  18. jetbrains-clion-formula
  19. jetbrains-datagrip-formula
  20. jetbrains-goland-formula
  21. jetbrains-intellij-formula
  22. jetbrains-phpstorm-formula
  23. jetbrains-pycharm-formula
  24. jetbrains-resharper-formula
  25. jetbrains-rider-formula
  26. jetbrains-rubymine-formula
  27. jetbrains-webstorm-formula
  28. letsencrypt-formula
  29. libvirt-formula
  30. lvm-formula
  31. lynis-formula
  32. maven-formula
  33. mongodb-formula
  34. nginx-formula
  35. nifi-formula
  36. nut-formula
  37. openldap-formula
  38. openntpd-formula
  39. openvpn-formula
  40. packages-formula
  41. php-formula
  42. postfix-formula
  43. postgres-formula
  44. powerdns-formula
  45. proftpd-formula
  46. rng-tools-formula
  47. rspamd-formula
  48. salt-formula
  49. sqldeveloper-formula
  50. sqlplus-formula
  51. strongswan-formula
  52. suricata-formula
  53. sysctl-formula
  54. template-formula
  55. vault-formula
  56. zabbix-formula

These formulas are also compatible with semantic-release:

  1. apt-cacher-formula
  2. cert-formula
  3. chrony-formula
  4. collectd-formula
  5. consul-formula
  6. cron-formula
  7. django-formula
  8. docker-formula
  9. epel-formula
  10. exim-formula
  11. firewalld-formula
  12. grafana-formula
  13. hostsfile-formula
  14. icinga2-formula
  15. influxdb-formula
  16. keepalived-formula
  17. locale-formula
  18. logrotate-formula
  19. mysql-formula
  20. nfs-formula
  21. node-formula
  22. ntp-formula
  23. openssh-formula
  24. prometheus-formula
  25. rabbitmq-formula
  26. redis-formula
  27. rkhunter-formula
  28. snmp-formula
  29. stunnel-formula
  30. sudoers-formula
  31. syslog-ng-formula
  32. sysstat-formula
  33. systemd-formula
  34. telegraf-formula
  35. timezone-formula
  36. tomcat-formula
  37. ufw-formula
  38. users-formula
  39. varnish-formula
  40. vim-formula
  41. vsftpd-formula

Documentation contributing guidelines