Add documentation on using lftools for gerrit 43/15643/3
authorAric Gardner <agardner@linuxfoundation.org>
Mon, 13 May 2019 16:53:56 +0000 (12:53 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Mon, 13 May 2019 18:16:56 +0000 (18:16 +0000)
Gerrit and github repo creation can now be done with lftools
same for enabling replication

Docs cover these new features.

Change-Id: I4a9528431512903f9efee2f3505f1b91bf5db1d9
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
docs/infra/gerrit.rst

index a51de81..cceb264 100644 (file)
@@ -82,6 +82,36 @@ Initial configuration (required once)
 Repository replication setup (repeat for each repository)
 ---------------------------------------------------------
 
+.. note::
+
+   After initial setups, descibed above gerrit project creation, github repo creation
+   and gerrit replication are now done with lftools commands.
+
+
+* :doc:`lftools <lftools:commands/index>`
+
+To create_repo, clone_repo, create_groups_file and add_gitreview:
+
+.. code-block:: bash
+
+    lftools gerrit create [OPTIONS] GERRIT_URL LDAP_GROUP REPO USER
+
+To create a github repo:
+
+.. code-block:: bash
+
+    lftools github create-repo --sparse ORGANIZATION REPOSITORY DESCRIPTION
+
+To enable replication:
+
+.. code-block:: bash
+
+    lftools gerrit create --enable GERRIT_URL LDAP_GROUP REPO USER
+
+
+Manual Process
+--------------
+
 Perform the following in each repository mirrored from Gerrit
 
 #. Create the repository in the GitHub organization replacing any