The change in `expectBadge` prints a more helpful error when `message` is empty. Ref #2863
17 lines
383 B
JavaScript
17 lines
383 B
JavaScript
'use strict'
|
|
|
|
const { redirector } = require('..')
|
|
|
|
module.exports = redirector({
|
|
category: 'platform-support',
|
|
route: {
|
|
base: 'travis-ci/php-v',
|
|
pattern: ':user/:repo/:branch*',
|
|
},
|
|
transformPath: ({ user, repo, branch }) =>
|
|
branch
|
|
? `/travis/php-v/${user}/${repo}/${branch}`
|
|
: `/travis/php-v/${user}/${repo}`,
|
|
dateAdded: new Date('2019-04-22'),
|
|
})
|