gitlab-akerl 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.prospectus +11 -0
  4. data/.travis.yml +8 -0
  5. data/CHANGELOG.md +229 -0
  6. data/CONTRIBUTING.md +195 -0
  7. data/Gemfile +4 -0
  8. data/LICENSE.txt +24 -0
  9. data/README.md +192 -0
  10. data/Rakefile +9 -0
  11. data/bin/console +10 -0
  12. data/bin/setup +6 -0
  13. data/exe/gitlab +7 -0
  14. data/gitlab-akerl.gemspec +31 -0
  15. data/lib/gitlab.rb +45 -0
  16. data/lib/gitlab/api.rb +19 -0
  17. data/lib/gitlab/cli.rb +89 -0
  18. data/lib/gitlab/cli_helpers.rb +241 -0
  19. data/lib/gitlab/client.rb +48 -0
  20. data/lib/gitlab/client/branches.rb +91 -0
  21. data/lib/gitlab/client/build_triggers.rb +51 -0
  22. data/lib/gitlab/client/build_variables.rb +66 -0
  23. data/lib/gitlab/client/builds.rb +106 -0
  24. data/lib/gitlab/client/commits.rb +121 -0
  25. data/lib/gitlab/client/groups.rb +144 -0
  26. data/lib/gitlab/client/issues.rb +113 -0
  27. data/lib/gitlab/client/labels.rb +57 -0
  28. data/lib/gitlab/client/merge_requests.rb +168 -0
  29. data/lib/gitlab/client/milestones.rb +78 -0
  30. data/lib/gitlab/client/namespaces.rb +20 -0
  31. data/lib/gitlab/client/notes.rb +161 -0
  32. data/lib/gitlab/client/pipelines.rb +68 -0
  33. data/lib/gitlab/client/projects.rb +471 -0
  34. data/lib/gitlab/client/repositories.rb +78 -0
  35. data/lib/gitlab/client/repository_files.rb +88 -0
  36. data/lib/gitlab/client/runners.rb +115 -0
  37. data/lib/gitlab/client/services.rb +50 -0
  38. data/lib/gitlab/client/snippets.rb +91 -0
  39. data/lib/gitlab/client/system_hooks.rb +59 -0
  40. data/lib/gitlab/client/tags.rb +96 -0
  41. data/lib/gitlab/client/users.rb +250 -0
  42. data/lib/gitlab/configuration.rb +55 -0
  43. data/lib/gitlab/error.rb +85 -0
  44. data/lib/gitlab/file_response.rb +46 -0
  45. data/lib/gitlab/help.rb +95 -0
  46. data/lib/gitlab/objectified_hash.rb +34 -0
  47. data/lib/gitlab/page_links.rb +33 -0
  48. data/lib/gitlab/paginated_response.rb +97 -0
  49. data/lib/gitlab/request.rb +117 -0
  50. data/lib/gitlab/shell.rb +84 -0
  51. data/lib/gitlab/shell_history.rb +59 -0
  52. data/lib/gitlab/version.rb +3 -0
  53. data/spec/fixtures/branch.json +1 -0
  54. data/spec/fixtures/branch_delete.json +3 -0
  55. data/spec/fixtures/branches.json +1 -0
  56. data/spec/fixtures/build.json +38 -0
  57. data/spec/fixtures/build_artifacts.json +0 -0
  58. data/spec/fixtures/build_cancel.json +24 -0
  59. data/spec/fixtures/build_erase.json +24 -0
  60. data/spec/fixtures/build_retry.json +24 -0
  61. data/spec/fixtures/builds.json +78 -0
  62. data/spec/fixtures/builds_commits.json +64 -0
  63. data/spec/fixtures/compare_merge_request_diff.json +31 -0
  64. data/spec/fixtures/error_already_exists.json +1 -0
  65. data/spec/fixtures/error_project_not_found.json +1 -0
  66. data/spec/fixtures/get_repository_file.json +1 -0
  67. data/spec/fixtures/git_hook.json +1 -0
  68. data/spec/fixtures/group.json +60 -0
  69. data/spec/fixtures/group_create.json +1 -0
  70. data/spec/fixtures/group_create_with_description.json +1 -0
  71. data/spec/fixtures/group_delete.json +1 -0
  72. data/spec/fixtures/group_member.json +1 -0
  73. data/spec/fixtures/group_member_delete.json +1 -0
  74. data/spec/fixtures/group_member_edit.json +1 -0
  75. data/spec/fixtures/group_members.json +1 -0
  76. data/spec/fixtures/group_projects.json +44 -0
  77. data/spec/fixtures/group_search.json +2 -0
  78. data/spec/fixtures/groups.json +2 -0
  79. data/spec/fixtures/issue.json +1 -0
  80. data/spec/fixtures/issues.json +1 -0
  81. data/spec/fixtures/key.json +1 -0
  82. data/spec/fixtures/keys.json +1 -0
  83. data/spec/fixtures/label.json +1 -0
  84. data/spec/fixtures/labels.json +1 -0
  85. data/spec/fixtures/merge_request.json +1 -0
  86. data/spec/fixtures/merge_request_changes.json +1 -0
  87. data/spec/fixtures/merge_request_comment.json +1 -0
  88. data/spec/fixtures/merge_request_comments.json +1 -0
  89. data/spec/fixtures/merge_request_commits.json +1 -0
  90. data/spec/fixtures/merge_requests.json +1 -0
  91. data/spec/fixtures/milestone.json +1 -0
  92. data/spec/fixtures/milestone_issues.json +1 -0
  93. data/spec/fixtures/milestones.json +1 -0
  94. data/spec/fixtures/namespaces.json +1 -0
  95. data/spec/fixtures/note.json +1 -0
  96. data/spec/fixtures/notes.json +1 -0
  97. data/spec/fixtures/pipeline.json +23 -0
  98. data/spec/fixtures/pipeline_cancel.json +23 -0
  99. data/spec/fixtures/pipeline_create.json +23 -0
  100. data/spec/fixtures/pipeline_retry.json +23 -0
  101. data/spec/fixtures/pipelines.json +48 -0
  102. data/spec/fixtures/project.json +1 -0
  103. data/spec/fixtures/project_commit.json +13 -0
  104. data/spec/fixtures/project_commit_comment.json +1 -0
  105. data/spec/fixtures/project_commit_comments.json +1 -0
  106. data/spec/fixtures/project_commit_diff.json +10 -0
  107. data/spec/fixtures/project_commit_status.json +42 -0
  108. data/spec/fixtures/project_commits.json +1 -0
  109. data/spec/fixtures/project_edit.json +21 -0
  110. data/spec/fixtures/project_events.json +1 -0
  111. data/spec/fixtures/project_for_user.json +1 -0
  112. data/spec/fixtures/project_fork.json +50 -0
  113. data/spec/fixtures/project_fork_link.json +1 -0
  114. data/spec/fixtures/project_forked_for_user.json +50 -0
  115. data/spec/fixtures/project_hook.json +1 -0
  116. data/spec/fixtures/project_hooks.json +1 -0
  117. data/spec/fixtures/project_issues.json +1 -0
  118. data/spec/fixtures/project_key.json +6 -0
  119. data/spec/fixtures/project_keys.json +6 -0
  120. data/spec/fixtures/project_runner_enable.json +7 -0
  121. data/spec/fixtures/project_runners.json +16 -0
  122. data/spec/fixtures/project_search.json +1 -0
  123. data/spec/fixtures/project_star.json +44 -0
  124. data/spec/fixtures/project_tag_annotated.json +1 -0
  125. data/spec/fixtures/project_tag_lightweight.json +1 -0
  126. data/spec/fixtures/project_tags.json +1 -0
  127. data/spec/fixtures/project_unstar.json +44 -0
  128. data/spec/fixtures/project_update_commit_status.json +20 -0
  129. data/spec/fixtures/projects.json +1 -0
  130. data/spec/fixtures/raw_file.json +2 -0
  131. data/spec/fixtures/release_create.json +1 -0
  132. data/spec/fixtures/release_update.json +1 -0
  133. data/spec/fixtures/repository_file.json +1 -0
  134. data/spec/fixtures/runner.json +26 -0
  135. data/spec/fixtures/runner_delete.json +7 -0
  136. data/spec/fixtures/runner_edit.json +26 -0
  137. data/spec/fixtures/runners.json +16 -0
  138. data/spec/fixtures/runners_all.json +30 -0
  139. data/spec/fixtures/service.json +1 -0
  140. data/spec/fixtures/session.json +1 -0
  141. data/spec/fixtures/shell_history.json +2 -0
  142. data/spec/fixtures/snippet.json +1 -0
  143. data/spec/fixtures/snippet_content.json +3 -0
  144. data/spec/fixtures/snippets.json +1 -0
  145. data/spec/fixtures/system_hook.json +1 -0
  146. data/spec/fixtures/system_hooks.json +1 -0
  147. data/spec/fixtures/tag.json +1 -0
  148. data/spec/fixtures/tag_create.json +1 -0
  149. data/spec/fixtures/tag_create_with_description.json +1 -0
  150. data/spec/fixtures/tag_delete.json +1 -0
  151. data/spec/fixtures/tags.json +1 -0
  152. data/spec/fixtures/team_member.json +1 -0
  153. data/spec/fixtures/team_members.json +1 -0
  154. data/spec/fixtures/tree.json +1 -0
  155. data/spec/fixtures/trigger.json +7 -0
  156. data/spec/fixtures/triggers.json +16 -0
  157. data/spec/fixtures/user.json +1 -0
  158. data/spec/fixtures/user_block_unblock.json +1 -0
  159. data/spec/fixtures/user_email.json +1 -0
  160. data/spec/fixtures/user_emails.json +1 -0
  161. data/spec/fixtures/user_search.json +1 -0
  162. data/spec/fixtures/users.json +1 -0
  163. data/spec/fixtures/variable.json +4 -0
  164. data/spec/fixtures/variables.json +10 -0
  165. data/spec/gitlab/cli_helpers_spec.rb +57 -0
  166. data/spec/gitlab/cli_spec.rb +110 -0
  167. data/spec/gitlab/client/branches_spec.rb +99 -0
  168. data/spec/gitlab/client/build_triggers_spec.rb +67 -0
  169. data/spec/gitlab/client/build_variables_spec.rb +86 -0
  170. data/spec/gitlab/client/builds_spec.rb +148 -0
  171. data/spec/gitlab/client/client_spec.rb +11 -0
  172. data/spec/gitlab/client/commits_spec.rb +137 -0
  173. data/spec/gitlab/client/groups_spec.rb +197 -0
  174. data/spec/gitlab/client/issues_spec.rb +138 -0
  175. data/spec/gitlab/client/labels_spec.rb +68 -0
  176. data/spec/gitlab/client/merge_requests_spec.rb +177 -0
  177. data/spec/gitlab/client/milestones_spec.rb +82 -0
  178. data/spec/gitlab/client/namespaces_spec.rb +22 -0
  179. data/spec/gitlab/client/notes_spec.rb +205 -0
  180. data/spec/gitlab/client/pipelines_spec.rb +95 -0
  181. data/spec/gitlab/client/projects_spec.rb +603 -0
  182. data/spec/gitlab/client/repositories_spec.rb +109 -0
  183. data/spec/gitlab/client/repository_files_spec.rb +62 -0
  184. data/spec/gitlab/client/runners_spec.rb +185 -0
  185. data/spec/gitlab/client/services_spec.rb +55 -0
  186. data/spec/gitlab/client/snippets_spec.rb +100 -0
  187. data/spec/gitlab/client/system_hooks_spec.rb +69 -0
  188. data/spec/gitlab/client/tags_spec.rb +109 -0
  189. data/spec/gitlab/client/users_spec.rb +418 -0
  190. data/spec/gitlab/error_spec.rb +45 -0
  191. data/spec/gitlab/file_response_spec.rb +33 -0
  192. data/spec/gitlab/help_spec.rb +46 -0
  193. data/spec/gitlab/objectified_hash_spec.rb +48 -0
  194. data/spec/gitlab/page_links_spec.rb +16 -0
  195. data/spec/gitlab/paginated_response_spec.rb +60 -0
  196. data/spec/gitlab/request_spec.rb +73 -0
  197. data/spec/gitlab/shell_history_spec.rb +53 -0
  198. data/spec/gitlab/shell_spec.rb +80 -0
  199. data/spec/gitlab_spec.rb +97 -0
  200. data/spec/spec_helper.rb +74 -0
  201. metadata +476 -0
