Description
When using gh gl2gh (version 1.33) and having a permissions issue while migrating, the error message points to a generic docs link for GitHub > GitHub migrations. There is a separate link available for GitLab > GitHub migrations which has specific scopes for the GitHub personal access token, that deviate from the one for GitHub > GitHub. The line of code where the link is:
|
return $". Please check that:\n (a) you are a member of the `{organizationLogin}` organization,\n (b) you are an organization owner or you have been granted the migrator role and\n (c) your personal access token has the correct scopes.\nFor more information, see https://docs.github.com/en/migrations/using-github-enterprise-importer/preparing-to-migrate-with-github-enterprise-importer/managing-access-for-github-enterprise-importer."; |
.
What the error message looks like now:
The correct URL for GitLab is https://docs.github.com/en/enterprise-cloud@latest/migrations/using-github-enterprise-importer/migrate-from-gitlab/manage-access
Reproduction Steps
Create a personal access token that only has "repos" scope and try to run a GitLab to GitHub migration using gh gl2gh.
Description
When using gh gl2gh (version 1.33) and having a permissions issue while migrating, the error message points to a generic docs link for GitHub > GitHub migrations. There is a separate link available for GitLab > GitHub migrations which has specific scopes for the GitHub personal access token, that deviate from the one for GitHub > GitHub. The line of code where the link is:
gh-gei/src/Octoshift/InsufficientPermissionsMessageGenerator.cs
Line 6 in b9b3fa1
What the error message looks like now:
The correct URL for GitLab is https://docs.github.com/en/enterprise-cloud@latest/migrations/using-github-enterprise-importer/migrate-from-gitlab/manage-access
Reproduction Steps
Create a personal access token that only has "repos" scope and try to run a GitLab to GitHub migration using
gh gl2gh.