title: Using gitlab cicd to automatically merge branches
body: <p>gitlab has this functionality that you can use pipelines that will execute code whenever you push code to your project.
  this is done through their .gitlab-ci.yml file format</p>
  
  <p>i am trying to somehow make the pipeline to merge all branches with prefix "ready/"
  i have written a python program to do it locally, but it wont execute on the gitlab docker remote machine. this is due to the fact that it only lists "* and master" as branches with "git branch -a".</p>
  
  <p>i have tried to checkout to master but that dosent work.</p>
  
  <p>is this even possible on the gitlab pipeline? how would i go forward?</p>