geet 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +2 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +31 -0
- data/README.md +0 -2
- data/bin/geet +50 -39
- data/geet.gemspec +1 -1
- data/lib/geet/commandline/commands.rb +14 -0
- data/lib/geet/{helpers/configuration_helper.rb → commandline/configuration.rb} +4 -12
- data/lib/geet/git/repository.rb +93 -44
- data/lib/geet/{git_hub → github}/abstract_issue.rb +13 -13
- data/lib/geet/github/account.rb +19 -0
- data/lib/geet/{git_hub/api_helper.rb → github/api_interface.rb} +21 -19
- data/lib/geet/github/collaborator.rb +17 -0
- data/lib/geet/{git_hub → github}/gist.rb +4 -4
- data/lib/geet/{git_hub → github}/issue.rb +10 -10
- data/lib/geet/github/label.rb +17 -0
- data/lib/geet/{git_hub → github}/milestone.rb +11 -11
- data/lib/geet/github/pr.rb +61 -0
- data/lib/geet/services/create_gist.rb +4 -4
- data/lib/geet/services/create_issue.rb +30 -25
- data/lib/geet/services/create_pr.rb +28 -27
- data/lib/geet/services/list_issues.rb +2 -2
- data/lib/geet/services/list_labels.rb +2 -2
- data/lib/geet/services/list_milestones.rb +10 -10
- data/lib/geet/services/list_prs.rb +2 -2
- data/lib/geet/services/merge_pr.rb +8 -7
- data/lib/geet/version.rb +1 -1
- data/spec/integration/create_gist_spec.rb +46 -0
- data/spec/integration/create_issue_spec.rb +66 -0
- data/spec/integration/create_pr_spec.rb +68 -0
- data/spec/integration/list_issues_spec.rb +52 -0
- data/spec/integration/list_labels_spec.rb +28 -0
- data/spec/integration/list_milestones_spec.rb +43 -0
- data/spec/integration/list_prs_spec.rb +52 -0
- data/spec/integration/merge_pr_spec.rb +30 -0
- data/spec/spec_helper.rb +121 -0
- data/spec/vcr_cassettes/create_gist_private.yml +80 -0
- data/spec/vcr_cassettes/create_gist_public.yml +80 -0
- data/spec/vcr_cassettes/create_issue.yml +534 -0
- data/spec/vcr_cassettes/create_issue_upstream.yml +235 -0
- data/spec/vcr_cassettes/create_pr.yml +693 -0
- data/spec/vcr_cassettes/create_pr_upstream.yml +313 -0
- data/spec/vcr_cassettes/list_issues.yml +82 -0
- data/spec/vcr_cassettes/list_issues_upstream.yml +84 -0
- data/spec/vcr_cassettes/list_labels.yml +78 -0
- data/spec/vcr_cassettes/list_milestones.yml +468 -0
- data/spec/vcr_cassettes/list_prs.yml +84 -0
- data/spec/vcr_cassettes/list_prs_upstream.yml +80 -0
- data/spec/vcr_cassettes/merge_pr.yml +156 -0
- metadata +36 -11
- data/lib/geet/git_hub/account.rb +0 -19
- data/lib/geet/git_hub/pr.rb +0 -57
- data/lib/geet/git_hub/remote_repository.rb +0 -65
@@ -0,0 +1,534 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.github.com/repos/donaldduck/testrepo/labels
|
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
|
+
- application/vnd.github.v3+json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.github.com
|
18
|
+
Authorization:
|
19
|
+
- Basic <GITHUB_CREDENTIALS>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- GitHub.com
|
27
|
+
Date:
|
28
|
+
- Tue, 21 Nov 2017 13:01:10 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
X-Ratelimit-Limit:
|
36
|
+
- '5000'
|
37
|
+
X-Ratelimit-Remaining:
|
38
|
+
- '4993'
|
39
|
+
X-Ratelimit-Reset:
|
40
|
+
- '1511270582'
|
41
|
+
Cache-Control:
|
42
|
+
- private, max-age=60, s-maxage=60
|
43
|
+
Vary:
|
44
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
45
|
+
Etag:
|
46
|
+
- W/"e6b0fca4f7e667cff0dc282de99f9b89"
|
47
|
+
X-Oauth-Scopes:
|
48
|
+
- admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook,
|
49
|
+
delete_repo, gist, notifications, repo, user
|
50
|
+
X-Accepted-Oauth-Scopes:
|
51
|
+
- repo
|
52
|
+
X-Github-Media-Type:
|
53
|
+
- github.v3; format=json
|
54
|
+
Access-Control-Expose-Headers:
|
55
|
+
- ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
56
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
57
|
+
Access-Control-Allow-Origin:
|
58
|
+
- "*"
|
59
|
+
Content-Security-Policy:
|
60
|
+
- default-src 'none'
|
61
|
+
Strict-Transport-Security:
|
62
|
+
- max-age=31536000; includeSubdomains; preload
|
63
|
+
X-Content-Type-Options:
|
64
|
+
- nosniff
|
65
|
+
X-Frame-Options:
|
66
|
+
- deny
|
67
|
+
X-Xss-Protection:
|
68
|
+
- 1; mode=block
|
69
|
+
X-Runtime-Rack:
|
70
|
+
- '0.036300'
|
71
|
+
X-Github-Request-Id:
|
72
|
+
- EA5C:2B89:3D6EFD:9B6F1D:5A142395
|
73
|
+
body:
|
74
|
+
encoding: ASCII-8BIT
|
75
|
+
string: '[{"id":756812052,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/bug","name":"bug","color":"ee0701","default":true},{"id":756812053,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/duplicate","name":"duplicate","color":"cccccc","default":true},{"id":756812054,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":756812056,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/good%20first%20issue","name":"good
|
76
|
+
first issue","color":"7057ff","default":true},{"id":756812055,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/help%20wanted","name":"help
|
77
|
+
wanted","color":"33aa3f","default":true},{"id":756812057,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/invalid","name":"invalid","color":"e6e6e6","default":true},{"id":756812058,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/question","name":"question","color":"cc317c","default":true},{"id":756812059,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/wontfix","name":"wontfix","color":"ffffff","default":true}]'
|
78
|
+
http_version:
|
79
|
+
recorded_at: Tue, 21 Nov 2017 13:01:10 GMT
|
80
|
+
- request:
|
81
|
+
method: get
|
82
|
+
uri: https://api.github.com/repos/donaldduck/testrepo/milestones
|
83
|
+
body:
|
84
|
+
encoding: US-ASCII
|
85
|
+
string: ''
|
86
|
+
headers:
|
87
|
+
Accept-Encoding:
|
88
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
89
|
+
Accept:
|
90
|
+
- application/vnd.github.v3+json
|
91
|
+
User-Agent:
|
92
|
+
- Ruby
|
93
|
+
Host:
|
94
|
+
- api.github.com
|
95
|
+
Authorization:
|
96
|
+
- Basic <GITHUB_CREDENTIALS>
|
97
|
+
response:
|
98
|
+
status:
|
99
|
+
code: 200
|
100
|
+
message: OK
|
101
|
+
headers:
|
102
|
+
Server:
|
103
|
+
- GitHub.com
|
104
|
+
Date:
|
105
|
+
- Tue, 21 Nov 2017 13:01:10 GMT
|
106
|
+
Content-Type:
|
107
|
+
- application/json; charset=utf-8
|
108
|
+
Transfer-Encoding:
|
109
|
+
- chunked
|
110
|
+
Status:
|
111
|
+
- 200 OK
|
112
|
+
X-Ratelimit-Limit:
|
113
|
+
- '5000'
|
114
|
+
X-Ratelimit-Remaining:
|
115
|
+
- '4992'
|
116
|
+
X-Ratelimit-Reset:
|
117
|
+
- '1511270582'
|
118
|
+
Cache-Control:
|
119
|
+
- private, max-age=60, s-maxage=60
|
120
|
+
Vary:
|
121
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
122
|
+
Etag:
|
123
|
+
- W/"4c0aca4795c0f10d50c8e9de02dd932b"
|
124
|
+
X-Oauth-Scopes:
|
125
|
+
- admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook,
|
126
|
+
delete_repo, gist, notifications, repo, user
|
127
|
+
X-Accepted-Oauth-Scopes:
|
128
|
+
- repo
|
129
|
+
X-Github-Media-Type:
|
130
|
+
- github.v3; format=json
|
131
|
+
Access-Control-Expose-Headers:
|
132
|
+
- ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
133
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
134
|
+
Access-Control-Allow-Origin:
|
135
|
+
- "*"
|
136
|
+
Content-Security-Policy:
|
137
|
+
- default-src 'none'
|
138
|
+
Strict-Transport-Security:
|
139
|
+
- max-age=31536000; includeSubdomains; preload
|
140
|
+
X-Content-Type-Options:
|
141
|
+
- nosniff
|
142
|
+
X-Frame-Options:
|
143
|
+
- deny
|
144
|
+
X-Xss-Protection:
|
145
|
+
- 1; mode=block
|
146
|
+
X-Runtime-Rack:
|
147
|
+
- '0.043929'
|
148
|
+
X-Github-Request-Id:
|
149
|
+
- EA5E:2B89:3D6EFE:9B6F21:5A142395
|
150
|
+
body:
|
151
|
+
encoding: ASCII-8BIT
|
152
|
+
string: '[{"url":"https://api.github.com/repos/donaldduck/testrepo/milestones/1","html_url":"https://github.com/donaldduck/testrepo/milestone/1","labels_url":"https://api.github.com/repos/donaldduck/testrepo/milestones/1/labels","id":2928264,"number":1,"title":"0.0.1","description":"","creator":{"login":"donaldduck","id":1595356,"avatar_url":"https://avatars2.githubusercontent.com/u/1595356?v=4","gravatar_id":"","url":"https://api.github.com/users/donaldduck","html_url":"https://github.com/donaldduck","followers_url":"https://api.github.com/users/donaldduck/followers","following_url":"https://api.github.com/users/donaldduck/following{/other_user}","gists_url":"https://api.github.com/users/donaldduck/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldduck/subscriptions","organizations_url":"https://api.github.com/users/donaldduck/orgs","repos_url":"https://api.github.com/users/donaldduck/repos","events_url":"https://api.github.com/users/donaldduck/events{/privacy}","received_events_url":"https://api.github.com/users/donaldduck/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":0,"state":"open","created_at":"2017-11-21T12:57:28Z","updated_at":"2017-11-21T12:57:28Z","due_on":null,"closed_at":null}]'
|
153
|
+
http_version:
|
154
|
+
recorded_at: Tue, 21 Nov 2017 13:01:10 GMT
|
155
|
+
- request:
|
156
|
+
method: get
|
157
|
+
uri: https://api.github.com/repos/donaldduck/testrepo/collaborators
|
158
|
+
body:
|
159
|
+
encoding: US-ASCII
|
160
|
+
string: ''
|
161
|
+
headers:
|
162
|
+
Accept-Encoding:
|
163
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
164
|
+
Accept:
|
165
|
+
- application/vnd.github.v3+json
|
166
|
+
User-Agent:
|
167
|
+
- Ruby
|
168
|
+
Host:
|
169
|
+
- api.github.com
|
170
|
+
Authorization:
|
171
|
+
- Basic <GITHUB_CREDENTIALS>
|
172
|
+
response:
|
173
|
+
status:
|
174
|
+
code: 200
|
175
|
+
message: OK
|
176
|
+
headers:
|
177
|
+
Server:
|
178
|
+
- GitHub.com
|
179
|
+
Date:
|
180
|
+
- Tue, 21 Nov 2017 13:01:10 GMT
|
181
|
+
Content-Type:
|
182
|
+
- application/json; charset=utf-8
|
183
|
+
Transfer-Encoding:
|
184
|
+
- chunked
|
185
|
+
Status:
|
186
|
+
- 200 OK
|
187
|
+
X-Ratelimit-Limit:
|
188
|
+
- '5000'
|
189
|
+
X-Ratelimit-Remaining:
|
190
|
+
- '4991'
|
191
|
+
X-Ratelimit-Reset:
|
192
|
+
- '1511270582'
|
193
|
+
Cache-Control:
|
194
|
+
- private, max-age=60, s-maxage=60
|
195
|
+
Vary:
|
196
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
197
|
+
Etag:
|
198
|
+
- W/"6fcb0d23c8705eb29f61cfca042f7bd7"
|
199
|
+
X-Oauth-Scopes:
|
200
|
+
- admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook,
|
201
|
+
delete_repo, gist, notifications, repo, user
|
202
|
+
X-Accepted-Oauth-Scopes:
|
203
|
+
- ''
|
204
|
+
X-Github-Media-Type:
|
205
|
+
- github.v3; format=json
|
206
|
+
Access-Control-Expose-Headers:
|
207
|
+
- ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
208
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
209
|
+
Access-Control-Allow-Origin:
|
210
|
+
- "*"
|
211
|
+
Content-Security-Policy:
|
212
|
+
- default-src 'none'
|
213
|
+
Strict-Transport-Security:
|
214
|
+
- max-age=31536000; includeSubdomains; preload
|
215
|
+
X-Content-Type-Options:
|
216
|
+
- nosniff
|
217
|
+
X-Frame-Options:
|
218
|
+
- deny
|
219
|
+
X-Xss-Protection:
|
220
|
+
- 1; mode=block
|
221
|
+
X-Runtime-Rack:
|
222
|
+
- '0.040870'
|
223
|
+
X-Github-Request-Id:
|
224
|
+
- C482:2B89:3D6F00:9B6F24:5A142395
|
225
|
+
body:
|
226
|
+
encoding: ASCII-8BIT
|
227
|
+
string: '[{"login":"donaldduck","id":1595356,"avatar_url":"https://avatars2.githubusercontent.com/u/1595356?v=4","gravatar_id":"","url":"https://api.github.com/users/donaldduck","html_url":"https://github.com/donaldduck","followers_url":"https://api.github.com/users/donaldduck/followers","following_url":"https://api.github.com/users/donaldduck/following{/other_user}","gists_url":"https://api.github.com/users/donaldduck/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldduck/subscriptions","organizations_url":"https://api.github.com/users/donaldduck/orgs","repos_url":"https://api.github.com/users/donaldduck/repos","events_url":"https://api.github.com/users/donaldduck/events{/privacy}","received_events_url":"https://api.github.com/users/donaldduck/received_events","type":"User","site_admin":false,"permissions":{"admin":true,"push":true,"pull":true}},{"login":"donald-ts","id":33847392,"avatar_url":"https://avatars1.githubusercontent.com/u/33847392?v=4","gravatar_id":"","url":"https://api.github.com/users/donald-ts","html_url":"https://github.com/donald-ts","followers_url":"https://api.github.com/users/donald-ts/followers","following_url":"https://api.github.com/users/donald-ts/following{/other_user}","gists_url":"https://api.github.com/users/donald-ts/gists{/gist_id}","starred_url":"https://api.github.com/users/donald-ts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donald-ts/subscriptions","organizations_url":"https://api.github.com/users/donald-ts/orgs","repos_url":"https://api.github.com/users/donald-ts/repos","events_url":"https://api.github.com/users/donald-ts/events{/privacy}","received_events_url":"https://api.github.com/users/donald-ts/received_events","type":"User","site_admin":false,"permissions":{"admin":false,"push":true,"pull":true}},{"login":"donald-fr","id":33847412,"avatar_url":"https://avatars2.githubusercontent.com/u/33847412?v=4","gravatar_id":"","url":"https://api.github.com/users/donald-fr","html_url":"https://github.com/donald-fr","followers_url":"https://api.github.com/users/donald-fr/followers","following_url":"https://api.github.com/users/donald-fr/following{/other_user}","gists_url":"https://api.github.com/users/donald-fr/gists{/gist_id}","starred_url":"https://api.github.com/users/donald-fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donald-fr/subscriptions","organizations_url":"https://api.github.com/users/donald-fr/orgs","repos_url":"https://api.github.com/users/donald-fr/repos","events_url":"https://api.github.com/users/donald-fr/events{/privacy}","received_events_url":"https://api.github.com/users/donald-fr/received_events","type":"User","site_admin":false,"permissions":{"admin":false,"push":true,"pull":true}}]'
|
228
|
+
http_version:
|
229
|
+
recorded_at: Tue, 21 Nov 2017 13:01:10 GMT
|
230
|
+
- request:
|
231
|
+
method: post
|
232
|
+
uri: https://api.github.com/repos/donaldduck/testrepo/issues
|
233
|
+
body:
|
234
|
+
encoding: UTF-8
|
235
|
+
string: '{"title":"Title","body":"Description","base":"master"}'
|
236
|
+
headers:
|
237
|
+
Accept-Encoding:
|
238
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
239
|
+
Accept:
|
240
|
+
- application/vnd.github.v3+json
|
241
|
+
User-Agent:
|
242
|
+
- Ruby
|
243
|
+
Host:
|
244
|
+
- api.github.com
|
245
|
+
Authorization:
|
246
|
+
- Basic <GITHUB_CREDENTIALS>
|
247
|
+
response:
|
248
|
+
status:
|
249
|
+
code: 201
|
250
|
+
message: Created
|
251
|
+
headers:
|
252
|
+
Server:
|
253
|
+
- GitHub.com
|
254
|
+
Date:
|
255
|
+
- Tue, 21 Nov 2017 13:01:11 GMT
|
256
|
+
Content-Type:
|
257
|
+
- application/json; charset=utf-8
|
258
|
+
Content-Length:
|
259
|
+
- '1725'
|
260
|
+
Status:
|
261
|
+
- 201 Created
|
262
|
+
X-Ratelimit-Limit:
|
263
|
+
- '5000'
|
264
|
+
X-Ratelimit-Remaining:
|
265
|
+
- '4990'
|
266
|
+
X-Ratelimit-Reset:
|
267
|
+
- '1511270582'
|
268
|
+
Cache-Control:
|
269
|
+
- private, max-age=60, s-maxage=60
|
270
|
+
Vary:
|
271
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
272
|
+
Etag:
|
273
|
+
- '"dd797c05a8ae748ced478110ed4b64cb"'
|
274
|
+
X-Oauth-Scopes:
|
275
|
+
- admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook,
|
276
|
+
delete_repo, gist, notifications, repo, user
|
277
|
+
X-Accepted-Oauth-Scopes:
|
278
|
+
- ''
|
279
|
+
Location:
|
280
|
+
- https://api.github.com/repos/donaldduck/testrepo/issues/1
|
281
|
+
X-Github-Media-Type:
|
282
|
+
- github.v3; format=json
|
283
|
+
Access-Control-Expose-Headers:
|
284
|
+
- ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
285
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
286
|
+
Access-Control-Allow-Origin:
|
287
|
+
- "*"
|
288
|
+
Content-Security-Policy:
|
289
|
+
- default-src 'none'
|
290
|
+
Strict-Transport-Security:
|
291
|
+
- max-age=31536000; includeSubdomains; preload
|
292
|
+
X-Content-Type-Options:
|
293
|
+
- nosniff
|
294
|
+
X-Frame-Options:
|
295
|
+
- deny
|
296
|
+
X-Xss-Protection:
|
297
|
+
- 1; mode=block
|
298
|
+
X-Runtime-Rack:
|
299
|
+
- '0.168850'
|
300
|
+
X-Github-Request-Id:
|
301
|
+
- C484:2B83:440AD1:8C8133:5A142396
|
302
|
+
body:
|
303
|
+
encoding: UTF-8
|
304
|
+
string: '{"url":"https://api.github.com/repos/donaldduck/testrepo/issues/1","repository_url":"https://api.github.com/repos/donaldduck/testrepo","labels_url":"https://api.github.com/repos/donaldduck/testrepo/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/donaldduck/testrepo/issues/1/comments","events_url":"https://api.github.com/repos/donaldduck/testrepo/issues/1/events","html_url":"https://github.com/donaldduck/testrepo/issues/1","id":275703697,"number":1,"title":"Title","user":{"login":"donaldduck","id":1595356,"avatar_url":"https://avatars2.githubusercontent.com/u/1595356?v=4","gravatar_id":"","url":"https://api.github.com/users/donaldduck","html_url":"https://github.com/donaldduck","followers_url":"https://api.github.com/users/donaldduck/followers","following_url":"https://api.github.com/users/donaldduck/following{/other_user}","gists_url":"https://api.github.com/users/donaldduck/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldduck/subscriptions","organizations_url":"https://api.github.com/users/donaldduck/orgs","repos_url":"https://api.github.com/users/donaldduck/repos","events_url":"https://api.github.com/users/donaldduck/events{/privacy}","received_events_url":"https://api.github.com/users/donaldduck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-21T13:01:11Z","updated_at":"2017-11-21T13:01:11Z","closed_at":null,"author_association":"OWNER","body":"Description","closed_by":null}'
|
305
|
+
http_version:
|
306
|
+
recorded_at: Tue, 21 Nov 2017 13:01:11 GMT
|
307
|
+
- request:
|
308
|
+
method: post
|
309
|
+
uri: https://api.github.com/repos/donaldduck/testrepo/issues/1/labels
|
310
|
+
body:
|
311
|
+
encoding: UTF-8
|
312
|
+
string: '["bug","invalid"]'
|
313
|
+
headers:
|
314
|
+
Accept-Encoding:
|
315
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
316
|
+
Accept:
|
317
|
+
- application/vnd.github.v3+json
|
318
|
+
User-Agent:
|
319
|
+
- Ruby
|
320
|
+
Host:
|
321
|
+
- api.github.com
|
322
|
+
Authorization:
|
323
|
+
- Basic <GITHUB_CREDENTIALS>
|
324
|
+
response:
|
325
|
+
status:
|
326
|
+
code: 200
|
327
|
+
message: OK
|
328
|
+
headers:
|
329
|
+
Server:
|
330
|
+
- GitHub.com
|
331
|
+
Date:
|
332
|
+
- Tue, 21 Nov 2017 13:01:11 GMT
|
333
|
+
Content-Type:
|
334
|
+
- application/json; charset=utf-8
|
335
|
+
Transfer-Encoding:
|
336
|
+
- chunked
|
337
|
+
Status:
|
338
|
+
- 200 OK
|
339
|
+
X-Ratelimit-Limit:
|
340
|
+
- '5000'
|
341
|
+
X-Ratelimit-Remaining:
|
342
|
+
- '4989'
|
343
|
+
X-Ratelimit-Reset:
|
344
|
+
- '1511270582'
|
345
|
+
Cache-Control:
|
346
|
+
- private, max-age=60, s-maxage=60
|
347
|
+
Vary:
|
348
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
349
|
+
Etag:
|
350
|
+
- W/"d8530a9f6c6d8fcfd9a2625a81eb50e2"
|
351
|
+
X-Oauth-Scopes:
|
352
|
+
- admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook,
|
353
|
+
delete_repo, gist, notifications, repo, user
|
354
|
+
X-Accepted-Oauth-Scopes:
|
355
|
+
- ''
|
356
|
+
X-Github-Media-Type:
|
357
|
+
- github.v3; format=json
|
358
|
+
Access-Control-Expose-Headers:
|
359
|
+
- ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
360
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
361
|
+
Access-Control-Allow-Origin:
|
362
|
+
- "*"
|
363
|
+
Content-Security-Policy:
|
364
|
+
- default-src 'none'
|
365
|
+
Strict-Transport-Security:
|
366
|
+
- max-age=31536000; includeSubdomains; preload
|
367
|
+
X-Content-Type-Options:
|
368
|
+
- nosniff
|
369
|
+
X-Frame-Options:
|
370
|
+
- deny
|
371
|
+
X-Xss-Protection:
|
372
|
+
- 1; mode=block
|
373
|
+
X-Runtime-Rack:
|
374
|
+
- '0.122645'
|
375
|
+
X-Github-Request-Id:
|
376
|
+
- C48A:2B83:440B23:8C81F8:5A142397
|
377
|
+
body:
|
378
|
+
encoding: ASCII-8BIT
|
379
|
+
string: '[{"id":756812052,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/bug","name":"bug","color":"ee0701","default":true},{"id":756812057,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/invalid","name":"invalid","color":"e6e6e6","default":true}]'
|
380
|
+
http_version:
|
381
|
+
recorded_at: Tue, 21 Nov 2017 13:01:11 GMT
|
382
|
+
- request:
|
383
|
+
method: patch
|
384
|
+
uri: https://api.github.com/repos/donaldduck/testrepo/issues/1
|
385
|
+
body:
|
386
|
+
encoding: UTF-8
|
387
|
+
string: '{"milestone":1}'
|
388
|
+
headers:
|
389
|
+
Accept-Encoding:
|
390
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
391
|
+
Accept:
|
392
|
+
- application/vnd.github.v3+json
|
393
|
+
User-Agent:
|
394
|
+
- Ruby
|
395
|
+
Host:
|
396
|
+
- api.github.com
|
397
|
+
Authorization:
|
398
|
+
- Basic <GITHUB_CREDENTIALS>
|
399
|
+
response:
|
400
|
+
status:
|
401
|
+
code: 200
|
402
|
+
message: OK
|
403
|
+
headers:
|
404
|
+
Server:
|
405
|
+
- GitHub.com
|
406
|
+
Date:
|
407
|
+
- Tue, 21 Nov 2017 13:01:11 GMT
|
408
|
+
Content-Type:
|
409
|
+
- application/json; charset=utf-8
|
410
|
+
Transfer-Encoding:
|
411
|
+
- chunked
|
412
|
+
Status:
|
413
|
+
- 200 OK
|
414
|
+
X-Ratelimit-Limit:
|
415
|
+
- '5000'
|
416
|
+
X-Ratelimit-Remaining:
|
417
|
+
- '4988'
|
418
|
+
X-Ratelimit-Reset:
|
419
|
+
- '1511270582'
|
420
|
+
Cache-Control:
|
421
|
+
- private, max-age=60, s-maxage=60
|
422
|
+
Vary:
|
423
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
424
|
+
Etag:
|
425
|
+
- W/"ed9a6a430ec2e7f3fac9ac2b08700716"
|
426
|
+
X-Oauth-Scopes:
|
427
|
+
- admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook,
|
428
|
+
delete_repo, gist, notifications, repo, user
|
429
|
+
X-Accepted-Oauth-Scopes:
|
430
|
+
- ''
|
431
|
+
X-Github-Media-Type:
|
432
|
+
- github.v3; format=json
|
433
|
+
Access-Control-Expose-Headers:
|
434
|
+
- ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
435
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
436
|
+
Access-Control-Allow-Origin:
|
437
|
+
- "*"
|
438
|
+
Content-Security-Policy:
|
439
|
+
- default-src 'none'
|
440
|
+
Strict-Transport-Security:
|
441
|
+
- max-age=31536000; includeSubdomains; preload
|
442
|
+
X-Content-Type-Options:
|
443
|
+
- nosniff
|
444
|
+
X-Frame-Options:
|
445
|
+
- deny
|
446
|
+
X-Xss-Protection:
|
447
|
+
- 1; mode=block
|
448
|
+
X-Runtime-Rack:
|
449
|
+
- '0.157004'
|
450
|
+
X-Github-Request-Id:
|
451
|
+
- C488:2B89:3D6FDE:9B711E:5A142397
|
452
|
+
body:
|
453
|
+
encoding: ASCII-8BIT
|
454
|
+
string: '{"url":"https://api.github.com/repos/donaldduck/testrepo/issues/1","repository_url":"https://api.github.com/repos/donaldduck/testrepo","labels_url":"https://api.github.com/repos/donaldduck/testrepo/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/donaldduck/testrepo/issues/1/comments","events_url":"https://api.github.com/repos/donaldduck/testrepo/issues/1/events","html_url":"https://github.com/donaldduck/testrepo/issues/1","id":275703697,"number":1,"title":"Title","user":{"login":"donaldduck","id":1595356,"avatar_url":"https://avatars2.githubusercontent.com/u/1595356?v=4","gravatar_id":"","url":"https://api.github.com/users/donaldduck","html_url":"https://github.com/donaldduck","followers_url":"https://api.github.com/users/donaldduck/followers","following_url":"https://api.github.com/users/donaldduck/following{/other_user}","gists_url":"https://api.github.com/users/donaldduck/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldduck/subscriptions","organizations_url":"https://api.github.com/users/donaldduck/orgs","repos_url":"https://api.github.com/users/donaldduck/repos","events_url":"https://api.github.com/users/donaldduck/events{/privacy}","received_events_url":"https://api.github.com/users/donaldduck/received_events","type":"User","site_admin":false},"labels":[{"id":756812052,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/bug","name":"bug","color":"ee0701","default":true},{"id":756812057,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/invalid","name":"invalid","color":"e6e6e6","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/donaldduck/testrepo/milestones/1","html_url":"https://github.com/donaldduck/testrepo/milestone/1","labels_url":"https://api.github.com/repos/donaldduck/testrepo/milestones/1/labels","id":2928264,"number":1,"title":"0.0.1","description":"","creator":{"login":"donaldduck","id":1595356,"avatar_url":"https://avatars2.githubusercontent.com/u/1595356?v=4","gravatar_id":"","url":"https://api.github.com/users/donaldduck","html_url":"https://github.com/donaldduck","followers_url":"https://api.github.com/users/donaldduck/followers","following_url":"https://api.github.com/users/donaldduck/following{/other_user}","gists_url":"https://api.github.com/users/donaldduck/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldduck/subscriptions","organizations_url":"https://api.github.com/users/donaldduck/orgs","repos_url":"https://api.github.com/users/donaldduck/repos","events_url":"https://api.github.com/users/donaldduck/events{/privacy}","received_events_url":"https://api.github.com/users/donaldduck/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2017-11-21T12:57:28Z","updated_at":"2017-11-21T13:01:11Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-11-21T13:01:11Z","updated_at":"2017-11-21T13:01:11Z","closed_at":null,"author_association":"OWNER","body":"Description","closed_by":null}'
|
455
|
+
http_version:
|
456
|
+
recorded_at: Tue, 21 Nov 2017 13:01:11 GMT
|
457
|
+
- request:
|
458
|
+
method: post
|
459
|
+
uri: https://api.github.com/repos/donaldduck/testrepo/issues/1/assignees
|
460
|
+
body:
|
461
|
+
encoding: UTF-8
|
462
|
+
string: '{"assignees":["donald-ts","donald-fr"]}'
|
463
|
+
headers:
|
464
|
+
Accept-Encoding:
|
465
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
466
|
+
Accept:
|
467
|
+
- application/vnd.github.v3+json
|
468
|
+
User-Agent:
|
469
|
+
- Ruby
|
470
|
+
Host:
|
471
|
+
- api.github.com
|
472
|
+
Authorization:
|
473
|
+
- Basic <GITHUB_CREDENTIALS>
|
474
|
+
response:
|
475
|
+
status:
|
476
|
+
code: 201
|
477
|
+
message: Created
|
478
|
+
headers:
|
479
|
+
Server:
|
480
|
+
- GitHub.com
|
481
|
+
Date:
|
482
|
+
- Tue, 21 Nov 2017 13:01:12 GMT
|
483
|
+
Content-Type:
|
484
|
+
- application/json; charset=utf-8
|
485
|
+
Content-Length:
|
486
|
+
- '6069'
|
487
|
+
Status:
|
488
|
+
- 201 Created
|
489
|
+
X-Ratelimit-Limit:
|
490
|
+
- '5000'
|
491
|
+
X-Ratelimit-Remaining:
|
492
|
+
- '4987'
|
493
|
+
X-Ratelimit-Reset:
|
494
|
+
- '1511270582'
|
495
|
+
Cache-Control:
|
496
|
+
- private, max-age=60, s-maxage=60
|
497
|
+
Vary:
|
498
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
499
|
+
Etag:
|
500
|
+
- '"3360dc185e2f32529bdf03f3621c4578"'
|
501
|
+
X-Oauth-Scopes:
|
502
|
+
- admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook,
|
503
|
+
delete_repo, gist, notifications, repo, user
|
504
|
+
X-Accepted-Oauth-Scopes:
|
505
|
+
- ''
|
506
|
+
Location:
|
507
|
+
- https://api.github.com/repos/donaldduck/testrepo/issues/1
|
508
|
+
X-Github-Media-Type:
|
509
|
+
- github.v3; format=json
|
510
|
+
Access-Control-Expose-Headers:
|
511
|
+
- ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
512
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
513
|
+
Access-Control-Allow-Origin:
|
514
|
+
- "*"
|
515
|
+
Content-Security-Policy:
|
516
|
+
- default-src 'none'
|
517
|
+
Strict-Transport-Security:
|
518
|
+
- max-age=31536000; includeSubdomains; preload
|
519
|
+
X-Content-Type-Options:
|
520
|
+
- nosniff
|
521
|
+
X-Frame-Options:
|
522
|
+
- deny
|
523
|
+
X-Xss-Protection:
|
524
|
+
- 1; mode=block
|
525
|
+
X-Runtime-Rack:
|
526
|
+
- '0.239418'
|
527
|
+
X-Github-Request-Id:
|
528
|
+
- C486:2B89:3D6FDE:9B711C:5A142397
|
529
|
+
body:
|
530
|
+
encoding: UTF-8
|
531
|
+
string: '{"url":"https://api.github.com/repos/donaldduck/testrepo/issues/1","repository_url":"https://api.github.com/repos/donaldduck/testrepo","labels_url":"https://api.github.com/repos/donaldduck/testrepo/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/donaldduck/testrepo/issues/1/comments","events_url":"https://api.github.com/repos/donaldduck/testrepo/issues/1/events","html_url":"https://github.com/donaldduck/testrepo/issues/1","id":275703697,"number":1,"title":"Title","user":{"login":"donaldduck","id":1595356,"avatar_url":"https://avatars2.githubusercontent.com/u/1595356?v=4","gravatar_id":"","url":"https://api.github.com/users/donaldduck","html_url":"https://github.com/donaldduck","followers_url":"https://api.github.com/users/donaldduck/followers","following_url":"https://api.github.com/users/donaldduck/following{/other_user}","gists_url":"https://api.github.com/users/donaldduck/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldduck/subscriptions","organizations_url":"https://api.github.com/users/donaldduck/orgs","repos_url":"https://api.github.com/users/donaldduck/repos","events_url":"https://api.github.com/users/donaldduck/events{/privacy}","received_events_url":"https://api.github.com/users/donaldduck/received_events","type":"User","site_admin":false},"labels":[{"id":756812052,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/bug","name":"bug","color":"ee0701","default":true},{"id":756812057,"url":"https://api.github.com/repos/donaldduck/testrepo/labels/invalid","name":"invalid","color":"e6e6e6","default":true}],"state":"open","locked":false,"assignee":{"login":"donald-fr","id":33847412,"avatar_url":"https://avatars2.githubusercontent.com/u/33847412?v=4","gravatar_id":"","url":"https://api.github.com/users/donald-fr","html_url":"https://github.com/donald-fr","followers_url":"https://api.github.com/users/donald-fr/followers","following_url":"https://api.github.com/users/donald-fr/following{/other_user}","gists_url":"https://api.github.com/users/donald-fr/gists{/gist_id}","starred_url":"https://api.github.com/users/donald-fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donald-fr/subscriptions","organizations_url":"https://api.github.com/users/donald-fr/orgs","repos_url":"https://api.github.com/users/donald-fr/repos","events_url":"https://api.github.com/users/donald-fr/events{/privacy}","received_events_url":"https://api.github.com/users/donald-fr/received_events","type":"User","site_admin":false},"assignees":[{"login":"donald-fr","id":33847412,"avatar_url":"https://avatars2.githubusercontent.com/u/33847412?v=4","gravatar_id":"","url":"https://api.github.com/users/donald-fr","html_url":"https://github.com/donald-fr","followers_url":"https://api.github.com/users/donald-fr/followers","following_url":"https://api.github.com/users/donald-fr/following{/other_user}","gists_url":"https://api.github.com/users/donald-fr/gists{/gist_id}","starred_url":"https://api.github.com/users/donald-fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donald-fr/subscriptions","organizations_url":"https://api.github.com/users/donald-fr/orgs","repos_url":"https://api.github.com/users/donald-fr/repos","events_url":"https://api.github.com/users/donald-fr/events{/privacy}","received_events_url":"https://api.github.com/users/donald-fr/received_events","type":"User","site_admin":false},{"login":"donald-ts","id":33847392,"avatar_url":"https://avatars1.githubusercontent.com/u/33847392?v=4","gravatar_id":"","url":"https://api.github.com/users/donald-ts","html_url":"https://github.com/donald-ts","followers_url":"https://api.github.com/users/donald-ts/followers","following_url":"https://api.github.com/users/donald-ts/following{/other_user}","gists_url":"https://api.github.com/users/donald-ts/gists{/gist_id}","starred_url":"https://api.github.com/users/donald-ts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donald-ts/subscriptions","organizations_url":"https://api.github.com/users/donald-ts/orgs","repos_url":"https://api.github.com/users/donald-ts/repos","events_url":"https://api.github.com/users/donald-ts/events{/privacy}","received_events_url":"https://api.github.com/users/donald-ts/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/donaldduck/testrepo/milestones/1","html_url":"https://github.com/donaldduck/testrepo/milestone/1","labels_url":"https://api.github.com/repos/donaldduck/testrepo/milestones/1/labels","id":2928264,"number":1,"title":"0.0.1","description":"","creator":{"login":"donaldduck","id":1595356,"avatar_url":"https://avatars2.githubusercontent.com/u/1595356?v=4","gravatar_id":"","url":"https://api.github.com/users/donaldduck","html_url":"https://github.com/donaldduck","followers_url":"https://api.github.com/users/donaldduck/followers","following_url":"https://api.github.com/users/donaldduck/following{/other_user}","gists_url":"https://api.github.com/users/donaldduck/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldduck/subscriptions","organizations_url":"https://api.github.com/users/donaldduck/orgs","repos_url":"https://api.github.com/users/donaldduck/repos","events_url":"https://api.github.com/users/donaldduck/events{/privacy}","received_events_url":"https://api.github.com/users/donaldduck/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2017-11-21T12:57:28Z","updated_at":"2017-11-21T13:01:11Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-11-21T13:01:11Z","updated_at":"2017-11-21T13:01:11Z","closed_at":null,"author_association":"OWNER","body":"Description"}'
|
532
|
+
http_version:
|
533
|
+
recorded_at: Tue, 21 Nov 2017 13:01:12 GMT
|
534
|
+
recorded_with: VCR 3.0.3
|