piceaTech / node-gitlab-2-github

Migrate Issues, milestones etc from gitlab to github
MIT License
547 stars 133 forks source link

Make it possible to use multiple tokens. #186

Open pelme opened 1 year ago

pelme commented 1 year ago

This PR is based on the work of @valentinschabschneider and updated to the latest master branch: https://github.com/deckweiss-gmbh/node-gitlab-2-github/commit/9653c35815052aef4233be9df2670eee4ce7cee4#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80

Fixes #104.

mdbenito commented 9 months ago

This looks good to me and very useful if one is migrating a repository which is in use and has multiple collaborators. @spruce

adku1173 commented 5 months ago

Thank you for the nice PR!

We try to use this PR for migrating our Issues from GitLab to GitHub. Using multiple tokens to connect user accounts seems to work as expected without using the IssueImportAPI (migrated issues and comments belong to the correct users). However, only the Issue creator is correct when using IssueImportAPI: true. All subsequent migrated comments on a migrated issue belong to the creator, not the original commentator.