geet 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -5
- data/geet.gemspec +1 -1
- data/lib/geet/git/repository.rb +6 -10
- data/lib/geet/github/abstract_issue.rb +4 -8
- data/lib/geet/github/issue.rb +4 -4
- data/lib/geet/github/milestone.rb +9 -11
- data/lib/geet/github/pr.rb +27 -11
- data/lib/geet/gitlab/PR.rb +37 -0
- data/lib/geet/gitlab/issue.rb +10 -6
- data/lib/geet/gitlab/milestone.rb +43 -0
- data/lib/geet/gitlab/user.rb +30 -0
- data/lib/geet/helpers/json_helper.rb +17 -0
- data/lib/geet/services/list_issues.rb +1 -3
- data/lib/geet/services/list_milestones.rb +33 -17
- data/lib/geet/version.rb +1 -1
- data/spec/integration/list_issues_spec.rb +26 -2
- data/spec/integration/list_milestones_spec.rb +83 -47
- data/spec/integration/list_prs_spec.rb +9 -9
- data/spec/vcr_cassettes/github_com/list_milestones.yml +621 -0
- data/spec/vcr_cassettes/gitlab_com/list_issues.yml +3 -3
- data/spec/vcr_cassettes/gitlab_com/list_issues_with_assignee.yml +162 -0
- data/spec/vcr_cassettes/gitlab_com/list_milestones.yml +397 -0
- data/spec/vcr_cassettes/list_milestones_upstream.yml +271 -22
- data/spec/vcr_cassettes/list_prs.yml +25 -20
- data/spec/vcr_cassettes/list_prs_upstream.yml +25 -16
- metadata +9 -3
- data/spec/vcr_cassettes/list_milestones.yml +0 -468
@@ -74,11 +74,11 @@ http_interactions:
|
|
74
74
|
- Tue, 27 Nov 2017 20:59:06 GMT
|
75
75
|
body:
|
76
76
|
encoding: UTF-8
|
77
|
-
string: '[{"id":1234567,"iid":2,"project_id":
|
77
|
+
string: '[{"id":1234567,"iid":2,"project_id":1234569,"title":"I like more pizza","description":"And
|
78
78
|
you should, too!","state":"opened","created_at":"2017-11-26T20:56:53.870Z","updated_at":"2017-11-27T18:57:07.289Z","closed_at":null,"labels":[],"milestone":null,"assignees":[],"author":{"id":1234561,"name":"Donald
|
79
|
-
Duck","username":"donaldduck","state":"active","avatar_url":"https://secure.gravatar.com/avatar/
|
79
|
+
Duck","username":"donaldduck","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef0123456789abcdef?s=80\u0026d=identicon","web_url":"https://gitlab.com/donaldduck"},"assignee":null,"user_notes_count":1,"upvotes":0,"downvotes":0,"due_date":null,"confidential":false,"weight":null,"discussion_locked":null,"web_url":"https://gitlab.com/donaldduck/testproject/issues/2","time_stats":{"time_estimate":0,"total_time_spent":0,"human_time_estimate":null,"human_total_time_spent":null}},{"id":1234566,"iid":1,"project_id":1234569,"title":"I
|
80
80
|
like pizza","description":"How about you?","state":"opened","created_at":"2017-11-26T20:56:42.241Z","updated_at":"2017-11-26T20:56:42.241Z","closed_at":null,"labels":[],"milestone":null,"assignees":[],"author":{"id":1234561,"name":"Donald
|
81
|
-
Duck","username":"donaldduck","state":"active","avatar_url":"https://secure.gravatar.com/avatar/
|
81
|
+
Duck","username":"donaldduck","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef0123456789abcdef?s=80\u0026d=identicon","web_url":"https://gitlab.com/donaldduck"},"assignee":null,"user_notes_count":0,"upvotes":0,"downvotes":0,"due_date":null,"confidential":false,"weight":null,"discussion_locked":null,"web_url":"https://gitlab.com/donaldduck/testproject/issues/1","time_stats":{"time_estimate":0,"total_time_spent":0,"human_time_estimate":null,"human_total_time_spent":null}}]'
|
82
82
|
http_version:
|
83
83
|
recorded_at: Mon, 27 Nov 2017 20:58:06 GMT
|
84
84
|
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,162 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/members
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- gitlab.com
|
18
|
+
Private-Token:
|
19
|
+
- "<GITLAB_CREDENTIALS>"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Sun, 01 Jul 2018 14:59:20 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '532'
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
Etag:
|
36
|
+
- W/"49da9037811592984beee2ce5d52e536"
|
37
|
+
Link:
|
38
|
+
- <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/members?id=donaldduck%2Ftestproject&page=1&per_page=20>;
|
39
|
+
rel="first", <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/members?id=donaldduck%2Ftestproject&page=1&per_page=20>;
|
40
|
+
rel="last"
|
41
|
+
Vary:
|
42
|
+
- Origin
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Frame-Options:
|
46
|
+
- SAMEORIGIN
|
47
|
+
X-Next-Page:
|
48
|
+
- ''
|
49
|
+
X-Page:
|
50
|
+
- '1'
|
51
|
+
X-Per-Page:
|
52
|
+
- '20'
|
53
|
+
X-Prev-Page:
|
54
|
+
- ''
|
55
|
+
X-Request-Id:
|
56
|
+
- c08e58bd-0c7d-4224-8a43-702db1687f72
|
57
|
+
X-Runtime:
|
58
|
+
- '0.051731'
|
59
|
+
X-Total:
|
60
|
+
- '2'
|
61
|
+
X-Total-Pages:
|
62
|
+
- '1'
|
63
|
+
Strict-Transport-Security:
|
64
|
+
- max-age=31536000
|
65
|
+
Ratelimit-Limit:
|
66
|
+
- '600'
|
67
|
+
Ratelimit-Observed:
|
68
|
+
- '1'
|
69
|
+
Ratelimit-Remaining:
|
70
|
+
- '599'
|
71
|
+
Ratelimit-Reset:
|
72
|
+
- '1530457220'
|
73
|
+
Ratelimit-Resettime:
|
74
|
+
- Mon, 01 Jul 2018 15:00:20 GMT
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: '[{"id":1234561,"name":"Donald Duck","username":"donaldduck","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef05ea2797cb94a5b0?s=80\u0026d=identicon","web_url":"https://gitlab.com/donaldduck","access_level":40,"expires_at":null},{"id":1234566,"name":"Donald
|
78
|
+
M.","username":"donald-fr","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef5f9bcb5c53fa82d2?s=80\u0026d=identicon","web_url":"https://gitlab.com/donald-fr","access_level":30,"expires_at":null}]'
|
79
|
+
http_version:
|
80
|
+
recorded_at: Sun, 01 Jul 2018 14:59:20 GMT
|
81
|
+
- request:
|
82
|
+
method: get
|
83
|
+
uri: https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/issues?assignee_id=1234566
|
84
|
+
body:
|
85
|
+
encoding: US-ASCII
|
86
|
+
string: ''
|
87
|
+
headers:
|
88
|
+
Accept-Encoding:
|
89
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
90
|
+
Accept:
|
91
|
+
- "*/*"
|
92
|
+
User-Agent:
|
93
|
+
- Ruby
|
94
|
+
Host:
|
95
|
+
- gitlab.com
|
96
|
+
Private-Token:
|
97
|
+
- "<GITLAB_CREDENTIALS>"
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 200
|
101
|
+
message: OK
|
102
|
+
headers:
|
103
|
+
Server:
|
104
|
+
- nginx
|
105
|
+
Date:
|
106
|
+
- Sun, 01 Jul 2018 14:59:21 GMT
|
107
|
+
Content-Type:
|
108
|
+
- application/json
|
109
|
+
Content-Length:
|
110
|
+
- '1296'
|
111
|
+
Cache-Control:
|
112
|
+
- max-age=0, private, must-revalidate
|
113
|
+
Etag:
|
114
|
+
- W/"3686f432615d8dc0a03b33872b11100e"
|
115
|
+
Link:
|
116
|
+
- <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/issues?assignee_id=1234566&id=donaldduck%2Ftestproject&order_by=created_at&page=1&per_page=20&sort=desc&state=all>;
|
117
|
+
rel="first", <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/issues?assignee_id=1234566&id=donaldduck%2Ftestproject&order_by=created_at&page=1&per_page=20&sort=desc&state=all>;
|
118
|
+
rel="last"
|
119
|
+
Vary:
|
120
|
+
- Origin
|
121
|
+
X-Content-Type-Options:
|
122
|
+
- nosniff
|
123
|
+
X-Frame-Options:
|
124
|
+
- SAMEORIGIN
|
125
|
+
X-Next-Page:
|
126
|
+
- ''
|
127
|
+
X-Page:
|
128
|
+
- '1'
|
129
|
+
X-Per-Page:
|
130
|
+
- '20'
|
131
|
+
X-Prev-Page:
|
132
|
+
- ''
|
133
|
+
X-Request-Id:
|
134
|
+
- 2dd40630-6c8b-48f6-81f0-00e93ef0a9d7
|
135
|
+
X-Runtime:
|
136
|
+
- '0.109420'
|
137
|
+
X-Total:
|
138
|
+
- '1'
|
139
|
+
X-Total-Pages:
|
140
|
+
- '1'
|
141
|
+
Strict-Transport-Security:
|
142
|
+
- max-age=31536000
|
143
|
+
Ratelimit-Limit:
|
144
|
+
- '600'
|
145
|
+
Ratelimit-Observed:
|
146
|
+
- '1'
|
147
|
+
Ratelimit-Remaining:
|
148
|
+
- '599'
|
149
|
+
Ratelimit-Reset:
|
150
|
+
- '1530457221'
|
151
|
+
Ratelimit-Resettime:
|
152
|
+
- Mon, 01 Jul 2018 15:00:21 GMT
|
153
|
+
body:
|
154
|
+
encoding: UTF-8
|
155
|
+
string: '[{"id":12345608,"iid":3,"project_id":1234569,"title":"This is a test
|
156
|
+
issue","description":"A description.\n\nNow with more lines!","state":"opened","created_at":"2018-07-01T14:23:55.801Z","updated_at":"2018-07-01T14:23:55.801Z","closed_at":null,"closed_by":null,"labels":[],"milestone":null,"assignees":[{"id":1234566,"name":"Donald
|
157
|
+
M.","username":"donald-fr","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef5f9bcb5c53fa82d2?s=80\u0026d=identicon","web_url":"https://gitlab.com/donald-fr"}],"author":{"id":1234566,"name":"Donald
|
158
|
+
M.","username":"donald-fr","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef5f9bcb5c53fa82d2?s=80\u0026d=identicon","web_url":"https://gitlab.com/donald-fr"},"assignee":{"id":1234566,"name":"Donald
|
159
|
+
M.","username":"donald-fr","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef5f9bcb5c53fa82d2?s=80\u0026d=identicon","web_url":"https://gitlab.com/donald-fr"},"user_notes_count":0,"upvotes":0,"downvotes":0,"due_date":null,"confidential":false,"discussion_locked":null,"web_url":"https://gitlab.com/donaldduck/testproject/issues/3","time_stats":{"time_estimate":0,"total_time_spent":0,"human_time_estimate":null,"human_total_time_spent":null},"weight":null}]'
|
160
|
+
http_version:
|
161
|
+
recorded_at: Sun, 01 Jul 2018 14:59:21 GMT
|
162
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,397 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/milestones
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- gitlab.com
|
18
|
+
Private-Token:
|
19
|
+
- "<GITLAB_CREDENTIALS>"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Sun, 01 Jul 2018 21:09:24 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '569'
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
Etag:
|
36
|
+
- W/"13d6cb11278de7e357cd82b2402c4593"
|
37
|
+
Link:
|
38
|
+
- <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/milestones?id=donaldduck%2Ftestproject&page=1&per_page=20&state=all>;
|
39
|
+
rel="first", <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/milestones?id=donaldduck%2Ftestproject&page=1&per_page=20&state=all>;
|
40
|
+
rel="last"
|
41
|
+
Vary:
|
42
|
+
- Origin
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Frame-Options:
|
46
|
+
- SAMEORIGIN
|
47
|
+
X-Next-Page:
|
48
|
+
- ''
|
49
|
+
X-Page:
|
50
|
+
- '1'
|
51
|
+
X-Per-Page:
|
52
|
+
- '20'
|
53
|
+
X-Prev-Page:
|
54
|
+
- ''
|
55
|
+
X-Request-Id:
|
56
|
+
- 5a660685-ce2a-4239-a73f-4acf26e44fbf
|
57
|
+
X-Runtime:
|
58
|
+
- '0.087923'
|
59
|
+
X-Total:
|
60
|
+
- '2'
|
61
|
+
X-Total-Pages:
|
62
|
+
- '1'
|
63
|
+
Strict-Transport-Security:
|
64
|
+
- max-age=31536000
|
65
|
+
Ratelimit-Limit:
|
66
|
+
- '600'
|
67
|
+
Ratelimit-Observed:
|
68
|
+
- '5'
|
69
|
+
Ratelimit-Remaining:
|
70
|
+
- '595'
|
71
|
+
Ratelimit-Reset:
|
72
|
+
- '1530479424'
|
73
|
+
Ratelimit-Resettime:
|
74
|
+
- Mon, 01 Jul 2018 21:10:24 GMT
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: '[{"id":123456,"iid":2,"project_id":1234569,"title":"Milestone 2","description":"","state":"active","created_at":"2018-07-01T15:26:16.248Z","updated_at":"2018-07-01T15:26:16.248Z","due_date":null,"start_date":null,"web_url":"https://gitlab.com/donaldduck/testproject/milestones/2"},{"id":123456,"iid":1,"project_id":1234569,"title":"Milestone
|
78
|
+
1","description":"","state":"active","created_at":"2018-07-01T15:26:06.933Z","updated_at":"2018-07-01T15:26:06.933Z","due_date":null,"start_date":null,"web_url":"https://gitlab.com/donaldduck/testproject/milestones/1"}]'
|
79
|
+
http_version:
|
80
|
+
recorded_at: Sun, 01 Jul 2018 21:09:24 GMT
|
81
|
+
- request:
|
82
|
+
method: get
|
83
|
+
uri: https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/merge_requests?milestone=Milestone%202
|
84
|
+
body:
|
85
|
+
encoding: US-ASCII
|
86
|
+
string: ''
|
87
|
+
headers:
|
88
|
+
Accept-Encoding:
|
89
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
90
|
+
Accept:
|
91
|
+
- "*/*"
|
92
|
+
User-Agent:
|
93
|
+
- Ruby
|
94
|
+
Host:
|
95
|
+
- gitlab.com
|
96
|
+
Private-Token:
|
97
|
+
- "<GITLAB_CREDENTIALS>"
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 200
|
101
|
+
message: OK
|
102
|
+
headers:
|
103
|
+
Server:
|
104
|
+
- nginx
|
105
|
+
Date:
|
106
|
+
- Sun, 01 Jul 2018 21:09:24 GMT
|
107
|
+
Content-Type:
|
108
|
+
- application/json
|
109
|
+
Content-Length:
|
110
|
+
- '2'
|
111
|
+
Cache-Control:
|
112
|
+
- max-age=0, private, must-revalidate
|
113
|
+
Etag:
|
114
|
+
- W/"d751713988987e9331980363e24189ce"
|
115
|
+
Link:
|
116
|
+
- <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/merge_requests?id=donaldduck%2Ftestproject&milestone=Milestone+2&order_by=created_at&page=1&per_page=20&sort=desc&state=all>;
|
117
|
+
rel="first", <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/merge_requests?id=donaldduck%2Ftestproject&milestone=Milestone+2&order_by=created_at&page=1&per_page=20&sort=desc&state=all>;
|
118
|
+
rel="last"
|
119
|
+
Vary:
|
120
|
+
- Origin
|
121
|
+
X-Content-Type-Options:
|
122
|
+
- nosniff
|
123
|
+
X-Frame-Options:
|
124
|
+
- SAMEORIGIN
|
125
|
+
X-Next-Page:
|
126
|
+
- ''
|
127
|
+
X-Page:
|
128
|
+
- '1'
|
129
|
+
X-Per-Page:
|
130
|
+
- '20'
|
131
|
+
X-Prev-Page:
|
132
|
+
- ''
|
133
|
+
X-Request-Id:
|
134
|
+
- a99ec7a6-ed27-4154-9ab8-2b254775de2d
|
135
|
+
X-Runtime:
|
136
|
+
- '0.054151'
|
137
|
+
X-Total:
|
138
|
+
- '0'
|
139
|
+
X-Total-Pages:
|
140
|
+
- '1'
|
141
|
+
Strict-Transport-Security:
|
142
|
+
- max-age=31536000
|
143
|
+
Ratelimit-Limit:
|
144
|
+
- '600'
|
145
|
+
Ratelimit-Observed:
|
146
|
+
- '2'
|
147
|
+
Ratelimit-Remaining:
|
148
|
+
- '598'
|
149
|
+
Ratelimit-Reset:
|
150
|
+
- '1530479424'
|
151
|
+
Ratelimit-Resettime:
|
152
|
+
- Mon, 01 Jul 2018 21:10:24 GMT
|
153
|
+
body:
|
154
|
+
encoding: UTF-8
|
155
|
+
string: "[]"
|
156
|
+
http_version:
|
157
|
+
recorded_at: Sun, 01 Jul 2018 21:09:24 GMT
|
158
|
+
- request:
|
159
|
+
method: get
|
160
|
+
uri: https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/issues?milestone=Milestone%202
|
161
|
+
body:
|
162
|
+
encoding: US-ASCII
|
163
|
+
string: ''
|
164
|
+
headers:
|
165
|
+
Accept-Encoding:
|
166
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
167
|
+
Accept:
|
168
|
+
- "*/*"
|
169
|
+
User-Agent:
|
170
|
+
- Ruby
|
171
|
+
Host:
|
172
|
+
- gitlab.com
|
173
|
+
Private-Token:
|
174
|
+
- "<GITLAB_CREDENTIALS>"
|
175
|
+
response:
|
176
|
+
status:
|
177
|
+
code: 200
|
178
|
+
message: OK
|
179
|
+
headers:
|
180
|
+
Server:
|
181
|
+
- nginx
|
182
|
+
Date:
|
183
|
+
- Sun, 01 Jul 2018 21:09:24 GMT
|
184
|
+
Content-Type:
|
185
|
+
- application/json
|
186
|
+
Content-Length:
|
187
|
+
- '2'
|
188
|
+
Cache-Control:
|
189
|
+
- max-age=0, private, must-revalidate
|
190
|
+
Etag:
|
191
|
+
- W/"d751713988987e9331980363e24189ce"
|
192
|
+
Link:
|
193
|
+
- <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/issues?id=donaldduck%2Ftestproject&milestone=Milestone+2&order_by=created_at&page=1&per_page=20&sort=desc&state=all>;
|
194
|
+
rel="first", <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/issues?id=donaldduck%2Ftestproject&milestone=Milestone+2&order_by=created_at&page=1&per_page=20&sort=desc&state=all>;
|
195
|
+
rel="last"
|
196
|
+
Vary:
|
197
|
+
- Origin
|
198
|
+
X-Content-Type-Options:
|
199
|
+
- nosniff
|
200
|
+
X-Frame-Options:
|
201
|
+
- SAMEORIGIN
|
202
|
+
X-Next-Page:
|
203
|
+
- ''
|
204
|
+
X-Page:
|
205
|
+
- '1'
|
206
|
+
X-Per-Page:
|
207
|
+
- '20'
|
208
|
+
X-Prev-Page:
|
209
|
+
- ''
|
210
|
+
X-Request-Id:
|
211
|
+
- b3108142-da4f-452d-a0a4-7539d5dd4a20
|
212
|
+
X-Runtime:
|
213
|
+
- '0.058546'
|
214
|
+
X-Total:
|
215
|
+
- '0'
|
216
|
+
X-Total-Pages:
|
217
|
+
- '1'
|
218
|
+
Strict-Transport-Security:
|
219
|
+
- max-age=31536000
|
220
|
+
Ratelimit-Limit:
|
221
|
+
- '600'
|
222
|
+
Ratelimit-Observed:
|
223
|
+
- '2'
|
224
|
+
Ratelimit-Remaining:
|
225
|
+
- '598'
|
226
|
+
Ratelimit-Reset:
|
227
|
+
- '1530479424'
|
228
|
+
Ratelimit-Resettime:
|
229
|
+
- Mon, 01 Jul 2018 21:10:24 GMT
|
230
|
+
body:
|
231
|
+
encoding: UTF-8
|
232
|
+
string: "[]"
|
233
|
+
http_version:
|
234
|
+
recorded_at: Sun, 01 Jul 2018 21:09:24 GMT
|
235
|
+
- request:
|
236
|
+
method: get
|
237
|
+
uri: https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/merge_requests?milestone=Milestone%201
|
238
|
+
body:
|
239
|
+
encoding: US-ASCII
|
240
|
+
string: ''
|
241
|
+
headers:
|
242
|
+
Accept-Encoding:
|
243
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
244
|
+
Accept:
|
245
|
+
- "*/*"
|
246
|
+
User-Agent:
|
247
|
+
- Ruby
|
248
|
+
Host:
|
249
|
+
- gitlab.com
|
250
|
+
Private-Token:
|
251
|
+
- "<GITLAB_CREDENTIALS>"
|
252
|
+
response:
|
253
|
+
status:
|
254
|
+
code: 200
|
255
|
+
message: OK
|
256
|
+
headers:
|
257
|
+
Server:
|
258
|
+
- nginx
|
259
|
+
Date:
|
260
|
+
- Sun, 01 Jul 2018 21:09:24 GMT
|
261
|
+
Content-Type:
|
262
|
+
- application/json
|
263
|
+
Content-Length:
|
264
|
+
- '1398'
|
265
|
+
Cache-Control:
|
266
|
+
- max-age=0, private, must-revalidate
|
267
|
+
Etag:
|
268
|
+
- W/"1fcaee5a21d87cafb1bfc7c178b266f3"
|
269
|
+
Link:
|
270
|
+
- <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/merge_requests?id=donaldduck%2Ftestproject&milestone=Milestone+1&order_by=created_at&page=1&per_page=20&sort=desc&state=all>;
|
271
|
+
rel="first", <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/merge_requests?id=donaldduck%2Ftestproject&milestone=Milestone+1&order_by=created_at&page=1&per_page=20&sort=desc&state=all>;
|
272
|
+
rel="last"
|
273
|
+
Vary:
|
274
|
+
- Origin
|
275
|
+
X-Content-Type-Options:
|
276
|
+
- nosniff
|
277
|
+
X-Frame-Options:
|
278
|
+
- SAMEORIGIN
|
279
|
+
X-Next-Page:
|
280
|
+
- ''
|
281
|
+
X-Page:
|
282
|
+
- '1'
|
283
|
+
X-Per-Page:
|
284
|
+
- '20'
|
285
|
+
X-Prev-Page:
|
286
|
+
- ''
|
287
|
+
X-Request-Id:
|
288
|
+
- fbbd7a95-e0da-4d13-9709-55aa31070e64
|
289
|
+
X-Runtime:
|
290
|
+
- '0.123152'
|
291
|
+
X-Total:
|
292
|
+
- '1'
|
293
|
+
X-Total-Pages:
|
294
|
+
- '1'
|
295
|
+
Strict-Transport-Security:
|
296
|
+
- max-age=31536000
|
297
|
+
Ratelimit-Limit:
|
298
|
+
- '600'
|
299
|
+
Ratelimit-Observed:
|
300
|
+
- '2'
|
301
|
+
Ratelimit-Remaining:
|
302
|
+
- '599'
|
303
|
+
Ratelimit-Reset:
|
304
|
+
- '1530479424'
|
305
|
+
Ratelimit-Resettime:
|
306
|
+
- Mon, 01 Jul 2018 21:10:24 GMT
|
307
|
+
body:
|
308
|
+
encoding: UTF-8
|
309
|
+
string: '[{"id":12345635,"iid":1,"project_id":1234569,"title":"Merge request
|
310
|
+
1","description":"","state":"opened","created_at":"2018-07-01T15:54:28.717Z","updated_at":"2018-07-01T21:08:40.165Z","target_branch":"master","source_branch":"test","upvotes":0,"downvotes":0,"author":{"id":1234561,"name":"Donald
|
311
|
+
Duck","username":"donaldduck","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef05ea2797cb94a5b0?s=80\u0026d=identicon","web_url":"https://gitlab.com/donaldduck"},"assignee":null,"source_project_id":1234569,"target_project_id":1234569,"labels":[],"work_in_progress":false,"milestone":{"id":123456,"iid":1,"project_id":1234569,"title":"Milestone
|
312
|
+
1","description":"","state":"active","created_at":"2018-07-01T15:26:06.933Z","updated_at":"2018-07-01T15:26:06.933Z","due_date":null,"start_date":null,"web_url":"https://gitlab.com/donaldduck/testproject/milestones/1"},"merge_when_pipeline_succeeds":false,"merge_status":"can_be_merged","sha":"b4a0b46d1c6881bc793d7a00637d4910a914d879","merge_commit_sha":null,"user_notes_count":0,"discussion_locked":null,"should_remove_source_branch":null,"force_remove_source_branch":false,"web_url":"https://gitlab.com/donaldduck/testproject/merge_requests/1","time_stats":{"time_estimate":0,"total_time_spent":0,"human_time_estimate":null,"human_total_time_spent":null},"squash":false,"approvals_before_merge":null}]'
|
313
|
+
http_version:
|
314
|
+
recorded_at: Sun, 01 Jul 2018 21:09:24 GMT
|
315
|
+
- request:
|
316
|
+
method: get
|
317
|
+
uri: https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/issues?milestone=Milestone%201
|
318
|
+
body:
|
319
|
+
encoding: US-ASCII
|
320
|
+
string: ''
|
321
|
+
headers:
|
322
|
+
Accept-Encoding:
|
323
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
324
|
+
Accept:
|
325
|
+
- "*/*"
|
326
|
+
User-Agent:
|
327
|
+
- Ruby
|
328
|
+
Host:
|
329
|
+
- gitlab.com
|
330
|
+
Private-Token:
|
331
|
+
- "<GITLAB_CREDENTIALS>"
|
332
|
+
response:
|
333
|
+
status:
|
334
|
+
code: 200
|
335
|
+
message: OK
|
336
|
+
headers:
|
337
|
+
Server:
|
338
|
+
- nginx
|
339
|
+
Date:
|
340
|
+
- Sun, 01 Jul 2018 21:09:24 GMT
|
341
|
+
Content-Type:
|
342
|
+
- application/json
|
343
|
+
Content-Length:
|
344
|
+
- '1575'
|
345
|
+
Cache-Control:
|
346
|
+
- max-age=0, private, must-revalidate
|
347
|
+
Etag:
|
348
|
+
- W/"bdc4979cdf9bb4a04355b49e64a32fe4"
|
349
|
+
Link:
|
350
|
+
- <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/issues?id=donaldduck%2Ftestproject&milestone=Milestone+1&order_by=created_at&page=1&per_page=20&sort=desc&state=all>;
|
351
|
+
rel="first", <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/issues?id=donaldduck%2Ftestproject&milestone=Milestone+1&order_by=created_at&page=1&per_page=20&sort=desc&state=all>;
|
352
|
+
rel="last"
|
353
|
+
Vary:
|
354
|
+
- Origin
|
355
|
+
X-Content-Type-Options:
|
356
|
+
- nosniff
|
357
|
+
X-Frame-Options:
|
358
|
+
- SAMEORIGIN
|
359
|
+
X-Next-Page:
|
360
|
+
- ''
|
361
|
+
X-Page:
|
362
|
+
- '1'
|
363
|
+
X-Per-Page:
|
364
|
+
- '20'
|
365
|
+
X-Prev-Page:
|
366
|
+
- ''
|
367
|
+
X-Request-Id:
|
368
|
+
- de98f900-e07c-4c10-8101-7a629567fc45
|
369
|
+
X-Runtime:
|
370
|
+
- '0.143037'
|
371
|
+
X-Total:
|
372
|
+
- '1'
|
373
|
+
X-Total-Pages:
|
374
|
+
- '1'
|
375
|
+
Strict-Transport-Security:
|
376
|
+
- max-age=31536000
|
377
|
+
Ratelimit-Limit:
|
378
|
+
- '600'
|
379
|
+
Ratelimit-Observed:
|
380
|
+
- '2'
|
381
|
+
Ratelimit-Remaining:
|
382
|
+
- '599'
|
383
|
+
Ratelimit-Reset:
|
384
|
+
- '1530479424'
|
385
|
+
Ratelimit-Resettime:
|
386
|
+
- Mon, 01 Jul 2018 21:10:24 GMT
|
387
|
+
body:
|
388
|
+
encoding: UTF-8
|
389
|
+
string: '[{"id":12345608,"iid":3,"project_id":1234569,"title":"This is a test
|
390
|
+
issue","description":"A description.\n\nNow with more lines!","state":"opened","created_at":"2018-07-01T14:23:55.801Z","updated_at":"2018-07-01T15:55:10.544Z","closed_at":null,"closed_by":null,"labels":[],"milestone":{"id":123456,"iid":1,"project_id":1234569,"title":"Milestone
|
391
|
+
1","description":"","state":"active","created_at":"2018-07-01T15:26:06.933Z","updated_at":"2018-07-01T15:26:06.933Z","due_date":null,"start_date":null,"web_url":"https://gitlab.com/donaldduck/testproject/milestones/1"},"assignees":[{"id":1234566,"name":"Donald
|
392
|
+
M.","username":"donald-fr","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef5f9bcb5c53fa82d2?s=80\u0026d=identicon","web_url":"https://gitlab.com/donald-fr"}],"author":{"id":1234566,"name":"Donald
|
393
|
+
M.","username":"donald-fr","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef5f9bcb5c53fa82d2?s=80\u0026d=identicon","web_url":"https://gitlab.com/donald-fr"},"assignee":{"id":1234566,"name":"Donald
|
394
|
+
M.","username":"donald-fr","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef5f9bcb5c53fa82d2?s=80\u0026d=identicon","web_url":"https://gitlab.com/donald-fr"},"user_notes_count":0,"upvotes":0,"downvotes":0,"due_date":null,"confidential":false,"discussion_locked":null,"web_url":"https://gitlab.com/donaldduck/testproject/issues/3","time_stats":{"time_estimate":0,"total_time_spent":0,"human_time_estimate":null,"human_total_time_spent":null},"weight":null}]'
|
395
|
+
http_version:
|
396
|
+
recorded_at: Sun, 01 Jul 2018 21:09:24 GMT
|
397
|
+
recorded_with: VCR 3.0.3
|