Skip to content

gh-gl2gh link in case of insufficient permissions needs to be changed #1611

Description

@FokkoVeegens

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:

Image

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.

Activity

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions