You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is if else condition to check for SCM type which is very specific.
The code needs to be improved to handle different SCM types more generically which can handle bitbucket, gitlab, github, etc by importing different modules based on scmTypes as shown below
Here I am following convention to define objects keys and the files to make my code flexible.
Description
Currently there is if else condition to check for SCM type which is very specific.
The code needs to be improved to handle different SCM types more generically which can handle bitbucket, gitlab, github, etc by importing different modules based on scmTypes as shown below
Here I am following convention to define objects keys and the files to make my code flexible.
function(scmType) {
const scmTypes = {
'default': require('./defaultSCM'),
[scmType]: require(
./${scmType}
)};
Aha! Link: https://t-mobile1t-mobile.aha.io/features/JZ-25
The text was updated successfully, but these errors were encountered: