Tooling to support migrations from Bitbucket to Github. More information on the repository setup can be found on our Confluence space.
- Run
git clone git@github.com:HT2-Labs/vcs-migration-tooling.git
- Create and update your
params.pyfile - Run
cp common/params-dist.py common/params.py
-
Create a
files-to-migratedirectory for any files you want to add -
Run
mkdir files-to-migrate -
Make sure you add any files you want to add to the repository into this directory
-
Make sure you update the
createDirectoriesfunction in yourparams.pyfile to create the correct directory structure -
Make sure you update the
createFilesfunction in yourparams.pyfile to add the correct files to the repository -
Make sure you update the
filesToAddparameter in yourparams.pyfile to add the correct files to the staging area
- The
Update the package.jsonsection of thepre-github-move.pyfile is mandatory - You can update the
updatePackageJsonfunction in yourparams.pyfile to update thepackage.jsonhow you'd like, or alternatively use the default
- The
Enable/disable settings and create a PRsection of themigration-github.pyfile is optional - You can update the settings in your
params.pyfile to update the repository settings how you'd like
- The
Ensure the latest tag has a 'v' at the beginningsection of themigration-github.pyfile is optional - This will be enabled by default if the
addSemanticReleaseBoolis set toTrue
- The
Assign teams with correct permissionssection of themigration-github.pyfile is optional - You can update the teams and permissions in your
params.pyfile