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:
Sorin Sbarnea 2019-04-17 17:30:17 +01:00
parent c9e48a112b
commit e19b3aab43
2 changed files with 9 additions and 8 deletions

View File

@ -15,17 +15,17 @@
// ==UserScript== // ==UserScript==
// @name Gerrit Zuul Status // @name Gerrit Zuul Status
// @author Michel Peterson // @author Michel Peterson
// @version 6 // @version 7
// @grant none // @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://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== // ==/UserScript==
// Config // Config
const zuul_status_base = "https://zuul.opendev.org/";
const zuul_status_base = "https://zuul.openstack.org/"; // TODO: find a way to deal with multiple tenants
const zuul_status_url = zuul_status_base + "api/status/change/"; const zuul_status_url = zuul_status_base + "api/tenant/openstack/status/change/";
// /Config // /Config
@ -62,7 +62,7 @@ var render = function(jobs) {
var main = function() { var main = function() {
const url = $(location).attr("href"); 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]; const change_id = matches_url[2];
var change_ver = matches_url[3]; var change_ver = matches_url[3];

View File

@ -61,6 +61,7 @@
"ignoreWords": [ "ignoreWords": [
"I18NSPHINXOPTS", "I18NSPHINXOPTS",
"mdinclude", "mdinclude",
"toctree" "toctree",
"opendev"
] ]
} }