Make it possible to use multiple tokens.#186
Conversation
This commit is based on the work of @valentinschabschneider and updated to the latest master branch. deckweiss@9653c35#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80 Fixes piceaTech#104.
|
This looks good to me and very useful if one is migrating a repository which is in use and has multiple collaborators. @spruce |
spruce
left a comment
There was a problem hiding this comment.
I like the changes. Except some leftover comments. If those will be removed, I'm happy.
| settings.github.token_owner) || | ||
| author.username === settings.github.token_owner) | ||
| this.githubApis[settings.usermap[author.username as string]]) || | ||
| // settings.usermap[author.username as string] === |
There was a problem hiding this comment.
Can you remove the comments. So we don't clutter the codebase
| settings.github.token_owner) || | ||
| note.author.username === settings.github.token_owner; | ||
| let userIsPoster = this.userTokenAvailable(note.author); | ||
| // (settings.usermap && |
| mergeRequest, | ||
| !this.userIsCreator(mergeRequest.author) || !settings.useIssueImportAPI | ||
| !this.userTokenAvailable(mergeRequest.author) // || | ||
| //!settings.useIssueImportAPI |
|
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 |
This PR is based on the work of @valentinschabschneider and updated to the latest master branch:
deckweiss@9653c35#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80
Fixes #104.