Skip to content

Instantly share code, notes, and snippets.

View mjahmed-wd's full-sized avatar
:electron:

Md. Jubair Ahmed mjahmed-wd

:electron:
View GitHub Profile
@bench
bench / gitlab-merge-request.sh
Last active September 1, 2022 04:20
A script to create gitlab MR from a shell
#!/bin/bash
# Check if jq is installed
if ! type "jq" > /dev/null; then
echo please install jq
fi
title="$(git log --oneline | head -1 | cut -f 2- -d ' ')"
source_branch="$(git branch | grep '*' | cut -f 2 -d ' ')"
target_branch=master