Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Extend git workflow documentation

Oliver Günther83122f16069b
diff --git a/docs/development/README.md b/docs/development/README.md
index c45c03e9838..f0264893cb1 100644
--- a/docs/development/README.md
+++ b/docs/development/README.md
@@ -20,50 +20,9 @@ We eat our own ice cream so we use OpenProject for roadmap planning and team col
Take a look at the bottom under Additional resources to see how to setup your development environment.
-## Branching model
+## Branching model and development flow
-The main development branch for upcoming releases is `dev`. If in doubt, create your pull request against `dev`. All new features, gem updates and bugfixes for the upcoming release should go into the `dev` branch.
-
-## Development flow
-
-For contributing source code, please follow the git workflow below:
-
-- **Fork** OpenProject on GitHub
-- Clone your fork to your development machine:
-
-```
-git clone [email protected]/<username>/openproject
-```
-
-- Optional: Add the original OpenProject repository as a remote, so you can fetch changes:
-
-```
-git remote add upstream [email protected]:opf/openproject
-```
-
-- Make sure you're on the right branch. The main development branch is `dev`:
-
-```
-git checkout dev
-```
-
-- Create a feature branch:
-
-```
-git checkout -b feature/<short description of your feature>
-```
-
-- Make your changes, then push the branch into your **own** repository:
-
-```
-git push origin <your feature branch>
-```
-
-- Create a pull request against a branch of of the <opf/openproject> repository, containing a **clear description** of what the pull request attempts to change and/or fix.
-
-If your pull request **does not contain a description** for what it does and what it's intentions are, we will reject it. If you are working on a specific work package from the [list](https://community.openproject.com/projects/openproject/work_packages), please include a link to that work package in the description, so we can track your work.
-
-The core contributor team will then review your pull request according to our [code review guideline](https://www.openproject.org/open-source/development-free-project-management-software/code-review-guideliness/). Please note that you can add commits after the pull request has been created by pushing to the branch in your fork.
+Please see this separate guide for the [git branching model and core development](git-workflow).
## Translations
@@ -81,10 +40,6 @@ If you push to your branch in quick succession, please consider stopping the ass
Please also use `[ci skip]` in your commit message to suppress builds which are not necessary (e.g. after fixing a typo in the `README`).
-## Bugs and hotfixes
-
-Bugfixes for one of the actively supported versions of OpenProject should be issued against the respective branch. A fix for the current version (called "Hotfix" and the branch ideally being named `hotfix/XYZ`) should target `release/*` and a fix for the former version (called "Backport" and the branch ideally being named `backport/XYZ`) should target `backport/*`. We will try to merge hotfixes into dev branch but if that is no trivial task, we might ask you to create another PR for that.
-
## Inactive pull requests
We want to keep the Pull request list as cleaned up as possible - we will aim close pull requests after an **inactivity period of 30 days** (no comments, no further pushes) which are not labelled as `work in progress` by us.
diff --git a/docs/development/git-workflow/README.md b/docs/development/git-workflow/README.md
new file mode 100644
index 00000000000..a8ea6ffbf8c
--- /dev/null
+++ b/docs/development/git-workflow/README.md
@@ -0,0 +1,114 @@
+---
+sidebar_navigation:
+ title: Development workflow
+description: How new features and bug fixes are developed at OpenProject
+robots: index, follow
+keywords: development workflow, gitflow, git flow
+---
+
+
+
+This guide will introduce you to how we at OpenProject develop OpenProject with Git, and how to contribute code. For other ways on how to contribute to OpenProject, [please see the contribution guide](#TODO).
+
+
+
+# Development at GitHub
+
+The OpenProject core is developed fully at our GitHub repository at https://github.com/opf/openproject. In the course of this guide, we assume that you are familiar with Git. If you need a refresher on certain topics, we recommend the [free Pro Git online book](https://git-scm.com/book/en/v2) as a resource for all topics on Git.
+
+
+
+# Branching model
+
+OpenProject works with a git branching model similar to Git Flow to organize development and stable branches. The important branches are:
+
+
+
+- **`dev`**: Contains the current development version of OpenProject. Almost all development is made against this branch, with the exception of [bugfixes and minor changes](#bugs-and-hotfixes)
+- **`release/X.Y`**: Multiple of these branches may exist, they are maintenance branches or maintained or stale older releases of OpenProject. These branches will include bugfixes and changes for the next patch release of OpenProject.
+- **`stable/X`**: Multiple of these branches exist containing the latest stable `X.y.z` release of OpenProject. These branches are used for building docker images and packages from and are usually never pushed to directly except during an automated release process.
+- **`feature/X`**: These are temporary branches used by developers to develop features or other changes that are targeting the dev branch. They are opened as a pull request for reviewing and testing. When they are ready to merge, they will be merged into the `dev` branch.
+- **`(bug)fix/X`**: These are temporary branches used by developers to provide bug fixes and regression tests. They can be created against `dev` on a new major or minor release during stabilization, but most often, you will want to create a bugfix against a current production release. In this case, open the pull request against the most recent `release/X.Y` branch so that the bugfix will be available in the immediate next patch release. Ensure that the version of the corresponding OpenProject bug ticket matches the release branch version.
+
+
+
+The following is an overview of the processes that happen during the release of a new major release and the bug fixing phase afterwards leading to patch releases being made.
+
+![Overview of the branches](branching-diagram.png)
+
+# Contribution flow
+
+The basic overview of how to contribute code to OpenProject is as follows.
+
+1. [Fork the OpenProject repository](#fork-openproject) and create a local development branch
+2. Develop your change. Please see the sections on [development concepts](../concepts/) for further information on development topics.
+3. [Create a pull request](#create-a-pull-request) on our repository. Please see and review [code style and review](../code-review-guidelines) for guidelines on how to submit a pull request and requirements for getting your changes merged.
+4. We will evalute your pull review and changes.
+
+
+
+## Fork OpenProject
+
+For contributing source code, please follow the git workflow below:
+
+- Use GitHub UI to fork the [OpenProject repository](https://github.com/opf/openproject) https://github.com/opf/openproject.
+- Clone your fork to your development machine:
+
+```
+git clone [email protected]/<username>/openproject
+```
+
+Make sure you're on the right branch. The main development branch is `dev`:
+
+```
+git checkout dev
+```
+
+Add the original OpenProject repository as a remote, so you can fetch changes:
+
+```
+git remote add upstream [email protected]:opf/openproject
+```
+
+Upate your local git branch to the core branch
+
+```
+git pull upstream/dev
+```
+
+Create a feature branch:
+
+```
+git checkout -b feature/<short description of your feature>
+```
+
+Make your changes, then push the branch into your **own** repository:
+
+```
+git push origin <your feature branch>
+```
+
+
+
+## Create a Pull Request
+
+Create a pull request against a branch of of the <opf/openproject> repository, containing a **clear description** of what the pull request attempts to change and/or fix.
+
+If your pull request **does not contain a description** for what it does and what it's intentions are, we will reject it. If you are working on a specific work package from the [list](https://community.openproject.com/projects/openproject/work_packages), please include a link to that work package in the description, so we can track your work.
+
+The core contributor team will then review your pull request according to our [code review guideline](https://www.openproject.org/open-source/development-free-project-management-software/code-review-guideliness/). Please note that you can add commits after the pull request has been created by pushing to the branch in your fork.
+
+
+
+### Features
+
+New features are always added to the current `dev` branch, which is the development version of the next major or minor OpenProject version.
+
+
+
+### Bugs and hotfixes
+
+Bugfixes for one of the actively supported versions of OpenProject should be issued against the respective branch. For that, we maintain at least one `release/X.Y` branch for OpenProject releases X.Y.Z. For example, the OpenProject release branch for 11.0 would be `release/11.0` and contains all releases between `11.0.0` until `11.0.X` .
+
+ A fix for the current version (called "Hotfix" and the branch ideally being named `fix/XYZ`) should target `release/*` and a fix for the former version (called "Backport" and the branch ideally being named `backport/XYZ`) should target `backport/*`. We will try to merge hotfixes into dev branch but if that is no trivial task, we might ask you to create another PR for that.
+
diff --git a/docs/development/git-workflow/branching-diagram.drawio b/docs/development/git-workflow/branching-diagram.drawio
new file mode 100644
index 00000000000..82b62d6893f
--- /dev/null
+++ b/docs/development/git-workflow/branching-diagram.drawio
@@ -0,0 +1 @@
+<mxfile host="Electron" modified="2020-09-16T07:28:23.588Z" agent="5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/13.6.2 Chrome/83.0.4103.122 Electron/9.2.0 Safari/537.36" etag="-kTFLyQYQJ1NV2McDHwn" version="13.6.2" type="device"><diagram id="KLt75PSvVEqEfpNXVKmj" name="Page-1">7V1bd6M2EP41fowPEojLYxIn3Xa3PXuatnt5wyBsTrBxMd44+fUVIGGQxMXYYLyN87CWkAVovhl9MxppJ+r9av9LZG+Wv4cuDiZQcfcTdTaBEOg6Iv8kNa9ZjWUqWcUi8l3a6FDx5L/hrJL+bLHzXbwttYvDMIj9TbnSCddr7MSlOjuKwpdyMy8Myjfd2AssVDw5diDWfvHdeElrgaIcLnzA/mJJb20iemFls8a0Yru03fClUKU+TNT7KAzj7Ntqf4+DZOzYsGS/e6y4mj9YhNdxmx/s751Pzhdt7Tnm5+XNB7Tdz7/eQD3r5ocd7Ogb06eNX9kQLKJwt6HNcBTjvWzg7TlrrogPBvLXJTDB4QrH0StpQjtS2VhShEBTy8ovhwFHGsXDsjDWENGnt6mQF3nfh3EgX+hQHDMsWvOwkFFZ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SymsSelmS6zTbIJzmmRVU5ocf+E1UZu21Jji+fuMGnLkpIb195qtI3uDJL2sNZP01pb91XY7ufD1Rcnq0NMBXXMmpc3jHZbo3PnAP6VCvYcsBt3m99rhBCU1ieB/TkeI5Cz2xjxYiOWpEZ8yHiBfl+0qrtqBWG7fRDU4QEX4kD0ZffLz9r68oOezrHWSdH2LKudvOcNrB291PzYWr1gLwIf61wqU4mrMZFd+fLh1900MdwnBRzsAc8TiqzNHVARLpRnsLYZs5Tt+FxvVpTPpG8R/m3OKj3J5vj+G3Zl5/j/n88Q+OTpi4tg7FvJHo/V3Uc56p2PKhnZOeqyuUk5kWIu0REy/RTRur7MHlM5P3vEiHFw/n/GTwO/4mC+vAf</diagram></mxfile>
\ No newline at end of file
diff --git a/docs/development/git-workflow/branching-diagram.png b/docs/development/git-workflow/branching-diagram.png
new file mode 100644
index 00000000000..9cddf0f7ef1
Binary files /dev/null and b/docs/development/git-workflow/branching-diagram.png differ