---
title: "GitFlow"
canonical: "https://onesaitplatform.refined.site/space/DOCT/2220814084/GitFlow"
format: markdown
---
In the Platform, we use *[GitLab](https://onesait-git.cwbyminsait.com/onesait-platform/onesait-cloud-platform)* as a code repository and *GitFlow* as a methodology or workflow, following this branch scheme:

- **master**: Stable code branch. From this branch, the stable *release* branches are generated within the quarter.
- **develop**: Branch of new features programmed within the Q, according to the product roadmap. This branch *merges* to master, once stabilized and tested and once the Q is over.
- **stable** (release candidate): Branch generated from master, intended for bug fixes and improvements. This branch is deployed weekly in the stable environment and merges both to *master* and to *develop.*

![image](media://f218b5a0-39f9-4110-a8b9-2dbf61b1b7c1)

Each new functionality, bug correction or improvement is associated with the corresponding *Issue* in GitLab, labeled as FEATURE, BUG or UPTURN.

![image](media://dda8e317-91d3-41df-92dd-244479f9c8a1)

The issue is associated with a development branch and a brief description:

![image](media://b21f007c-7beb-4ee6-9ee8-59d6f3b762eb)

Besides, the issue must be associated with the corresponding milestone (weekly if it is a release candidate or RC) or quarterly if it is intended to the Q's end.

![image](media://8709fdf3-5a05-4d8b-bd1e-d5401229fe28)

Once the development is finished, a *pull request* or request is generated to merge the branch to **develop** or to the **stable** branch. Tor this purpose, the corresponding request is created from GitLab

![image](media://a398143e-a7a7-4e1e-8a49-fd9f93b9c02a)

We will mark the check to delete the origin branch once merged:

![image](media://da014577-79a2-476a-b020-c168ed5b73ee)

and it is assigned to a team member, usually a senior one.

![image](media://653131d6-d1e9-4795-bf13-c3b54552b4fa)

Once the issue has been tested and validated in the corresponding environment, it must be changed to state: closed:

![image](media://2be9347b-d462-47e7-adab-079cc4bb8c2a)