|
| 1 | +=================== |
| 2 | +Maintenance Branchs |
| 3 | +=================== |
| 4 | + |
| 5 | +A maintenance branch is a branch created to publish patches for releases that are no longer being actively developed (e.g. past major releases). |
| 6 | +For Runway, the naming format of these branches is ``release/v<major>``. |
| 7 | + |
| 8 | +------------------------------------------------------------------------------- |
| 9 | + |
| 10 | + |
| 11 | +***************************** |
| 12 | +Creating A Maintenance Branch |
| 13 | +***************************** |
| 14 | + |
| 15 | +A new maintenance branch should be created prior to beginning work on a new major release. |
| 16 | +It is best to create the branch prior to the final planned release (minor or patch) of the outgoing major version. |
| 17 | +This enables `release-drafter <https://github.com/release-drafter/release-drafter>`__ to create drafts for future releases. |
| 18 | + |
| 19 | +.. important:: |
| 20 | + When releasing the final release of the outgoing major version, create the tag on the maintenance branch. |
| 21 | + |
| 22 | +#. Clone the repo locally. |
| 23 | +#. Ensure that the default branch (e.g. ``master``) is up to date. |
| 24 | +#. Create the new maintenance branch locally. |
| 25 | +#. Push the maintenance branch to GitHub. |
| 26 | + |
| 27 | + |
| 28 | +Enable Documentation For A Maintenance Branch |
| 29 | +============================================= |
| 30 | + |
| 31 | +To be completed after the creation of a new maintenance branch. |
| 32 | + |
| 33 | +#. Navigate to the `ReadTheDocs project page <https://app.readthedocs.org/projects/runway/>`__ |
| 34 | +#. Click **Add version**. |
| 35 | +#. Input the name of the maintenance branch, activate it, and click **Update version**. |
| 36 | + |
| 37 | + |
| 38 | +------------------------------------------------------------------------------- |
| 39 | + |
| 40 | + |
| 41 | +***************************** |
| 42 | +Patching A Maintenance Branch |
| 43 | +***************************** |
| 44 | + |
| 45 | +#. Clone the repo locally. |
| 46 | +#. Checkout the maintenance branch and ensure it is up to date. |
| 47 | +#. Create a new branch for the patch, make the required changes, commit the changes, and push to GitHub. |
| 48 | +#. Open a new PR ensuring the **change the base branch** to the desired maintenance branch. |
| 49 | +#. Merge the PR once all requirements are met. |
| 50 | +#. Refer to the :ref:`maintainers/release_process:Maintenance Branch` release process. |
| 51 | + |
| 52 | + |
| 53 | +------------------------------------------------------------------------------- |
| 54 | + |
| 55 | + |
| 56 | +****************************** |
| 57 | +Maintenance Branch End Of Life |
| 58 | +****************************** |
| 59 | + |
| 60 | +TBD |
0 commit comments