Saltstack Official UFW Formula
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

CONTRIBUTING.rst 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. .. _contributing:
  2. How to contribute
  3. =================
  4. This document will eventually outline all aspects of guidance to make your contributing experience a fruitful and enjoyable one.
  5. 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.
  6. It also covers how to contribute to this *formula's documentation*.
  7. .. contents:: **Table of Contents**
  8. Overview
  9. --------
  10. Submitting a pull request is more than just code!
  11. To achieve a quality product, the *tests* and *documentation* need to be updated as well.
  12. An excellent pull request will include these in the changes, wherever relevant.
  13. Commit message formatting
  14. -------------------------
  15. Since every type of change requires making Git commits,
  16. we will start by covering the importance of ensuring that all of your commit
  17. messages are in the correct format.
  18. Automation of multiple processes
  19. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  20. This formula uses `semantic-release <https://github.com/semantic-release/semantic-release>`_ for automating numerous processes such as bumping the version number appropriately, creating new tags/releases and updating the changelog.
  21. 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.
  22. Full details are available in the upstream docs regarding the `Angular Commit Message Conventions <https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines>`_.
  23. The key factor is that the first line of the commit message must follow this format:
  24. .. code-block::
  25. type(scope): subject
  26. * E.g. ``docs(contributing): add commit message formatting instructions``.
  27. Besides the version bump, the changelog and release notes are formatted accordingly.
  28. So based on the example above:
  29. ..
  30. .. raw:: html
  31. <h3>Documentation</h3>
  32. * **contributing:** add commit message formatting instructions
  33. * The ``type`` translates into a ``Documentation`` sub-heading.
  34. * The ``(scope):`` will be shown in bold text without the brackets.
  35. * The ``subject`` follows the ``scope`` as standard text.
  36. Linting commit messages in Travis CI
  37. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  38. This formula uses `commitlint <https://github.com/conventional-changelog/commitlint>`_ for checking commit messages during CI testing.
  39. This ensures that they are in accordance with the ``semantic-release`` settings.
  40. For more details about the default settings, refer back to the ``commitlint`` `reference rules <https://conventional-changelog.github.io/commitlint/#/reference-rules>`_.
  41. Relationship between commit type and version bump
  42. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  43. This formula applies some customisations to the defaults, as outlined in the table below,
  44. based upon the `type <https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#type>`_ of the commit:
  45. .. list-table::
  46. :name: commit-type-vs-version-bump
  47. :header-rows: 1
  48. :stub-columns: 0
  49. :widths: 1,2,3,1,1
  50. * - Type
  51. - Heading
  52. - Description
  53. - Bump (default)
  54. - Bump (custom)
  55. * - ``build``
  56. - Build System
  57. - Changes related to the build system
  58. - –
  59. -
  60. * - ``chore``
  61. - –
  62. - Changes to the build process or auxiliary tools and libraries such as
  63. documentation generation
  64. - –
  65. -
  66. * - ``ci``
  67. - Continuous Integration
  68. - Changes to the continuous integration configuration
  69. - –
  70. -
  71. * - ``docs``
  72. - Documentation
  73. - Documentation only changes
  74. - –
  75. - 0.0.1
  76. * - ``feat``
  77. - Features
  78. - A new feature
  79. - 0.1.0
  80. -
  81. * - ``fix``
  82. - Bug Fixes
  83. - A bug fix
  84. - 0.0.1
  85. -
  86. * - ``perf``
  87. - Performance Improvements
  88. - A code change that improves performance
  89. - 0.0.1
  90. -
  91. * - ``refactor``
  92. - Code Refactoring
  93. - A code change that neither fixes a bug nor adds a feature
  94. - –
  95. - 0.0.1
  96. * - ``revert``
  97. - Reverts
  98. - A commit used to revert a previous commit
  99. - –
  100. - 0.0.1
  101. * - ``style``
  102. - Styles
  103. - Changes that do not affect the meaning of the code (white-space,
  104. formatting, missing semi-colons, etc.)
  105. - –
  106. - 0.0.1
  107. * - ``test``
  108. - Tests
  109. - Adding missing or correcting existing tests
  110. - –
  111. - 0.0.1
  112. Use ``BREAKING CHANGE`` to trigger a ``major`` version change
  113. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  114. 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.
  115. This will be appended to the changelog and release notes as well.
  116. To preserve good formatting of these notes, the following format is prescribed:
  117. * ``BREAKING CHANGE: <explanation in paragraph format>.``
  118. An example of that:
  119. .. code-block:: git
  120. ...
  121. BREAKING CHANGE: With the removal of all of the `.sls` files under
  122. `template package`, this formula no longer supports the installation of
  123. packages.