Auto Merge Request Title

Compatible gitlab

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name Auto Merge Request Title
// @name:es Auto Merge Request Title
// @description Compatible gitlab
// @description:es Compatible gitlab
// @date 2020-06-10
// @compatible chrome
// @compatible firefox
// @compatible opera
// @compatible safari
// @license CC BY-NC-ND 4.0 International. https://creativecommons.org/licenses/by-nc-nd/4.0/
// @match *://*.gitlab.com/*
// @match *://gitlab.*.com.*/*
// @version 0.0.1.20200702174508
// @namespace https://greasyfork.org/users/662624
// ==/UserScript==
document.addEventListener("DOMContentLoaded", function(event) {
   var branchSelector = document.getElementsByClassName("branch-selector");

	for (var i = 0; i < branchSelector.length; i++) {
  	var texto = branchSelector[i].innerText;
	}
  
	var textoToInput = texto.split(' ');

	var textToInsert = textoToInput[1] +'=>'+ textoToInput[3];
	document.getElementById("merge_request_title").value = textToInsert;
});