gitlab 4.3.0 → 4.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +6 -0
  3. data/.travis.yml +1 -1
  4. data/Dockerfile +8 -0
  5. data/README.md +64 -0
  6. data/docker-compose.yml +19 -0
  7. data/docker.env +2 -0
  8. data/gitlab.gemspec +4 -4
  9. data/lib/gitlab/client.rb +4 -0
  10. data/lib/gitlab/client/access_requests.rb +94 -0
  11. data/lib/gitlab/client/branches.rb +3 -3
  12. data/lib/gitlab/client/commits.rb +18 -0
  13. data/lib/gitlab/client/events.rb +58 -0
  14. data/lib/gitlab/client/group_milestones.rb +93 -0
  15. data/lib/gitlab/client/groups.rb +11 -11
  16. data/lib/gitlab/client/labels.rb +2 -2
  17. data/lib/gitlab/client/merge_requests.rb +129 -1
  18. data/lib/gitlab/client/notes.rb +21 -4
  19. data/lib/gitlab/client/projects.rb +37 -15
  20. data/lib/gitlab/client/runners.rb +11 -0
  21. data/lib/gitlab/client/sidekiq.rb +37 -0
  22. data/lib/gitlab/client/snippets.rb +3 -1
  23. data/lib/gitlab/client/tags.rb +5 -5
  24. data/lib/gitlab/version.rb +1 -1
  25. data/spec/fixtures/access_request.json +8 -0
  26. data/spec/fixtures/access_requests.json +18 -0
  27. data/spec/fixtures/approved_access_request.json +8 -0
  28. data/spec/fixtures/default_approved_access_request.json +8 -0
  29. data/spec/fixtures/group_milestone.json +1 -0
  30. data/spec/fixtures/group_milestone_issues.json +1 -0
  31. data/spec/fixtures/group_milestone_merge_requests.json +1 -0
  32. data/spec/fixtures/group_milestones.json +1 -0
  33. data/spec/fixtures/merge_request_discussion.json +39 -0
  34. data/spec/fixtures/merge_request_discussion_note.json +33 -0
  35. data/spec/fixtures/merge_request_discussions.json +41 -0
  36. data/spec/fixtures/project_commit_merge_requests.json +1 -0
  37. data/spec/fixtures/project_events.json +81 -1
  38. data/spec/fixtures/project_forks.json +50 -0
  39. data/spec/fixtures/runner_jobs.json +63 -0
  40. data/spec/fixtures/sidekiq_compound_metrics.json +36 -0
  41. data/spec/fixtures/sidekiq_job_stats.json +7 -0
  42. data/spec/fixtures/sidekiq_process_metrics.json +25 -0
  43. data/spec/fixtures/sidekiq_queue_metrics.json +8 -0
  44. data/spec/fixtures/user_contribution_events.json +101 -0
  45. data/spec/fixtures/user_events.json +40 -0
  46. data/spec/fixtures/user_projects.json +153 -0
  47. data/spec/gitlab/client/access_requests_spec.rb +141 -0
  48. data/spec/gitlab/client/branches_spec.rb +4 -2
  49. data/spec/gitlab/client/commits_spec.rb +22 -0
  50. data/spec/gitlab/client/events_spec.rb +48 -0
  51. data/spec/gitlab/client/group_milestones_spec.rb +98 -0
  52. data/spec/gitlab/client/merge_requests_spec.rb +127 -0
  53. data/spec/gitlab/client/notes_spec.rb +4 -4
  54. data/spec/gitlab/client/projects_spec.rb +37 -20
  55. data/spec/gitlab/client/runners_spec.rb +10 -0
  56. data/spec/gitlab/client/sidekiq_spec.rb +64 -0
  57. data/spec/gitlab/client/snippets_spec.rb +2 -2
  58. data/spec/gitlab/client/tags_spec.rb +44 -0
  59. data/spec/gitlab/shell_spec.rb +1 -1
  60. metadata +67 -7
@@ -30,7 +30,7 @@ class Gitlab::Client
30
30
  # @param [String] description Optional release notes for tag.
