1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
- page_title "GitHub Import"
- header_title "Projects", root_path
.row.prepend-top-default.append-bottom-default
.col-lg-3
%h4.prepend-top-0
= icon 'github', text: 'Import Projects from GitHub'
%p
Welcome to the GitHub importer!
%p.prepend-top-20
From here you will able to import all your GitHub repositories including
their issues, pull requests, milestones and labels.
%p.append-bottom-0
Read more on
= succeed '.' do
= link_to 'how the GitHub importing works', help_page_path('workflow/importing/import_projects_from_github')
.col-lg-9
.panel.panel-default
.panel-heading
%h4.panel-title
Authorize access to your GitHub repositories
.panel-body
- if github_import_configured?
%p
= link_to 'GitHub integration', help_page_path('integration/github')
is enabled. 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
GitHub integration is not enabled. To import a GitHub repository,
you can use a
= succeed '.' do
= link_to 'personal access token', 'https://github.com/settings/tokens', target: "_blank"
When you create your personal access token,
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
= submit_tag 'List your GitHub repositories', class: 'btn btn-success'
- unless github_import_configured?
.panel-footer
%p.settings-message.text-center
= icon 'exclamation-circle'
- if current_user.admin?
As an administrator, you may like to configure
- else
Consider asking your GitLab administrator to configure
= link_to 'GitHub integration', help_page_path("integration/github")
which will allow login via GitHub and allow importing projects without
generating a personal access token.
|