summaryrefslogtreecommitdiffstats
path: root/doc/developer/workflow.rst
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-01-31 11:36:38 +0100
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-01-31 12:25:27 +0100
commit19b8d68cf8ea0dca722b1630edd9e6834a126fc0 (patch)
tree99adadec357bebecb60a5859456eae172731619d /doc/developer/workflow.rst
parenttools: Add commit linter (diff)
downloadfrr-19b8d68cf8ea0dca722b1630edd9e6834a126fc0.tar.xz
frr-19b8d68cf8ea0dca722b1630edd9e6834a126fc0.zip
doc: Add a documentation about commit conventions
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r--doc/developer/workflow.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/developer/workflow.rst b/doc/developer/workflow.rst
index 88ee35838..605525818 100644
--- a/doc/developer/workflow.rst
+++ b/doc/developer/workflow.rst
@@ -354,6 +354,19 @@ Before merging make sure a PR has squashed the following kinds of commits:
This helps to automatically generate human-readable changelog messages.
+Commit Guidelines
+-----------------
+
+There is a built-in commit linter. Basic rules:
+
+- Commit messages must be prefixed with the name of the changed subsystem, followed
+ by a colon and a space and start with an imperative verb.
+
+ `Check <https://github.com/FRRouting/frr/tree/master/.github/commitlint.config.js>`_ all
+ the supported subsystems.
+
+- Commit messages must start with a capital letter
+- Commit messages must not end with a period ``.``
.. _license-for-contributions: