]> git.proxmox.com Git - mirror_frr.git/commitdiff
doc: Add a documentation about commit conventions
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 31 Jan 2023 10:36:38 +0000 (12:36 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 31 Jan 2023 11:25:27 +0000 (13:25 +0200)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
doc/developer/workflow.rst

index 88ee358384455065baea61af2453363fac1138b7..605525818b9852c0562eddcf51c94c6e41e10189 100644 (file)
@@ -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: