---
title: Graficar ejemplo completo de integrar GitFlow y GitLab MRs
date: 2023-05-12
author: Osiris Alejandro Gomez osiux@osiux.com
og_title: Graficar ejemplo completo de integrar GitFlow y GitLab MRs
og_description: Ejemplo completo de integrar GitFlow con branchs develop, master, support 0.1x, support 0.2.x y 4 tags incluyendo GitLab Pipeline Status, Ready y Approve MR para branchs feature, hotfix y release
og_type: article
og_article_published_time: '2023-05-12'
og_article_author: Osiris Alejandro Gomez
og_url: https://osiux.com/2023-05-12-graphviz-git-flow-full-example-with-gitlab-mr.html
og_site_name: OSiUX
og_locale: es_AR
og_image: https://osiux.com/img/git-flow-full.png
---

- [index](index.md)
- [about](about.md)
- [archive](archive.md)
- [charlas](charlas.md)
- [docs](docs.md)
- [links](links.md)
- [dot](dot.md)
- [git](git.md)
- [img](img.md)
- [plt](plt.md)
- [tty](tty.md)
- [uml](uml.md)

```{=org}
#+ATTR_HTML: :title Git Flow Full Example with branch develop, master, support 0.1x, support 0.2.x and four tags include GitLab Pipeline Status, Ready and Approve MR for branchs feature, hotfix and release
```
[![](tmb/git-flow-full.png)](file:img/git-flow-full.png)

Hace 10 años que uso `git flow` [^1] en `gcoop` [^2] y hace 2 años que en un proyecto grande lo usamos conjuntamente con el circuito de `MRs` [^3] de `GitLab` [^4] para clarificar un poco todo el proceso decidí
utilizar `GraphViz`

En el diagrama de ejemplo se plantean 2 *features* (`foo` y `bar`), cada uno es para un *release* en particular (`v0.1.0` y `v0.2.0`) y posterior a cada *release* se generan 2 *hotfix* (`v0.1.1` y
`v0.2.2`).

El `código del grafo` [^5] esta disponible en el *repo* `osiux-graphviz` [^6]

El flujo de desarrollo es idéntico tanto para `feature`, `release` y `hotfix`, es decir, todos los *branchs* requieren los siguientes pasos:

1.  Crear *branch* e inmediatamente, crear *MR* en *Draft*
2.  Desarrollar *feature*, *release* y/o *hotfix*
3.  Verificar *Pipeline Success* de *GitLab* (caso contrario volver a 2)
4.  Si el desarrollo esta listo, marcar *Ready*
5.  Revisar *MR* y Aprobar solo si hay *PS* (caso contrario volver a 2)
6.  Si se completaron todos los pasos anteriores, realizar *merge*

| *type*            | *tag/branch*                                      | *Create MR* | *PS*     | *Ready*     | *Review MR* | *Approve*   | *Merge*     |
|-------------------|---------------------------------------------------|-------------|----------|-------------|-------------|-------------|-------------|
| *Tag Releases*    | `v0.1.0, v0.2.0, v0.1.1, v0.2.2`       | *N/A*       | *GitLab* | *N/A*       | *N/A*       | *N/A*       | *N/A*       |
| *Stable Releases* | `master, support/0.1.x, support/0.2.x` | *N/A*       | *GitLab* | *N/A*       | *N/A*       | *N/A*       | *N/A*       |
| *Release Branchs* | `release/0.1.0, release/0.2.0`         | *Developer* | *GitLab* | *Developer* | *Mantainer* | *Mantainer* | *Mantainer* |
| *Hotfix Branchs*  | `hotfix/0.1.1, hotfix/0.2.2`           | *Developer* | *GitLab* | *Developer* | *Mantainer* | *Mantainer* | *Mantainer* |
| *Feature Branchs* | `feature/foo, feature/bar`             | *Developer* | *GitLab* | *Developer* | *Mantainer* | *Mantainer* | *Mantainer* |

## *feature*, *release* y *tag*

-   [ ] crear *issue* en `project#123`
-   [ ] crear *branch* `feature/foo` saliendo de `develop` en el *repo* que corresponda
-   [ ] crear *MR* `Draf: Resolve feature/foo "Issue Tittle"` con `Closes project#123`
-   [ ] *branch* `feature/foo` debe tener *MR* con *PS*
-   [ ] crear documentación en *wiki* `foo/foo_bar_vM.N.P`
-   [ ] *branch* `release/M.N.P` debe tener *PS*
-   [ ] *tag* `vM.N.P`

## *hotfix*

-   [ ] crear *branch* `support/M.N.x` saliedo de *tag* `vM.M.x`
-   [ ] crear *branch* `hotfix/foobar` saliendo de `support/M.N.x`
-   [ ] *branch* `hotfix/foobar` debe tener *MR* con *PS*

## Referencias

| item               | descripción                    |
|--------------------|--------------------------------|
| *MR*               | *Merge Request*                |
| *PS*               | *Pipeline Success*             |
| `M.N.P` | `MAJOR.MINOR.PATCH` |

## Tal vez te interese leer

-   \[Automate conversion of blog from *org-mode* to *Html*, *Markdown* and *Gemini* using *Docker image* `alpine-org2blog` and /GitLab
    CI/\](2023-02-24-automate-blog-from-org-mode-to-html-markdown-gemini-using-docker-alpine-org2blog-and-gitlab-ci.md)
-   \[howto launch gitlab ci from other gitlab ci repo using trigger\](2023-02-14-howto-launch-gitlab-ci-from-other-gitlab-ci-repo-using-trigger.md)
-   \[Automatizar la implementación de los recursos de AWX con GitLab CI/CD y Ansible Tools\](2022-10-08-automate-deployment-of-AWX-resources-with-GitLab-CI-CD-and-ansible-tools.md)
-   \[cómo usar *GitLab* desde la línea de comandos\](2022-08-21-howto-use-gitlab-from-command-line.md)

## ChangeLog

-   [`2023-05-12 10:40`](https://gitlab.com/osiux/osiux.gitlab.io/-/commit/7b750e2424e400fd1a78e5a5e95095ba39d8fa87) agregar *Graficar ejemplo completo de integrar GitFlow y GitLab MRs*

[^1]: <https://nvie.com/posts/a-successful-git-branching-model/>

[^2]: <https://www.gcoop.coop/>

[^3]: <https://docs.gitlab.com/ee/user/project/merge_requests/>

[^4]: <https://docs.gitlab.com/omnibus/installation/>

[^5]: <https://gitlab.com/osiux/osiux-graphviz/-/raw/develop/dot/git-flow-full.dot>

[^6]: <https://gitlab.com/osiux/osiux-graphviz/>