31
31
  # @return [Gitlab::ObjectifiedHash]
32
32
  def create_tag(project, tag_name, ref, message='', description=nil)
33
- post("/projects/#{url_encode project}/repository/tags", body: { tag_name: tag_name, ref: ref, message: message, description: description })
33
+ post("/projects/#{url_encode project}/repository/tags", body: { tag_name: tag_name, ref: ref, message: message, release_description: description })
34
34
  end
35
35
  alias_method :repo_create_tag, :create_tag
36
36
 
@@ -44,7 +44,7 @@ class Gitlab::Client
44
44
  # @param [String] tag The name of the tag.
45
45
  # @return [Gitlab::ObjectifiedHash]
46
46
  def tag(project, tag)
47
- get("/projects/#{url_encode project}/repository/tags/#{tag}")
47
+ get("/projects/#{url_encode project}/repository/tags/#{url_encode tag}")
48
48
  end
49
49
  alias_method :repo_tag, :tag
50
50
 
@@ -58,7 +58,7 @@ class Gitlab::Client
58
58
  # @param [String] tag The name of the tag to delete
59
59
  # @return [Gitlab::ObjectifiedHash]
60
60
  def delete_tag(project, tag)
61
- delete("/projects/#{url_encode project}/repository/tags/#{tag}")
61
+ delete("/projects/#{url_encode project}/repository/tags/#{url_encode tag}")
62
62
  end
63
63
  alias_method :repo_delete_tag, :delete_tag
64
64
 
@@ -73,7 +73,7 @@ class Gitlab::Client
73
73
  # @param [String] description Release notes with markdown support
74
74
  # @return [Gitlab::ObjectifiedHash]
75
75
  def create_release(project, tag, description)
76
- post("/projects/#{url_encode project}/repository/tags/#{tag}/release", body: { description: description })
76
+ post("/projects/#{url_encode project}/repository/tags/#{url_encode tag}/release", body: { description: description })
77
77
  end
78
78
  alias_method :repo_create_release, :create_release
79
79
 
@@ -88,7 +88,7 @@ class Gitlab::Client
88
88
  # @param [String] description Release notes with markdown support
89
89
  # @return [Gitlab::ObjectifiedHash]
90
90
  def update_release(project, tag, description)
91
- put("/projects/#{url_encode project}/repository/tags/#{tag}/release", body: { description: description })
91
+ put("/projects/#{url_encode project}/repository/tags/#{url_encode tag}/release", body: { description: description })
92
92
  end
93
93
  alias_method :repo_update_release, :update_release
94
94
 
@@ -1,3 +1,3 @@
1
1
  module Gitlab
2
- VERSION = '4.3.0'.freeze
2
+ VERSION = '4.4.0'.freeze
3
3
  end
@@ -0,0 +1,8 @@
1
+ {
2
+ "id": 1,
3
+ "username": "raymond_smith",
4
+ "name": "Raymond Smith",
5
+ "state": "active",
6
+ "created_at": "2012-10-22T14:13:35Z",
7
+ "requested_at": "2012-10-22T14:13:35Z"
8
+ }
@@ -0,0 +1,18 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "username": "raymond_smith",
5
+ "name": "Raymond Smith",
6
+ "state": "active",
7
+ "created_at": "2012-10-22T14:13:35Z",
8
+ "requested_at": "2012-10-22T14:13:35Z"
9
+ },
10
+ {
11
+ "id": 2,
12
+ "username": "john_doe",
13
+ "name": "John Doe",
14
+ "state": "active",
15
+ "created_at": "2012-10-22T14:13:35Z",
16
+ "requested_at": "2012-10-22T14:13:35Z"
17
+ }
18
+ ]
@@ -0,0 +1,8 @@
1
+ {
2
+ "id": 1,
3
+ "username": "raymond_smith",
4
+ "name": "Raymond Smith",
5
+ "state": "active",
6
+ "created_at": "2012-10-22T14:13:35Z",
7
+ "access_level": 20
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "id": 1,
3
+ "username": "raymond_smith",
4
+ "name": "Raymond Smith",
5
+ "state": "active",
6
+ "created_at": "2012-10-22T14:13:35Z",
7
+ "access_level": 30
8
+ }
@@ -0,0 +1 @@
1
+ {"id":1,"group_id":3,"title":"3.0","description":"","due_date":"2012-10-22","closed":false,"updated_at":"2012-09-17T10:15:31Z","created_at":"2012-09-17T10:15:31Z"}
@@ -0,0 +1 @@
1
+ [{"id":1,"project_id":3,"title":"Culpa eius recusandae suscipit autem distinctio dolorum.","description":null,"labels":[],"milestone":{"id": 1},"assignee":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-09-17T09:41:56Z"},"author":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-09-17T09:41:56Z"},"closed":false,"updated_at":"2012-09-17T09:42:20Z","created_at":"2012-09-17T09:42:20Z"},{"id":6,"project_id":3,"title":"Ut in dolorum omnis sed sit aliquam.","description":null,"labels":[],"milestone":{"id": 1},"assignee":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-09-17T09:41:56Z"},"author":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-09-17T09:41:56Z"},"closed":false,"updated_at":"2012-09-17T09:42:20Z","created_at":"2012-09-17T09:42:20Z"},{"id":12,"project_id":3,"title":"Veniam et tempore quidem eum reprehenderit cupiditate non aut velit eaque.","description":null,"labels":[],"milestone":{"id": 1},"assignee":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-09-17T09:41:56Z"},"author":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-09-17T09:41:56Z"},"closed":false,"updated_at":"2012-09-17T09:42:20Z","created_at":"2012-09-17T09:42:20Z"},{"id":21,"project_id":3,"title":"Vitae ea aliquam et quo eligendi sapiente voluptatum labore hic nihil culpa.","description":null,"labels":[],"milestone":{"id": 1},"assignee":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-09-17T09:41:56Z"},"author":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-09-17T09:41:56Z"},"closed":false,"updated_at":"2012-09-17T09:42:20Z","created_at":"2012-09-17T09:42:20Z"},{"id":26,"project_id":3,"title":"Quo enim est nihil atque placeat voluptas neque eos voluptas.","description":null,"labels":[],"milestone":{"id": 1},"assignee":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-09-17T09:41:56Z"},"author":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-09-17T09:41:56Z"},"closed":false,"updated_at":"2012-09-17T09:42:20Z","created_at":"2012-09-17T09:42:20Z"},{"id":32,"project_id":3,"title":"Deserunt tenetur impedit est beatae voluptas voluptas quaerat quisquam.","description":null,"labels":[],"milestone":{"id": 1},"assignee":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-09-17T09:41:56Z"},"author":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-09-17T09:41:56Z"},"closed":false,"updated_at":"2012-09-17T09:42:20Z","created_at":"2012-09-17T09:42:20Z"}]
@@ -0,0 +1 @@
1
+ [{"id":1,"iid":1,"project_id":1,"title":"lorem ipsum","description":"","state":"opened","created_at":"2017-03-24T12:23:53.918Z","updated_at":"2017-03-24T12:23:53.918Z","target_branch":"master","source_branch":"def","upvotes":0,"downvotes":0,"author":{"name":"John Doe","username":"jdoe","id":1,"state":"active","avatar_url":"","web_url":"https://gitlab.com/jdoen"},"assignee":null,"source_project_id":1,"target_project_id":1,"labels":[],"work_in_progress":false,"milestone":{"id":1,"iid":1,"project_id":1,"title":"Test","description":"","state":"active","created_at":"2017-03-24T12:23:00.560Z","updated_at":"2017-03-24T12:23:00.560Z","due_date":null,"start_date":null},"merge_when_pipeline_succeeds":false,"merge_status":"can_be_merged","sha":"aec123d1775790b2347fdd684b5ba613fdeb994b","merge_commit_sha":null,"user_notes_count":0,"approvals_before_merge":null,"should_remove_source_branch":null,"force_remove_source_branch":false,"squash":false,"web_url":"https://gitlab.com/jdoe/milestone_merge_requests_test/merge_requests/2"},{"id":2,"iid":2,"project_id":1,"title":"ipsum lorem","description":"","state":"opened","created_at":"2017-03-24T12:23:24.662Z","updated_at":"2017-03-24T12:23:33.522Z","target_branch":"master","source_branch":"test1","upvotes":0,"downvotes":0,"author":{"name":"Joren","username":"jdoe","id":1,"state":"active","":"","web_url":"https://gitlab.com/jdoe"},"assignee":null,"source_project_id":1,"target_project_id":1,"labels":[],"work_in_progress":false,"milestone":{"id":1,"iid":1,"project_id":1,"title":"Test","description":"","state":"active","created_at":"2017-03-24T12:23:00.560Z","updated_at":"2017-03-24T12:23:00.560Z","due_date":null,"start_date":null},"merge_when_pipeline_succeeds":false,"merge_status":"can_be_merged","sha":"3ee44c9b40deddae596f838b97523c6f010fd80d","merge_commit_sha":null,"user_notes_count":0,"approvals_before_merge":null,"should_remove_source_branch":null,"force_remove_source_branch":true,"squash":false,"web_url":"https://gitlab.com/jdoe/milestone_merge_requests_test/merge_requests/1"}]
@@ -0,0 +1 @@
1
+ [{"id":1,"group_id":3,"title":"3.0","description":"","due_date":"2012-10-22","closed":false,"updated_at":"2012-09-17T10:15:31Z","created_at":"2012-09-17T10:15:31Z"}]
@@ -0,0 +1,39 @@
1
+ {
2
+ "id": "7d66bf19bf835e6a4666130544ba1b5c343fc705",
3
+ "individual_note": false,
4
+ "notes": [
5
+ {
6
+ "id": 1758,
7
+ "type": "DiffNote",
8
+ "body": "test test",
9
+ "attachment": null,
10
+ "author": {
11
+ "id": 1,
12
+ "name": "Dominik Sander",
13
+ "username": "dsander",
14
+ "state": "active",
15
+ "avatar_url": "https://secure.gravatar.com/avatar/7f017343sf43896ddee04838bd3?s=80&d=identicon",
16
+ "web_url": "https://example.com/dsander"
17
+ },
18
+ "created_at": "2018-05-22T22:00:18.858+02:00",
19
+ "updated_at": "2018-05-22T22:00:18.858+02:00",
20
+ "system": false,
21
+ "noteable_id": 208,
22
+ "noteable_type": "MergeRequest",
23
+ "position": {
24
+ "base_sha": "fb60b1f9e3005a4ec8e039c4ec16b6d36f8e75c9",
25
+ "start_sha": "3c14868ce2ffbf3294ff8c0de828fd1a0e545aae",
26
+ "head_sha": "7d938cb8ac15788d71f4b67c035515a160ea76d8",
27
+ "old_path": "spec/omniauth/form_spec.rb",
28
+ "new_path": "spec/omniauth/form_spec.rb",
29
+ "position_type": "text",
30
+ "old_line": 5,
31
+ "new_line": null
32
+ },
33
+ "resolvable": true,
34
+ "resolved": false,
35
+ "resolved_by": null,
36
+ "noteable_iid": 13
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "id": 1775,
3
+ "type": "DiffNote",
4
+ "body": "much note",
5
+ "attachment": null,
6
+ "author": {
7
+ "id": 1,
8
+ "name": "Dominik Sander",
9
+ "username": "dsander",
10
+ "state": "active",
11
+ "avatar_url": "https://secure.gravatar.com/avatar/7f017343sf43896ddee04838bd3?s=80&d=identicon",
12
+ "web_url": "https://example.com/dsander"
13
+ },
14
+ "created_at": "2018-05-23T22:21:46.993+02:00",
15
+ "updated_at": "2018-05-23T22:21:46.993+02:00",
16
+ "system": false,
17
+ "noteable_id": 208,
18
+ "noteable_type": "MergeRequest",
19
+ "position": {
20
+ "base_sha": "fb60b1f9e3005a4ec8e039c4ec16b6d36f8e75c9",
21
+ "start_sha": "3c14868ce2ffbf3294ff8c0de828fd1a0e545aae",
22
+ "head_sha": "7d938cb8ac15788d71f4b67c035515a160ea76d8",
23
+ "old_path": "spec/omniauth/form_spec.rb",
24
+ "new_path": "spec/omniauth/form_spec.rb",
25
+ "position_type": "text",
26
+ "old_line": 9,
27
+ "new_line": null
28
+ },
29
+ "resolvable": true,
30
+ "resolved": false,
31
+ "resolved_by": null,
32
+ "noteable_iid": 13
33
+ }
@@ -0,0 +1,41 @@
1
+ [
2
+ {
3
+ "id": "7d66bf19bf835e6a4666130544ba1b5c343fc705",
4
+ "individual_note": false,
5
+ "notes": [
6
+ {
7
+ "id": 1758,
8
+ "type": "DiffNote",
9
+ "body": "test test",
10
+ "attachment": null,
11
+ "author": {
12
+ "id": 1,
13
+ "name": "Dominik Sander",
14
+ "username": "dsander",
15
+ "state": "active",
16
+ "avatar_url": "https://secure.gravatar.com/avatar/7f017343sf43896ddee04838bd3?s=80&d=identicon",
17
+ "web_url": "https://example.com/dsander"
18
+ },
19
+ "created_at": "2018-05-22T22:00:18.858+02:00",
20
+ "updated_at": "2018-05-22T22:00:18.858+02:00",
21
+ "system": false,
22
+ "noteable_id": 208,
23
+ "noteable_type": "MergeRequest",
24
+ "position": {
25
+ "base_sha": "fb60b1f9e3005a4ec8e039c4ec16b6d36f8e75c9",
26
+ "start_sha": "3c14868ce2ffbf3294ff8c0de828fd1a0e545aae",
27
+ "head_sha": "7d938cb8ac15788d71f4b67c035515a160ea76d8",
28
+ "old_path": "spec/omniauth/form_spec.rb",
29
+ "new_path": "spec/omniauth/form_spec.rb",
30
+ "position_type": "text",
31
+ "old_line": 5,
32
+ "new_line": null
33
+ },
34
+ "resolvable": true,
35
+ "resolved": false,
36
+ "resolved_by": null,
37
+ "noteable_iid": 13
38
+ }
39
+ ]
40
+ }
41
+ ]
@@ -0,0 +1 @@
1
+ [{"id":1,"iid":1,"project_id":1,"title":"Title","description":"","state":"merged","created_at":"2018-05-15T18:38:47.192Z","updated_at":"2018-05-15T18:39:19.621Z","target_branch":"a","source_branch":"b","upvotes":0,"downvotes":0,"author":{"id":1,"name":"admin","username":"admin","state":"active","avatar_url":"https://gitlab.example.com/uploads/-/system/user/avatar/1/avatar.png","web_url":"https://gitlab.example.com/admin"},"assignee":null,"source_project_id":1,"target_project_id":1,"labels":[],"work_in_progress":false,"milestone":null,"merge_when_pipeline_succeeds":false,"merge_status":"can_be_merged","sha":"8d35ce134dc1dc52b8060c413a8a47964e1d5c92","merge_commit_sha":"ca0eedb9ca03107d1bb62a4c98498bc35b2e17eb","user_notes_count":0,"discussion_locked":null,"should_remove_source_branch":null,"force_remove_source_branch":true,"web_url":"https://gitlab.example.com/example-group/example-project/merge_requests/1","time_stats":{"time_estimate":0,"total_time_spent":0,"human_time_estimate":null,"human_total_time_spent":null},"approvals_before_merge":null,"squash":false},{"id":2,"iid":2,"project_id":1,"title":"Title","description":"","state":"merged","created_at":"2018-05-15T18:39:39.528Z","updated_at":"2018-05-15T18:39:47.013Z","target_branch":"master","source_branch":"a","upvotes":0,"downvotes":0,"author":{"id":2,"name":"admin2","username":"admin2","state":"active","avatar_url":"https://gitlab.example.com/uploads/-/system/user/avatar/2/avatar.png","web_url":"https://gitlab.example.com/admin2"},"assignee":null,"source_project_id":1,"target_project_id":1,"labels":[],"work_in_progress":false,"milestone":null,"merge_when_pipeline_succeeds":false,"merge_status":"can_be_merged","sha":"ca0eedb9ca03107d1bb62a4c98498bc35b2e17eb","merge_commit_sha":"a5d1608991cec904a63c95eeed59d14caef43336","user_notes_count":0,"discussion_locked":null,"should_remove_source_branch":null,"force_remove_source_branch":true,"web_url":"https://gitlab.example.com/example-group/example-project/merge_requests/2","time_stats":{"time_estimate":0,"total_time_spent":0,"human_time_estimate":null,"human_total_time_spent":null},"approvals_before_merge":null,"squash":false}]
@@ -1 +1,81 @@
1
- [{"title":null,"project_id":2,"action_name":"opened","target_id":null,"target_type":null,"author_id":1,"data":{"before":"ac0c1aa3898d6dea54d7868ea6f9c45fd5e30c59","after":"66350dbb62a221bc619b665aef3e1e7d3b306747","ref":"refs/heads/master","user_id":1,"user_name":"Administrator","project_id":2,"repository":{"name":"gitlab-ci","url":"git@demo.gitlab.com:gitlab/gitlab-ci.git","description":"Continuous integration server for gitlabhq | Coordinator","homepage":"http://demo.gitlab.com/gitlab/gitlab-ci"},"commits":[{"id":"8cf469b039931bab37bbf025e6b69287ea3cfb0e","message":"Modify screenshot\n\nSigned-off-by: Dmitriy Zaporozhets \u003Cdummy@gmail.com\u003E","timestamp":"2014-05-20T10:34:27+00:00","url":"http://demo.gitlab.com/gitlab/gitlab-ci/commit/8cf469b039931bab37bbf025e6b69287ea3cfb0e","author":{"name":"Dummy","email":"dummy@gmail.com"}},{"id":"66350dbb62a221bc619b665aef3e1e7d3b306747","message":"Edit some code\n\nSigned-off-by: Dmitriy Zaporozhets \u003Cdummy@gmail.com\u003E","timestamp":"2014-05-20T10:35:15+00:00","url":"http://demo.gitlab.com/gitlab/gitlab-ci/commit/66350dbb62a221bc619b665aef3e1e7d3b306747","author":{"name":"Dummy","email":"dummy@gmail.com"}}],"total_commits_count":2},"target_title":null,"created_at":"2014-05-20T10:35:26.240Z"},{"title":null,"project_id":2,"action_name":"opened","target_id":2,"target_type":"MergeRequest","author_id":1,"data":null,"target_title":" Morbi et cursus leo. Sed eget vestibulum sapien","created_at":"2014-05-20T10:24:11.917Z"}]
1
+ [
2
+ {
3
+ "title":null,
4
+ "project_id":1,
5
+ "action_name":"opened",
6
+ "target_id":160,
7
+ "target_iid":160,
8
+ "target_type":"Issue",
9
+ "author_id":25,
10
+ "target_title":"Qui natus eos odio tempore et quaerat consequuntur ducimus cupiditate quis.",
11
+ "created_at":"2017-02-09T10:43:19.667Z",
12
+ "author":{
13
+ "name":"User 3",
14
+ "username":"user3",
15
+ "id":25,
16
+ "state":"active",
17
+ "avatar_url":"http://www.gravatar.com/avatar/97d6d9441ff85fdc730e02a6068d267b?s=80\u0026d=identicon",
18
+ "web_url":"https://gitlab.example.com/user3"
19
+ },
20
+ "author_username":"user3"
21
+ },
22
+ {
23
+ "title":null,
24
+ "project_id":1,
25
+ "action_name":"opened",
26
+ "target_id":159,
27
+ "target_iid":159,
28
+ "target_type":"Issue",
29
+ "author_id":21,
30
+ "target_title":"Nostrum enim non et sed optio illo deleniti non.",
31
+ "created_at":"2017-02-09T10:43:19.426Z",
32
+ "author":{
33
+ "name":"Test User",
34
+ "username":"ted",
35
+ "id":21,
36
+ "state":"active",
37
+ "avatar_url":"http://www.gravatar.com/avatar/80fb888c9a48b9a3f87477214acaa63f?s=80\u0026d=identicon",
38
+ "web_url":"https://gitlab.example.com/ted"
39
+ },
40
+ "author_username":"ted"
41
+ },
42
+ {
43
+ "title": null,
44
+ "project_id": 1,
45
+ "action_name": "commented on",
46
+ "target_id": 1312,
47
+ "target_iid": 1312,
48
+ "target_type": "Note",
49
+ "author_id": 1,
50
+ "data": null,
51
+ "target_title": null,
52
+ "created_at": "2015-12-04T10:33:58.089Z",
53
+ "note": {
54
+ "id": 1312,
55
+ "body": "What an awesome day!",
56
+ "attachment": null,
57
+ "author": {
58
+ "name": "Dmitriy Zaporozhets",
59
+ "username": "root",
60
+ "id": 1,
61
+ "state": "active",
62
+ "avatar_url": "http://localhost:3000/uploads/user/avatar/1/fox_avatar.png",
63
+ "web_url": "http://localhost:3000/root"
64
+ },
65
+ "created_at": "2015-12-04T10:33:56.698Z",
66
+ "system": false,
67
+ "noteable_id": 377,
68
+ "noteable_type": "Issue",
69
+ "noteable_iid": 377
70
+ },
71
+ "author": {
72
+ "name": "Dmitriy Zaporozhets",
73
+ "username": "root",
74
+ "id": 1,
75
+ "state": "active",
76
+ "avatar_url": "http://localhost:3000/uploads/user/avatar/1/fox_avatar.png",
77
+ "web_url": "http://localhost:3000/root"
78
+ },
79
+ "author_username": "root"
80
+ }
81
+ ]
@@ -0,0 +1,50 @@
1
+ [{
2
+ "id":20,
3
+ "description":"desc",
4
+ "default_branch":"master",
5
+ "tag_list":[
6
+
7
+ ],
8
+ "public":false,
9
+ "archived":false,
10
+ "visibility_level":10,
11
+ "ssh_url_to_repo":"git@git.gitlab.com:root/gitlab.git",
12
+ "http_url_to_repo":"http://git.gitlab.com/root/gitlab.git",
13
+ "web_url":"http://git.gitlab.com/root/gitlab",
14
+ "owner":{
15
+ "name":"Administrator",
16
+ "username":"root",
17
+ "id":1,
18
+ "state":"active",
19
+ "avatar_url":"http://git.gitlab.com/uploads/user/avatar/1/12586377.jpeg"
20
+ },
21
+ "name":"gitlab",
22
+ "name_with_namespace":"Administrator / gitlab",
23
+ "path":"gitlab",
24
+ "path_with_namespace":"root/gitlab",
25
+ "issues_enabled":true,
26
+ "merge_requests_enabled":true,
27
+ "wiki_enabled":true,
28
+ "snippets_enabled":false,
29
+ "created_at":"2015-06-08T01:29:17.190Z",
30
+ "last_activity_at":"2015-06-08T01:29:17.190Z",
31
+ "creator_id":1,
32
+ "namespace":{
33
+ "id":1,
34
+ "name":"root",
35
+ "path":"root",
36
+ "owner_id":1,
37
+ "created_at":"2015-05-28T19:23:40.445Z",
38
+ "updated_at":"2015-05-28T19:23:40.445Z",
39
+ "description":"",
40
+ "avatar":null
41
+ },
42
+ "forked_from_project":{
43
+ "id":3,
44
+ "name":"Gitlab",
45
+ "name_with_namespace":"Root / gitlab",
46
+ "path":"gitlab",
47
+ "path_with_namespace":"root/gitlab"
48
+ },
49
+ "avatar_url":null
50
+ }]
@@ -0,0 +1,63 @@
1
+ [
2
+ {
3
+ "id": 2,
4
+ "status": "running",
5
+ "stage": "test",
6
+ "name": "test",
7
+ "ref": "master",
8
+ "tag": false,
9
+ "coverage": null,
10
+ "created_at": "2017-11-16T08:50:29.000Z",
11
+ "started_at": "2017-11-16T08:51:29.000Z",
12
+ "finished_at": "2017-11-16T08:53:29.000Z",
13
+ "duration": 120,
14
+ "user": {
15
+ "id": 1,
16
+ "name": "John Doe2",
17
+ "username": "user2",
18
+ "state": "active",
19
+ "avatar_url": "http://www.gravatar.com/avatar/c922747a93b40d1ea88262bf1aebee62?s=80&d=identicon",
20
+ "web_url": "http://localhost/user2",
21
+ "created_at": "2017-11-16T18:38:46.000Z",
22
+ "bio": null,
23
+ "location": null,
24
+ "skype": "",
25
+ "linkedin": "",
26
+ "twitter": "",
27
+ "website_url": "",
28
+ "organization": null
29
+ },
30
+ "commit": {
31
+ "id": "97de212e80737a608d939f648d959671fb0a0142",
32
+ "short_id": "97de212e",
33
+ "title": "Update configuration\r",
34
+ "created_at": "2017-11-16T08:50:28.000Z",
35
+ "parent_ids": [
36
+ "1b12f15a11fc6e62177bef08f47bc7b5ce50b141",
37
+ "498214de67004b1da3d820901307bed2a68a8ef6"
38
+ ],
39
+ "message": "See merge request !123",
40
+ "author_name": "John Doe2",
41
+ "author_email": "user2@example.org",
42
+ "authored_date": "2017-11-16T08:50:27.000Z",
43
+ "committer_name": "John Doe2",
44
+ "committer_email": "user2@example.org",
45
+ "committed_date": "2017-11-16T08:50:27.000Z"
46
+ },
47
+ "pipeline": {
48
+ "id": 2,
49
+ "sha": "97de212e80737a608d939f648d959671fb0a0142",
50
+ "ref": "master",
51
+ "status": "running"
52
+ },
53
+ "project": {
54
+ "id": 1,
55
+ "description": null,
56
+ "name": "project1",
57
+ "name_with_namespace": "John Doe2 / project1",
58
+ "path": "project1",
59
+ "path_with_namespace": "namespace1/project1",
60
+ "created_at": "2017-11-16T18:38:46.620Z"
61
+ }
62
+ }
63
+ ]
@@ -0,0 +1,36 @@
1
+ {
2
+ "queues": {
3
+ "default": {
4
+ "backlog": 0,
5
+ "latency": 0
6
+ }
7
+ },
8
+ "processes": [
9
+ {
10
+ "hostname": "gitlab.example.com",
11
+ "pid": 5649,
12
+ "tag": "gitlab",
13
+ "started_at": "2016-06-14T10:45:07.159-05:00",
14
+ "queues": [
15
+ "post_receive",
16
+ "mailers",
17
+ "archive_repo",
18
+ "system_hook",
19
+ "project_web_hook",
20
+ "gitlab_shell",
21
+ "incoming_email",
22
+ "runner",
23
+ "common",
24
+ "default"
25
+ ],
26
+ "labels": [],
27
+ "concurrency": 25,
28
+ "busy": 0
29
+ }
30
+ ],
31
+ "jobs": {
32
+ "processed": 2,
33
+ "failed": 0,
34
+ "enqueued": 0
35
+ }
36
+ }