mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 07:26:26 +00:00
608d8c5be0
Adds platform support for Bitbucket cloud. Closes #136, Closes #2238
21 lines
458 B
JavaScript
21 lines
458 B
JavaScript
/* eslint-disable global-require */
|
|
const platforms = new Map([
|
|
['bitbucket', require('./bitbucket')],
|
|
['github', require('./github')],
|
|
['gitlab', require('./gitlab')],
|
|
['vsts', require('./vsts')],
|
|
]);
|
|
/* eslint-enable global-require */
|
|
|
|
function getPlatformApi(platform) {
|
|
return platforms.get(platform);
|
|
}
|
|
|
|
function initPlatform(platform) {
|
|
global.platform = getPlatformApi(platform);
|
|
}
|
|
|
|
module.exports = {
|
|
initPlatform,
|
|
getPlatformApi,
|
|
};
|