Does GEI support migrating autolinks/permalinks when a repo changes orgs? #809
-
QuestionDoes GEI support migrating autolinks/permalinks found in issue/PR comments if a repo is changing orgs? If not, what approach, if any, is recommended? ContextI'm trying to understand the implications for various autolinks when migrating a repo to a different organization. I'm most interested in the following scenarios commonly found in issue or PR comments. Below is the transform I'm hoping to achieve (somehow): Cross link reference to issue/PR on other repo within org-<old>/<repo>#<num>
+<new>/<repo>#<num> -https://old.instance/<old_org>/<repo>/issues/<num>
+https://new.instance/<new_org>/<repo>/issues/<num> -https://old.instance/<old_org>/<repo>/pull/<num>
+https://new.instance/<new_org>/<repo>/pull/<num> Cross reference to commit of other repo within org-<old>/<repo>@<commit>
+<new>/<repo>@<commit> -https://old.instance/<old_org>/<repo>/commit/<commit>
+https://new.instance/<new_org>/<repo>/commit/<commit> Permalinks to code snippet-https://old.instance/old_org/repo/blob/commit/file#L1234-L1235
+https://new.instance/new_org/repo/blob/commit/file#L1234-L1235 Thanks for your support! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@thorntonryan Thanks for reaching out! I'm just looking into this with the team, and I'll get back to you soon. |
Beta Was this translation helpful? Give feedback.
-
@thorntonryan Thanks for your patience on this! The answer to this question is a little complicated, so I'll break it down step by step:
I hope that helps! If you have any further questions, or if you think I've made any mistakes, then do feel free to let me know. |
Beta Was this translation helpful? Give feedback.
@thorntonryan Thanks for your patience on this! The answer to this question is a little complicated, so I'll break it down step by step:
org/repo#<num>
), and the name of the organization and repo is the same after the migration as it was before the migration, then those links will continue to work.org/repo#<num>
) or a full URL and you run an organization-to-organization migration (see the docs, only available when migrating from github.com to github.com), then we will rewrite the URLs to match your new GitHub host, organization and repo name.