2016-05-02 11:22:38 -04:00
|
|
|
- page_title "GitHub Import"
|
|
|
|
- header_title "Projects", root_path
|
|
|
|
|
|
|
|
%h3.page-title
|
|
|
|
= icon 'github', text: 'Import Projects from GitHub'
|
|
|
|
|
2016-06-27 07:42:22 -04:00
|
|
|
- if github_import_configured?
|
|
|
|
%p
|
|
|
|
To import a GitHub project, you first need to authorize GitLab to access
|
|
|
|
the list of your GitHub repositories:
|
|
|
|
|
|
|
|
= link_to 'List Your GitHub Repositories', status_import_github_path, class: 'btn btn-success'
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
%p
|
|
|
|
- if github_import_configured?
|
|
|
|
Alternatively,
|
|
|
|
- else
|
|
|
|
To import a GitHub project,
|
|
|
|
you can use a
|
|
|
|
= succeed '.' do
|
|
|
|
= link_to 'Personal Access Token', 'https://github.com/settings/tokens'
|
|
|
|
When you create your Personal Access Token,
|
2016-05-02 11:22:38 -04:00
|
|
|
you will need to select the <code>repo</code> scope, so we can display a
|
|
|
|
list of your public and private repositories which are available for import.
|
|
|
|
|
|
|
|
= form_tag personal_access_token_import_github_path, method: :post, class: 'form-inline' do
|
|
|
|
.form-group
|
|
|
|
= text_field_tag :personal_access_token, '', class: 'form-control', placeholder: "Personal Access Token", size: 40
|
2016-06-27 07:42:22 -04:00
|
|
|
= submit_tag 'List Your GitHub Repositories', class: 'btn btn-success'
|
2016-05-02 11:22:38 -04:00
|
|
|
|
2016-06-27 07:42:22 -04:00
|
|
|
- unless github_import_configured?
|
2016-05-02 11:22:38 -04:00
|
|
|
%hr
|
2016-06-27 07:42:22 -04:00
|
|
|
%p
|
2016-05-02 11:22:38 -04:00
|
|
|
Note:
|
|
|
|
- if current_user.admin?
|
|
|
|
As an administrator you may like to configure
|
|
|
|
- else
|
|
|
|
Consider asking your GitLab administrator to configure
|
2016-05-16 18:06:26 -04:00
|
|
|
= link_to 'GitHub integration', help_page_path("integration/github")
|
2016-05-02 11:22:38 -04:00
|
|
|
which will allow login via GitHub and allow importing projects without
|
|
|
|
generating a Personal Access Token.
|