Skip to content

User mapping for Merge Requests #104

Open

Description

@mike-potter

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?

Activity

  1. mdbenito commented on Dec 3, 2021

    @mdbenito
    Contributor

    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)

  2. spruce commented on Jan 10, 2022

    @spruce
    Member

    @mike-potter with the new setting useIssueImportAPI it may be possible. @mdbenito did you test that?

  3. mdbenito commented on Jan 11, 2022

    @mdbenito
    Contributor

    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)

  4. XabierGoros commented on Apr 29, 2023

    @XabierGoros

    Have you guys checked this?

  5. mdbenito commented on Apr 29, 2023

    @mdbenito
    Contributor

    That would be a very useful contribution! Can we expect a PR? 😃

  6. XabierGoros commented on May 22, 2023

    @XabierGoros

    Not my changes, all credits are for @valentinschabschneider from his repo. He should definitely be contacted. I personally tested those changes with great success.

  7. added a commit that references this issue on Jul 5, 2023
    aabb16a
  8. valentinschabschneider commented on Jul 5, 2023

    @valentinschabschneider

    @XabierGoros totally forgot about that repo 😅

    Cool to see that @pelme is now implementing it properly 🎉

  9. pelme commented on Jul 6, 2023

    @pelme

    @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 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions