forked from github/developer.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsource_imports.rb
More file actions
123 lines (116 loc) · 4.55 KB
/
source_imports.rb
File metadata and controls
123 lines (116 loc) · 4.55 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
module GitHub
module Resources
module Responses
SOURCE_IMPORT ||= {
"vcs" => "subversion",
"use_lfs" => "undecided",
"vcs_url" => "http://svn.mycompany.com/svn/myproject",
"status" => "importing",
"status_text" => "Importing...",
"has_large_files" => false,
"large_files_size" => 0,
"large_files_count" => 0,
"authors_count" => 0,
"percent" => 42,
"commit_count" => 1042,
"url" => "https://api.github.com/repos/octocat/socm/import",
"html_url" => "https://import.github.com/octocat/socm/import",
"authors_url" => "https://api.github.com/repos/octocat/socm/import/authors",
"repository_url" => "https://api.github.com/repos/octocat/socm"
}
SOURCE_IMPORT_COMPLETE ||= {
"vcs" => "subversion",
"use_lfs" => "opt_in",
"vcs_url" => "http://svn.mycompany.com/svn/myproject",
"status" => "complete",
"status_text" => "Done",
"has_large_files" => true,
"large_files_size" => 132331036,
"large_files_count" => 1,
"authors_count" => 4,
"url" => "https://api.github.com/repos/octocat/socm/import",
"html_url" => "https://import.github.com/octocat/socm/import",
"authors_url" => "https://api.github.com/repos/octocat/socm/import/authors",
"repository_url" => "https://api.github.com/repos/octocat/socm"
}
SOURCE_IMPORT_UPDATE_AUTH ||= {
"vcs": "subversion",
"use_lfs": "undecided",
"vcs_url": "http://svn.mycompany.com/svn/myproject",
"status": "detecting",
"url" => "https://api.github.com/repos/octocat/socm/import",
"html_url" => "https://import.github.com/octocat/socm/import",
"authors_url" => "https://api.github.com/repos/octocat/socm/import/authors",
"repository_url" => "https://api.github.com/repos/octocat/socm"
}
SOURCE_IMPORT_UPDATE_PROJECT_CHOICE ||= {
"vcs" => "tfvc",
"use_lfs": "undecided",
"vcs_url" => "http://tfs.mycompany.com/tfs/myproject",
"tfvc_project": "project",
"status" => "importing",
"status_text" => "Importing...",
"has_large_files" => false,
"large_files_size" => 0,
"large_files_count" => 0,
"authors_count" => 0,
"percent" => 42,
"commit_count" => 1042,
"url" => "https://api.github.com/repos/octocat/socm/import",
"html_url" => "https://import.github.com/octocat/socm/import",
"authors_url" => "https://api.github.com/repos/octocat/socm/import/authors",
"repository_url" => "https://api.github.com/repos/octocat/socm"
}
SOURCE_IMPORT_AUTHOR ||= {
"id" => 2268557,
"remote_id" => "nobody@fc7da526-431c-80fe-3c8c-c148ff18d7ef",
"remote_name" => "nobody",
"name" => "Hubot",
"url" => "https://api.github.com/repos/octocat/socm/import/authors/2268557",
"import_url" => "https://api.github.com/repos/octocat/socm/import"
}
SOURCE_IMPORT_AUTHORS ||= [
SOURCE_IMPORT_AUTHOR,
{
"id" => 2268558,
"remote_id" => "svner@fc7da526-431c-80fe-3c8c-c148ff18d7ef",
"remote_name" => "svner",
"email" => "svner@fc7da526-431c-80fe-3c8c-c148ff18d7ef",
"name" => "svner",
"url" => "https://api.github.com/repos/octocat/socm/import/authors/2268558",
"import_url" => "https://api.github.com/repos/octocat/socm/import"
},
{
"id" => 2268559,
"url" => "https://api.github.com/repos/octocat/socm/import/authors/2268559",
"import_url" => "https://api.github.com/repos/octocat/socm/import"
}
]
SOURCE_IMPORT_LARGE_FILES ||= [
{
"ref_name": "refs/heads/master",
"path": "foo/bar/1",
"oid": "d3d9446802a44259755d38e6d163e820",
"size": 10485760
},
{
"ref_name": "refs/heads/master",
"path": "foo/bar/2",
"oid": "6512bd43d9caa6e02c990b0a82652dca",
"size": 11534336
},
{
"ref_name": "refs/heads/master",
"path": "foo/bar/3",
"oid": "c20ad4d76fe97759aa27a0c99bff6710",
"size": 12582912
}
]
end
end
end