]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
docs(commit-style): fix incorrect instructions for adding scopes
authorChris Kay <chris.kay@arm.com>
Mon, 10 Oct 2022 15:50:14 +0000 (16:50 +0100)
committerChris Kay <chris.kay@arm.com>
Fri, 4 Nov 2022 16:20:18 +0000 (17:20 +0100)
Change-Id: I3ce7abd1c21b084dea6b618c603f71b5bb4c50e8
Signed-off-by: Chris Kay <chris.kay@arm.com>
docs/process/commit-style.rst

index de899ab1f9e670ec9be3368c0d7886a623c0756c..9213fe5617afbd61eb9b17a30147262a6ed8eff0 100644 (file)
@@ -96,36 +96,25 @@ locally, as commitlint reports a live list of the acceptable scopes.
 Adding Scopes
 -------------
 
-Scopes that are either a) unblessed in the configuration file, or b) do not
-exist in the configuration file at all are considered to be deprecated. If you
-are adding a new component that does not yet have a designated scope, please
-feel free to add one.
+Scopes that are not present in the changelog configuration file are considered
+to be deprecated, and should be avoided. If you are adding a new component that
+does not yet have a designated scope, please add one.
 
 For example, if you are adding or making modifications to `Foo`'s latest and
-greatest new platform `Bar`, you would add it to the `Platforms` changelog
-section, and the hierarchy should look something like this:
-
-.. code:: json
-
-    {
-        "sections": [
-            {
-                "title": "Platforms",
-                "sections": [
-                    {
-                        "title": "Foo",
-                        "scopes": ["foo"],
-                        "sections": [
-                            {
-                                "title": "Bar",
-                                "scopes": ["bar"]
-                            }
-                        ]
-                    }
-                ]
-            }
-        ]
-    }
+greatest new platform `Bar` then you would add it to the `Platforms` changelog
+sub-section, and the hierarchy should look something like this:
+
+.. code:: yaml
+
+    - title: Platforms
+
+      subsections:
+        - title: Foo
+          scope: foo
+
+          subsections:
+            - title: Bar
+              scope: bar
 
 When creating new scopes, try to keep them short and succinct, and use kebab
 case (``this-is-kebab-case``). Components with a product name (i.e. most