Updated RH_jira_bz_linker

- Isolated function
- updated namespace
This commit is contained in:
Sagi Dayan 2021-07-08 17:36:07 +03:00
parent 87261d33a0
commit eeb290586b
Signed by: sagi
GPG key ID: FAB96BFC63B46458

View file

@ -1,12 +1,13 @@
// ==UserScript== // ==UserScript==
// @name RedHat jira BZ Linker // @name RedHat jira BZ Linker
// @version 0.0.1 // @version 0.0.1
// @namespace http://arantius.com/misc/greasemonkey/ // @namespace https://git.sagidayan.com/sagi/greasemonkey-scripts
// @author Sagi Dayan // @author Sagi Dayan
// @description Adds BZ links in (RedHat) Jira when needed // @description Adds BZ links in (RedHat) Jira when needed
// @match https://issues.redhat.com/* // @match https://issues.redhat.com/*
// ==/UserScript== // ==/UserScript==
(function () {
// Constants // Constants
const LOG_TAG = '[BZ-LINKER]'; const LOG_TAG = '[BZ-LINKER]';
const summaryRegExp = new RegExp(/\[([0-9]+)\]/); const summaryRegExp = new RegExp(/\[([0-9]+)\]/);
@ -65,3 +66,4 @@ function filterAndInflate(rows) {
return false; return false;
}) })
} }
})();