Skip to content

Allow Github import with Personal Access Token

Issue https://gitlab.com/gitlab-org/gitlab-ce/issues/13970

  • Made changes to Gitlab::GithubImport::Client so that it can be used with Github Personal Access Tokens without the need for OAuth.
  • Added UI to collect Personal Access Token from user.
  • Detect if the user has logged in with GitHub and use OAuth to skip the Personal Access Token form.

Screenshots

GitHub integration has been configured, but the current user is not logged in with GitHub:

Screen_Shot_2016-05-12_at_2.04.16_PM

GitHub integration has not been configured:

Screen_Shot_2016-05-12_at_2.06.18_PM

Error message when a Personal Access Token is invalid (or, if GitHub OAuth fails):

Screen_Shot_2016-05-12_at_2.06.59_PM

Merge request reports