mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-14 08:36:26 +00:00
c9335d5bf6
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
17 lines
357 B
JavaScript
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,
|
|
};
|