FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Make it possible to use multiple tokens. by pelme · Pull Request #186 · piceaTech/node-gitlab-2-github · GitHub

Make it possible to use multiple tokens. - #186

Open
pelme wants to merge 2 commits into
piceaTech:masterfrom
pelme:multiple-tokens
Open

Make it possible to use multiple tokens.#186
pelme wants to merge 2 commits into
piceaTech:masterfrom
pelme:multiple-tokens

Conversation

pelme commented Jul 5, 2023

Copy link
Copy Markdown

This PR is based on the work of @valentinschabschneider and updated to the latest master branch:
deckweiss@9653c35#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80

Fixes #104.

mdbenito commented Dec 3, 2023

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I like the changes. Except some leftover comments. If those will be removed, I'm happy.

Comment thread src/githubHelper.ts
settings.github.token_owner) ||
author.username === settings.github.token_owner)
this.githubApis[settings.usermap[author.username as string]]) ||
// settings.usermap[author.username as string] ===

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Can you remove the comments. So we don't clutter the codebase

Comment thread src/githubHelper.ts
settings.github.token_owner) ||
note.author.username === settings.github.token_owner;
let userIsPoster = this.userTokenAvailable(note.author);
// (settings.usermap &&

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Remove these please, too.

Comment thread src/githubHelper.ts
mergeRequest,
!this.userIsCreator(mergeRequest.author) || !settings.useIssueImportAPI
!this.userTokenAvailable(mergeRequest.author) // ||
//!settings.useIssueImportAPI

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This one as well.

adku1173 commented Apr 5, 2024
edited
Loading

Copy link
Copy Markdown

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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User mapping for Merge Requests

4 participants


Back | FazBrowse Home | New Git URL