gitee 自动填充commit到pr标题

gitee 自动填充commit到pr标题,多个则拼接

目前为 2023-03-01 提交的版本。查看 最新版本

// ==UserScript==
// @name         gitee 自动填充commit到pr标题
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  gitee 自动填充commit到pr标题,多个则拼接
// @author       xxyangyoulin
// @match        https://gitee.com/*/pull/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    window.onload = function name() {
        setTimeout(() => {
            let prt = document.getElementById('pull_request_title')
            if (!prt) return
            Array.prototype.forEach.call(document.getElementsByClassName('markdown-body'),function(item,index,arr){
                if(item.innerText.indexOf("Merge branch")===0)return
                if(prt.value)prt.value = prt.value+"; "
                prt.value = prt.value+item.innerText
            });
        }, 500);
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址