Files
shields/services/travis/travis-php-version-redirect.service.js
T
Paul MelnikowandGitHub 051e7d04c1 Rewrite [travisphpversion]; improve error message in expectBadge (#3352)
The change in `expectBadge` prints a more helpful error when `message` is empty.

Ref #2863
2019-04-23 23:03:21 -04:00

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'),
})