• Douwe Maan's avatar
    Merge branch 'ericidema/gitlab-ce-import-with-github-personal-access-tokens' into 'master' · f7b05616
    Douwe Maan authored
    Allow importing from Github using Personal Access Tokens
    
    _Originally opened at !4005 by @ericidema._
    
    ------
    
    ## What does this MR do?
    
    * 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.
    
    ## Are there points in the code the reviewer needs to double check?
    
    Twin Omnibus MR: https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/774
    
    ## What are the relevant issue numbers?
    
    Closes #13970.
    
    ## Screenshots
    
    ### GitHub import is configured
    
    ![github_import_configured](/uploads/151e4f0edf3f87bfa03c2d97dda8b3d8/github_import_configured.png)
    
    -----
    
    ### GitHub import is not configured
    
    ![github_import_not_configured](/uploads/cb129f7e2ffe66cceb28ccd9a...
    f7b05616
To find the state of this project's repository at the time of any of these versions, check out the tags..
CHANGELOG 161 KB