How to auto create MRs in Gitlab

(Optional) Git Feature Branches

Gitlab Workflow


Gitlab Auto MR

- pre

stage: pre
- master
- tags
- gitlab_auto_mr -t master -c WIP -d .gitlab/merge_request_templates/ -r -s --use-issue-name
# Description

<!-- please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. -->

## Type

- [ ] Bug Fix
- [ ] Improvement
- [ ] New Feature

Fixes #<!-- Issue Number -->
  • -r: Will remove the source branch (our feature branch) after the MR has been approved
  • -s: Will squash our commits into a single commit, so each feature branch will appear as a single commit onto the master branch
  • --use-issue-name: If set and you do something like feature/#6 it will search for the issue with id 6 and pull information from there like labels and milestones etc. It will then assign those to this MR, an example of this can be seen with MR here where the issue #211 is here





Software Engineer | Pythonista | Typescripter | Docker Advocate |

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Straight Fire Integrates Chainlink VRF to Support Dynamic NFT Collections and IPs

7 VS Code Extensions That Make You Want To Keep Coding Forever

How Domino’s Pizza Enterprises Delivers in Record Time Using AWS for Predictive Ordering.

Data testing strategy reinvented

K6 — Custom Slack Integration: Metrics are the Magic of Tests

Dynamic height of accessory view in iOS

How to integrate Mandrill into Yii 2

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Haseeb Majid

Haseeb Majid

Software Engineer | Pythonista | Typescripter | Docker Advocate |

More from Medium

Can we run docker inside the docker container??

Securing Ubuntu 18.04 & 20.04: How to remotely encrypt full disk post-installation

Intro to Docker-compose with Express and MongoDB

Hosting multiple containerized websites on a single server