Skip to content

avkviring/gitlab-merge-train-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

Gitlab bot for merge train improvment.

Every run:

  • merge all ready MR with assignee marge-bot
  • rebase all MR with assignee marge-bot
  • cancel pipeline for not rebased MR with assignee marge-bot
  • notitfy user about problem

Setup

Create user in Gitlab (marge-bot). Create token for user.

Configure CI variables:

  • GITLAB_HOST
  • GITLAB_TOKEN
  • GITLAB_PROJECT
  • GITLAB_BOT_NAME

Add stage and setup Gitlab Schedules for run.

stages:  
  - bot  

run-bot:
  only:
    - schedules
  stage: bot
  image:  ghcr.io/avkviring/gitlab-merge-train-bot:0.0.13
  script:
    - /gitlab-merge-train-bot