[llvm] 9cb0605 - docs: Update instructions for requesting backports to the release branches

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 8 16:28:22 PST 2022


Author: Tom Stellard
Date: 2022-03-08T16:28:02-08:00
New Revision: 9cb0605c0e30df7096c74f0bb76202bf967b4e66

URL: https://github.com/llvm/llvm-project/commit/9cb0605c0e30df7096c74f0bb76202bf967b4e66
DIFF: https://github.com/llvm/llvm-project/commit/9cb0605c0e30df7096c74f0bb76202bf967b4e66.diff

LOG: docs: Update instructions for requesting backports to the release branches

Reviewed By: lattner

Differential Revision: https://reviews.llvm.org/D120974

Added: 
    llvm/docs/GitHub.rst

Modified: 
    llvm/docs/GettingInvolved.rst
    llvm/docs/HowToReleaseLLVM.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/GettingInvolved.rst b/llvm/docs/GettingInvolved.rst
index 06acc7b07c033..6e5f0ad9f7989 100644
--- a/llvm/docs/GettingInvolved.rst
+++ b/llvm/docs/GettingInvolved.rst
@@ -18,6 +18,7 @@ LLVM welcomes contributions of all kinds. To get started, please review the foll
    HowToSubmitABug
    BugLifeCycle
    CodingStandards
+   GitHub
    GitBisecting
    GitRepositoryPolicy
 
@@ -52,6 +53,9 @@ LLVM welcomes contributions of all kinds. To get started, please review the foll
   Details the LLVM coding standards and provides useful information on writing
   efficient C++ code.
 
+:doc:`GitHub`
+  Describes how to use the llvm-project repository on GitHub.
+
 :doc:`GitBisecting`
   Describes how to use ``git bisect`` on LLVM's repository.
 

diff  --git a/llvm/docs/GitHub.rst b/llvm/docs/GitHub.rst
new file mode 100644
index 0000000000000..06d574be946f5
--- /dev/null
+++ b/llvm/docs/GitHub.rst
@@ -0,0 +1,41 @@
+======================
+LLVM GitHub User Guide
+======================
+
+Introduction
+============
+The LLVM Project uses `GitHub <https://github.com/>`_ for
+`Source Code <https://github.com/llvm/llvm-project>`_,
+`Releases <https://github.com/llvm/llvm-project/releases>`_, and
+`Issue Tracking <https://github.com/llvm/llvm-project/issues>`_.
+
+This page describes how the LLVM Project users and developers can
+participate in the project using GitHub.
+
+Releases
+========
+
+Backporting Fixes to the Release Branches
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+You can use special comments on issues to make backport requests for the
+release branches.  This is done by making a comment containing one of the
+following commands on any issue that has been added to one of the "X.Y.Z Release"
+milestones.
+
+::
+
+  /cherry-pick <commit> <commit> <...>
+
+This command takes one or more git commit hashes as arguments and will attempt
+to cherry-pick the commit(s) to the release branch.  If the commit(s) fail to
+apply cleanly, then a comment with a link to the failing job will be added to
+the issue.  If the commit(s) do apply cleanly, then a pull request will
+be created with the specified commits.
+
+::
+
+  /branch <owner>/<repo>/<branch>
+
+This command will create a pull request against the latest release branch using
+the <branch> from the <owner>/<repo> repository.  <branch> cannot contain any
+forward slash '/' characters.

diff  --git a/llvm/docs/HowToReleaseLLVM.rst b/llvm/docs/HowToReleaseLLVM.rst
index bd5657028ef11..0ea9db0a5715e 100644
--- a/llvm/docs/HowToReleaseLLVM.rst
+++ b/llvm/docs/HowToReleaseLLVM.rst
@@ -257,27 +257,10 @@ If a bug can't be reproduced, or stops being a blocker, it should be removed
 from the Meta and its priority decreased to *normal*. Debugging can continue,
 but on trunk.
 
-Merge Requests
---------------
-
-You can use any of the following methods to request that a revision from trunk
-be merged into a release branch:
-
-#. Use the ``utils/release/merge-request.sh`` script which will automatically
-   file a bug_ requesting that the patch be merged. e.g. To request revision
-   12345 be merged into the branch for the 5.0.1 release:
-   ``llvm.src/utils/release/merge-request.sh -stable-version 5.0 -r 12345 -user bugzilla at example.com``
-
-#. Manually file a bug_ with the subject: "Merge r12345 into the X.Y branch",
-   enter the commit(s) that you want merged in the "Fixed by Commit(s)" and mark
-   it as a blocker of the current release bug.  Release bugs are given aliases
-   in the form of release-x.y.z, so to mark a bug as a blocker for the 5.0.1
-   release, just enter release-5.0.1 in the "Blocks" field.
-
-#. Reply to the commit email on llvm-commits for the revision to merge and cc
-   the release manager.
+Backport Requests
+-----------------
 
-.. _bug: https://bugs.llvm.org/
+Instructions for requesting a backport to a stable branch can be found :doc:`here <GitHub>`.
 
 Release Patch Rules
 -------------------


        


More information about the llvm-commits mailing list