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
I have filled out the user mapping table between GitLab and GitHub usernames. However, when I migrate the MRs->PRs the owner of the PR in Github is always my own user and not the user from GitLab. Is there a way to fix that?
Not really. The GH api sets the owner to the one making the request. The only way is to make requests as the different users (with different tokens) or to use an impersonation token, as available on GH Enterprise. This script does not allow for that (yet)
Sadly, the issue import API does not allow setting the creator of an issue. The only solutions I know of are the two I listed (and I'm not sure about how the impersonation token would work)
Not my changes, all credits are for @valentinschabschneider from his repo. He should definitely be contacted. I personally tested those changes with great success.
Activity
mdbenito commentedon Dec 3, 2021
Not really. The GH api sets the owner to the one making the request. The only way is to make requests as the different users (with different tokens) or to use an impersonation token, as available on GH Enterprise. This script does not allow for that (yet)
spruce commentedon Jan 10, 2022
@mike-potter with the new setting
useIssueImportAPIit may be possible. @mdbenito did you test that?mdbenito commentedon Jan 11, 2022
Sadly, the issue import API does not allow setting the creator of an issue. The only solutions I know of are the two I listed (and I'm not sure about how the impersonation token would work)
XabierGoros commentedon Apr 29, 2023
Have you guys checked this?
mdbenito commentedon Apr 29, 2023
That would be a very useful contribution! Can we expect a PR? 😃
XabierGoros commentedon May 22, 2023
Not my changes, all credits are for @valentinschabschneider from his repo. He should definitely be contacted. I personally tested those changes with great success.
Make it possible to use multiple tokens.
valentinschabschneider commentedon Jul 5, 2023
@XabierGoros totally forgot about that repo 😅
Cool to see that @pelme is now implementing it properly 🎉
pelme commentedon Jul 6, 2023
@valentinschabschneider I assume you already migrated your repos but a quick code review from you would be very helpful.🙏
There were a handful of merge conflicts to deal with, I hope I didn’t screw anything up 🙂