renovate/lib/platform/index.js
JYC c9335d5bf6 Add VSTS support (#1049)
This PR adds support for Microsoft's [Visual Studio Team Services](https://www.visualstudio.com/team-services/) platform (in addition to existing GitHub and GitLab support). 

Closes #571
2017-11-12 10:26:53 +01:00

17 lines
357 B
JavaScript

const github = require('./github');
const gitlab = require('./gitlab');
const vsts = require('./vsts');
function initPlatform(val) {
if (val === 'github') {
global.platform = github;
} else if (val === 'gitlab') {
global.platform = gitlab;
} else if (val === 'vsts') {
global.platform = vsts;
}
}
module.exports = {
initPlatform,
};