parent
6996879173
commit
a1597955d6
|
@ -2147,8 +2147,8 @@ cache(function(data, match, sendBadge, request) {
|
||||||
var slashesInRepo = 2;
|
var slashesInRepo = 2;
|
||||||
if (repoParts[0] === 'gp') { slashesInRepo = 1; }
|
if (repoParts[0] === 'gp') { slashesInRepo = 1; }
|
||||||
if ((repoParts.length - 1) > slashesInRepo) {
|
if ((repoParts.length - 1) > slashesInRepo) {
|
||||||
branch = repoParts[repoParts.length - 1];
|
branch = repoParts.slice(slashesInRepo + 1).join('/');
|
||||||
repo = repoParts.slice(0, -1).join('/');
|
repo = repoParts.slice(0, slashesInRepo + 1).join('/');
|
||||||
}
|
}
|
||||||
var apiUrl = 'https://scrutinizer-ci.com/api/repositories/' + repo;
|
var apiUrl = 'https://scrutinizer-ci.com/api/repositories/' + repo;
|
||||||
var badgeData = getBadgeData('coverage', data);
|
var badgeData = getBadgeData('coverage', data);
|
||||||
|
@ -2186,8 +2186,8 @@ cache(function(data, match, sendBadge, request) {
|
||||||
var slashesInRepo = 2;
|
var slashesInRepo = 2;
|
||||||
if (repoParts[0] === 'gp') { slashesInRepo = 1; }
|
if (repoParts[0] === 'gp') { slashesInRepo = 1; }
|
||||||
if ((repoParts.length - 1) > slashesInRepo) {
|
if ((repoParts.length - 1) > slashesInRepo) {
|
||||||
branch = repoParts[repoParts.length - 1];
|
branch = repoParts.slice(slashesInRepo + 1).join('/');
|
||||||
repo = repoParts.slice(0, -1).join('/');
|
repo = repoParts.slice(0, slashesInRepo + 1).join('/');
|
||||||
}
|
}
|
||||||
var apiUrl = 'https://scrutinizer-ci.com/api/repositories/' + repo;
|
var apiUrl = 'https://scrutinizer-ci.com/api/repositories/' + repo;
|
||||||
var badgeData = getBadgeData('build', data);
|
var badgeData = getBadgeData('build', data);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user