diff --git a/coats/openstack_gerrit_zuul_status.user.js b/coats/openstack_gerrit_zuul_status.user.js index 455c2ac..df4a729 100644 --- a/coats/openstack_gerrit_zuul_status.user.js +++ b/coats/openstack_gerrit_zuul_status.user.js @@ -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]; diff --git a/cspell.json b/cspell.json index 97d61be..755ea3c 100644 --- a/cspell.json +++ b/cspell.json @@ -61,6 +61,7 @@ "ignoreWords": [ "I18NSPHINXOPTS", "mdinclude", - "toctree" + "toctree", + "opendev" ] }