@@ -0,0 +1,59 @@
1
+ class Gitlab::Shell
2
+ class History
3
+ DEFAULT_HISTFILESIZE = 200
4
+ DEFAULT_FILE_PATH = File.join(Dir.home, '.gitlab_shell_history')
5
+
6
+ def initialize(options={})
7
+ @file_path = options[:file_path] || DEFAULT_FILE_PATH
8
+ Readline::HISTORY.clear
9
+ end
10
+
11
+ def load
12
+ read_from_file { |line| Readline::HISTORY << line.chomp }
13
+ end
14
+
15
+ def save
16
+ lines.each { |line| history_file.puts line if history_file }
17
+ end
18
+
19
+ def push(line)
20
+ Readline::HISTORY << line
21
+ end
22
+ alias_method :<<, :push
23
+
24
+ def lines
25
+ Readline::HISTORY.to_a.last(max_lines)
26
+ end
27
+
28
+ private
29
+
30
+ def history_file
31
+ if defined?(@history_file)
32
+ @history_file
33
+ else
34
+ @history_file = File.open(history_file_path, 'w', 0600).tap do |file|
35
+ file.sync = true
36
+ end
37
+ end
38
+ rescue Errno::EACCES
39
+ warn 'History not saved; unable to open your history file for writing.'
40
+ @history_file = false
41
+ end
42
+
43
+ def history_file_path
44
+ File.expand_path(@file_path)
45
+ end
46
+
47
+ def read_from_file
48
+ path = history_file_path
49
+
50
+ File.foreach(path) { |line| yield(line) } if File.exist?(path)
51
+ rescue => error
52
+ warn "History file not loaded: #{error.message}"
53
+ end
54
+
55
+ def max_lines
56
+ (ENV['GITLAB_HISTFILESIZE'] || DEFAULT_HISTFILESIZE).to_i
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,3 @@
1
+ module Gitlab
2
+ VERSION = "4.0.0"
3
+ end
@@ -0,0 +1 @@
1
+ {"name":"api","commit":{"id":"f7dd067490fe57505f7226c3b54d3127d2f7fd46","parents":[{"id":"949b1df930bedace1dbd755aaa4a82e8c451a616"}],"tree":"f8c4b21c036339f92fcc5482aa28a41250553b27","message":"API: expose issues project id","author":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"committer":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"authored_date":"2012-07-25T04:22:21-07:00","committed_date":"2012-07-25T04:22:21-07:00"},"protected": true}
@@ -0,0 +1,3 @@
1
+ {
2
+ "branch_name": "api"
3
+ }
@@ -0,0 +1 @@
1
+ [{"name":"api","commit":{"id":"f7dd067490fe57505f7226c3b54d3127d2f7fd46","parents":[{"id":"949b1df930bedace1dbd755aaa4a82e8c451a616"}],"tree":"f8c4b21c036339f92fcc5482aa28a41250553b27","message":"API: expose issues project id","author":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"committer":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"authored_date":"2012-07-25T04:22:21-07:00","committed_date":"2012-07-25T04:22:21-07:00"}},{"name":"dashboard-feed","commit":{"id":"f8f6ff065eccc6ede4d35ed87a09bb962b84ca25","parents":[{"id":"2cf8010792c3075824ee27d0f037aeb178cbbf7e"}],"tree":"e17f2157143d550891d4669c10b7446e4739bc6d","message":"add projects atom feed","author":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"committer":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"authored_date":"2012-05-31T23:42:02-07:00","committed_date":"2012-05-31T23:42:02-07:00"}},{"name":"master","commit":{"id":"2cf8010792c3075824ee27d0f037aeb178cbbf7e","parents":[{"id":"af226ae9c9af406c8a0e0bbdf364563495c2f432"},{"id":"e851cb07762aa464aae10e8b4b28de87c1a6f925"}],"tree":"6c6845838039f01723d91f395a1d2fa1dcc82522","message":"Merge pull request #868 from SaitoWu/bugfix/encoding\n\nBugfix/encoding","author":{"name":"Dmitriy Zaporozhets","email":"dmitriy.zaporozhets@gmail.com"},"committer":{"name":"Dmitriy Zaporozhets","email":"dmitriy.zaporozhets@gmail.com"},"authored_date":"2012-05-30T00:24:43-07:00","committed_date":"2012-05-30T00:24:43-07:00"}},{"name":"preview_notes","commit":{"id":"3749e0d99ac6bfbc65889b1b7a5310e14e7fe89a","parents":[{"id":"2483181f2c3d4ea7d2c68147b19bc07fc3937b0c"}],"tree":"f8c56161b0d6561568f088df9961362eb1ece88b","message":"pass project_id to notes preview path","author":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"committer":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"authored_date":"2012-08-09T23:46:27-07:00","committed_date":"2012-08-09T23:46:27-07:00"}},{"name":"refactoring","commit":{"id":"7c7761099cae83f59fe5780340e100be890847b2","parents":[{"id":"058d80b3363dd4fc4417ca4f60f76119188a2470"}],"tree":"d7d4a94c700dc0e84ee943019213d2358a49c413","message":"fix deprecation warnings","author":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"committer":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"authored_date":"2012-05-29T07:16:28-07:00","committed_date":"2012-05-29T07:16:28-07:00"}}]
@@ -0,0 +1,38 @@
1
+ {
2
+ "commit": {
3
+ "author_email": "admin@example.com",
4
+ "author_name": "Administrator",
5
+ "created_at": "2015-12-24T16:51:14.000+01:00",
6
+ "id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
7
+ "message": "Test the CI integration.",
8
+ "short_id": "0ff3ae19",
9
+ "title": "Test the CI integration."
10
+ },
11
+ "coverage": null,
12
+ "created_at": "2015-12-24T15:51:21.880Z",
13
+ "download_url": null,
14
+ "finished_at": "2015-12-24T17:54:31.198Z",
15
+ "id": 8,
16
+ "name": "rubocop",
17
+ "ref": "master",
18
+ "runner": null,
19
+ "stage": "test",
20
+ "started_at": "2015-12-24T17:54:30.733Z",
21
+ "status": "failed",
22
+ "tag": false,
23
+ "user": {
24
+ "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
25
+ "bio": null,
26
+ "created_at": "2015-12-21T13:14:24.077Z",
27
+ "id": 1,
28
+ "is_admin": true,
29
+ "linkedin": "",
30
+ "name": "John Smith",
31
+ "skype": "",
32
+ "state": "active",
33
+ "twitter": "",
34
+ "username": "root",
35
+ "web_url": "http://gitlab.dev/u/root",
36
+ "website_url": ""
37
+ }
38
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "commit": {
3
+ "author_email": "admin@example.com",
4
+ "author_name": "John Smith",
5
+ "created_at": "2015-12-24T16:51:14.000+01:00",
6
+ "id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
7
+ "message": "Test the CI integration.",
8
+ "short_id": "0ff3ae19",
9
+ "title": "Test the CI integration."
10
+ },
11
+ "coverage": null,
12
+ "created_at": "2016-01-11T10:13:33.506Z",
13
+ "download_url": null,
14
+ "finished_at": "2016-01-11T10:14:09.526Z",
15
+ "id": 69,
16
+ "name": "rubocop",
17
+ "ref": "master",
18
+ "runner": null,
19
+ "stage": "test",
20
+ "started_at": null,
21
+ "status": "canceled",
22
+ "tag": false,
23
+ "user": null
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "commit": {
3
+ "author_email": "admin@example.com",
4
+ "author_name": "John Smith",
5
+ "created_at": "2015-12-24T16:51:14.000+01:00",
6
+ "id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
7
+ "message": "Test the CI integration.",
8
+ "short_id": "0ff3ae19",
9
+ "title": "Test the CI integration."
10
+ },
11
+ "coverage": null,
12
+ "download_url": null,
13
+ "id": 69,
14
+ "name": "rubocop",
15
+ "ref": "master",
16
+ "runner": null,
17
+ "stage": "test",
18
+ "created_at": "2016-01-11T10:13:33.506Z",
19
+ "started_at": "2016-01-11T10:13:33.506Z",
20
+ "finished_at": "2016-01-11T10:15:10.506Z",
21
+ "status": "failed",
22
+ "tag": false,
23
+ "user": null
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "commit": {
3
+ "author_email": "admin@example.com",
4
+ "author_name": "John Smith",
5
+ "created_at": "2015-12-24T16:51:14.000+01:00",
6
+ "id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
7
+ "message": "Test the CI integration.",
8
+ "short_id": "0ff3ae19",
9
+ "title": "Test the CI integration."
10
+ },
11
+ "coverage": null,
12
+ "created_at": "2016-01-11T10:13:33.506Z",
13
+ "download_url": null,
14
+ "finished_at": null,
15
+ "id": 69,
16
+ "name": "rubocop",
17
+ "ref": "master",
18
+ "runner": null,
19
+ "stage": "test",
20
+ "started_at": null,
21
+ "status": "pending",
22
+ "tag": false,
23
+ "user": null
24
+ }
@@ -0,0 +1,78 @@
1
+ [
2
+ {
3
+ "commit": {
4
+ "author_email": "admin@example.com",
5
+ "author_name": "Administrator",
6
+ "created_at": "2015-12-24T16:51:14.000+01:00",
7
+ "id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
8
+ "message": "Test the CI integration.",
9
+ "short_id": "0ff3ae19",
10
+ "title": "Test the CI integration."
11
+ },
12
+ "coverage": null,
13
+ "created_at": "2015-12-24T15:51:21.802Z",
14
+ "download_url": null,
15
+ "finished_at": "2015-12-24T17:54:27.895Z",
16
+ "id": 7,
17
+ "name": "teaspoon",
18
+ "ref": "master",
19
+ "runner": null,
20
+ "stage": "test",
21
+ "started_at": "2015-12-24T17:54:27.722Z",
22
+ "status": "failed",
23
+ "tag": false,
24
+ "user": {
25
+ "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
26
+ "bio": null,
27
+ "created_at": "2015-12-21T13:14:24.077Z",
28
+ "id": 1,
29
+ "is_admin": true,
30
+ "linkedin": "",
31
+ "name": "Administrator",
32
+ "skype": "",
33
+ "state": "active",
34
+ "twitter": "",
35
+ "username": "root",
36
+ "web_url": "http://gitlab.dev/u/root",
37
+ "website_url": ""
38
+ }
39
+ },
40
+ {
41
+ "commit": {
42
+ "author_email": "admin@example.com",
43
+ "author_name": "Administrator",
44
+ "created_at": "2015-12-24T16:51:14.000+01:00",
45
+ "id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
46
+ "message": "Test the CI integration.",
47
+ "short_id": "0ff3ae19",
48
+ "title": "Test the CI integration."
49
+ },
50
+ "coverage": null,
51
+ "created_at": "2015-12-24T15:51:21.727Z",
52
+ "download_url": null,
53
+ "finished_at": "2015-12-24T17:54:24.921Z",
54
+ "id": 6,
55
+ "name": "spinach:other",
56
+ "ref": "master",
57
+ "runner": null,
58
+ "stage": "test",
59
+ "started_at": "2015-12-24T17:54:24.729Z",
60
+ "status": "failed",
61
+ "tag": false,
62
+ "user": {
63
+ "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
64
+ "bio": null,
65
+ "created_at": "2015-12-21T13:14:24.077Z",
66
+ "id": 1,
67
+ "is_admin": true,
68
+ "linkedin": "",
69
+ "name": "Administrator",
70
+ "skype": "",
71
+ "state": "active",
72
+ "twitter": "",
73
+ "username": "root",
74
+ "web_url": "http://gitlab.dev/u/root",
75
+ "website_url": ""
76
+ }
77
+ }
78
+ ]
@@ -0,0 +1,64 @@
1
+ [
2
+ {
3
+ "commit": {
4
+ "author_email": "admin@example.com",
5
+ "author_name": "Administrator",
6
+ "created_at": "2015-12-24T16:51:14.000+01:00",
7
+ "id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
8
+ "message": "Test the CI integration.",
9
+ "short_id": "0ff3ae19",
10
+ "title": "Test the CI integration."
11
+ },
12
+ "coverage": null,
13
+ "created_at": "2016-01-11T10:13:33.506Z",
14
+ "download_url": null,
15
+ "finished_at": "2016-01-11T10:14:09.526Z",
16
+ "id": 69,
17
+ "name": "rubocop",
18
+ "ref": "master",
19
+ "runner": null,
20
+ "stage": "test",
21
+ "started_at": null,
22
+ "status": "canceled",
23
+ "tag": false,
24
+ "user": null
25
+ },
26
+ {
27
+ "commit": {
28
+ "author_email": "admin@example.com",
29
+ "author_name": "Administrator",
30
+ "created_at": "2015-12-24T16:51:14.000+01:00",
31
+ "id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
32
+ "message": "Test the CI integration.",
33
+ "short_id": "0ff3ae19",
34
+ "title": "Test the CI integration."
35
+ },
36
+ "coverage": null,
37
+ "created_at": "2015-12-24T15:51:21.957Z",
38
+ "download_url": null,
39
+ "finished_at": "2015-12-24T17:54:33.913Z",
40
+ "id": 9,
41
+ "name": "brakeman",
42
+ "ref": "master",
43
+ "runner": null,
44
+ "stage": "test",
45
+ "started_at": "2015-12-24T17:54:33.727Z",
46
+ "status": "failed",
47
+ "tag": false,
48
+ "user": {
49
+ "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
50
+ "bio": null,
51
+ "created_at": "2015-12-21T13:14:24.077Z",
52
+ "id": 1,
53
+ "is_admin": true,
54
+ "linkedin": "",
55
+ "name": "Administrator",
56
+ "skype": "",
57
+ "state": "active",
58
+ "twitter": "",
59
+ "username": "root",
60
+ "web_url": "http://gitlab.dev/u/root",
61
+ "website_url": ""
62
+ }
63
+ }
64
+ ]
@@ -0,0 +1,31 @@
1
+
2
+ {
3
+ "commit": {
4
+ "id": "12d65c8dd2b2676fa3ac47d955accc085a37a9c1",
5
+ "short_id": "12d65c8dd2b",
6
+ "title": "JS fix",
7
+ "author_name": "Dmitriy Zaporozhets",
8
+ "author_email": "dmitriy.zaporozhets@gmail.com",
9
+ "created_at": "2014-02-27T10:27:00+02:00"
10
+ },
11
+ "commits": [{
12
+ "id": "12d65c8dd2b2676fa3ac47d955accc085a37a9c1",
13
+ "short_id": "12d65c8dd2b",
14
+ "title": "JS fix",
15
+ "author_name": "Dmitriy Zaporozhets",
16
+ "author_email": "dmitriy.zaporozhets@gmail.com",
17
+ "created_at": "2014-02-27T10:27:00+02:00"
18
+ }],
19
+ "diffs": [{
20
+ "old_path": "files/js/application.js",
21
+ "new_path": "files/js/application.js",
22
+ "a_mode": null,
23
+ "b_mode": "100644",
24
+ "diff": "--- a/files/js/application.js\n+++ b/files/js/application.js\n@@ -24,8 +24,10 @@\n //= require g.raphael-min\n //= require g.bar-min\n //= require branch-graph\n-//= require highlightjs.min\n-//= require ace/ace\n //= require_tree .\n //= require d3\n //= require underscore\n+\n+function fix() { \n+ alert(\"Fixed\")\n+}",
25
+ "new_file": false,
26
+ "renamed_file": false,
27
+ "deleted_file": false
28
+ }],
29
+ "compare_timeout": false,
30
+ "compare_same_ref": false
31
+ }
@@ -0,0 +1 @@
1
+ {"message": "409 Already exists"}
@@ -0,0 +1 @@
1
+ {"message": "404 Project Not Found"}
@@ -0,0 +1 @@
1
+ {"file_name":"README.md", "file_path":"README.md", "size":"19", "encoding":"base64", "content":"VGhpcyBpcyBhICpSRUFETUUqIQ==\n", "ref":"master", "blob_id":"0eba9dff767611060181e0423a1de2941d27efc8", "commit_id":"eb38397cb6ae669219e6bc18ad19981fff18ea29"}
@@ -0,0 +1 @@
1
+ {"id": 1, "project_id": 1, "created_at": "2016-05-25T20:27:15.545Z", "commit_message_regex": "\\b[A-Z]{3}-[0-9]+\\b", "deny_delete_tag": false}
@@ -0,0 +1,60 @@
1
+ {"id": 10, "name": "GitLab-Group", "path": "gitlab-group", "owner_id": 6, "projects": [
2
+ {
3
+ "id": 9,
4
+ "name": "mojito",
5
+ "description": null,
6
+ "default_branch": "master",
7
+ "owner": {
8
+ "id": 6,
9
+ "username": "jose",
10
+ "email": "jose@abc.com",
11
+ "name": "Jose Jose",
12
+ "blocked": false,
13
+ "created_at": "2013-02-06T06:54:06Z"
14
+ },
15
+ "path": "mojito",
16
+ "path_with_namespace": "gitlab-group/mojito",
17
+ "issues_enabled": true,
18
+ "merge_requests_enabled": true,
19
+ "wall_enabled": true,
20
+ "wiki_enabled": true,
21
+ "created_at": "2013-02-06T16:59:15Z",
22
+ "namespace": {
23
+ "created_at": "2013-02-06T16:58:22Z",
24
+ "id": 10,
25
+ "name": "GitLab-Group",
26
+ "owner_id": 6,
27
+ "path": "gitlab-group",
28
+ "updated_at": "2013-02-06T16:58:22Z"
29
+ }
30
+ },
31
+ {
32
+ "id": 10,
33
+ "name": "gitlabhq",
34
+ "description": null,
35
+ "default_branch": null,
36
+ "owner": {
37
+ "id": 6,
38
+ "username": "randx",
39
+ "email": "randx@github.com",
40
+ "name": "Dmitry Z",
41
+ "blocked": false,
42
+ "created_at": "2013-02-06T06:54:06Z"
43
+ },
44
+ "path": "gitlabhq",
45
+ "path_with_namespace": "gitlab-group/gitlabhq",
46
+ "issues_enabled": true,
47
+ "merge_requests_enabled": true,
48
+ "wall_enabled": true,
49
+ "wiki_enabled": true,
50
+ "created_at": "2013-02-06T17:02:31Z",
51
+ "namespace": {
52
+ "created_at": "2013-02-06T16:58:22Z",
53
+ "id": 10,
54
+ "name": "GitLab-Group",
55
+ "owner_id": 6,
56
+ "path": "gitlab-group",
57
+ "updated_at": "2013-02-06T16:58:22Z"
58
+ }
59
+ }
60
+ ]}
@@ -0,0 +1 @@
1
+ {"id":3,"name":"Gitlab-Group","path":"gitlab-group","owner_id":1}