update [bitrise] URL (#1764)

This commit is contained in:
chris48s
2018-07-08 12:50:19 +01:00
committed by GitHub
parent 8ad3bc7e90
commit dc8bc9c5b4
2 changed files with 2 additions and 2 deletions

View File

@@ -5621,7 +5621,7 @@ cache({
const format = match[3];
const token = data.token;
const badgeData = getBadgeData('bitrise', data);
let apiUrl = 'https://www.bitrise.io/app/' + appId + '/status.json?token=' + token;
let apiUrl = 'https://app.bitrise.io/app/' + appId + '/status.json?token=' + token;
if (typeof branch !== 'undefined') {
apiUrl += '&branch=' + branch;
}

View File

@@ -42,7 +42,7 @@ t.create('invalid App ID')
t.create('server error')
.get('/AppID/branch.json?token=token')
.intercept(nock => nock('https://www.bitrise.io')
.intercept(nock => nock('https://app.bitrise.io')
.get('/app/AppID/status.json?token=token&branch=branch')
.reply(500, 'Something went wrong'))
.expectJSON({ name: 'bitrise', value: 'inaccessible' });