Configure zuul status to use new opendev.org url
This points to the new gerrit/zuul locations. Change-Id: Iaa38668076bc271475b370de6260bb0b9508d59b
This commit is contained in:
parent
c9e48a112b
commit
e19b3aab43
@ -15,17 +15,17 @@
|
||||
// ==UserScript==
|
||||
// @name Gerrit Zuul Status
|
||||
// @author Michel Peterson
|
||||
// @version 6
|
||||
// @version 7
|
||||
// @grant none
|
||||
// @include /^https?://review\.openstack\.org/(#/c/)?\d*?/?(\d*)?/?$/
|
||||
// @include /^https?://review\.opendev\.org/(#/c/)?\d*?/?(\d*)?/?$/
|
||||
// @require https://code.jquery.com/jquery-3.3.1.min.js
|
||||
// @require https://review.openstack.org/static/hideci.js
|
||||
// @require https://review.opendev.org/static/hideci.js
|
||||
// ==/UserScript==
|
||||
|
||||
// Config
|
||||
|
||||
const zuul_status_base = "https://zuul.openstack.org/";
|
||||
const zuul_status_url = zuul_status_base + "api/status/change/";
|
||||
const zuul_status_base = "https://zuul.opendev.org/";
|
||||
// TODO: find a way to deal with multiple tenants
|
||||
const zuul_status_url = zuul_status_base + "api/tenant/openstack/status/change/";
|
||||
|
||||
// /Config
|
||||
|
||||
@ -62,7 +62,7 @@ var render = function(jobs) {
|
||||
|
||||
var main = function() {
|
||||
const url = $(location).attr("href");
|
||||
const matches_url = /^https?:\/\/review\.openstack\.org\/(#\/c\/)?(\d*)\/?(\d*)?\/?$/.exec(url);
|
||||
const matches_url = /^https?:\/\/review\.opendev\.org\/(#\/c\/)?(\d*)\/?(\d*)?\/?$/.exec(url);
|
||||
|
||||
const change_id = matches_url[2];
|
||||
var change_ver = matches_url[3];
|
||||
|
@ -61,6 +61,7 @@
|
||||
"ignoreWords": [
|
||||
"I18NSPHINXOPTS",
|
||||
"mdinclude",
|
||||
"toctree"
|
||||
"toctree",
|
||||
"opendev"
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user