geet 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/geet +8 -8
- data/geet.gemspec +1 -1
- data/lib/geet/commandline/editor.rb +1 -1
- data/lib/geet/github/api_interface.rb +3 -2
- data/lib/geet/github/user.rb +62 -3
- data/lib/geet/services/create_gist.rb +3 -3
- data/lib/geet/services/create_issue.rb +17 -2
- data/lib/geet/services/create_pr.rb +13 -2
- data/lib/geet/services/list_milestones.rb +1 -1
- data/lib/geet/shared/http_error.rb +13 -0
- data/lib/geet/shared/repo_permissions.rb +25 -0
- data/lib/geet/shared/{constants.rb → selection.rb} +1 -1
- data/lib/geet/utils/attributes_selection_manager.rb +2 -2
- data/lib/geet/utils/git_client.rb +2 -2
- data/lib/geet/version.rb +1 -1
- data/spec/integration/create_issue_spec.rb +28 -24
- data/spec/integration/create_pr_spec.rb +67 -30
- data/spec/vcr_cassettes/create_issue.yml +446 -70
- data/spec/vcr_cassettes/create_issue_upstream.yml +158 -11
- data/spec/vcr_cassettes/create_pr.yml +474 -103
- data/spec/vcr_cassettes/create_pr_in_auto_mode_create_upstream.yml +407 -31
- data/spec/vcr_cassettes/create_pr_in_auto_mode_with_push.yml +408 -32
- data/spec/vcr_cassettes/create_pr_upstream.yml +415 -39
- data/spec/vcr_cassettes/create_pr_upstream_without_write_permissions.yml +305 -0
- metadata +6 -3
@@ -0,0 +1,305 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.github.com/user
|
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
|
+
- Mon, 05 Feb 2018 21:58:37 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
|
+
- '4997'
|
39
|
+
X-Ratelimit-Reset:
|
40
|
+
- '1517871079'
|
41
|
+
Cache-Control:
|
42
|
+
- private, max-age=60, s-maxage=60
|
43
|
+
Vary:
|
44
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
45
|
+
Etag:
|
46
|
+
- W/"867a7455cae6fa03110405ae3f4f8ffe"
|
47
|
+
Last-Modified:
|
48
|
+
- Tue, 30 Jan 2018 20:56:34 GMT
|
49
|
+
X-Oauth-Scopes:
|
50
|
+
- admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook,
|
51
|
+
delete_repo, gist, notifications, repo, user
|
52
|
+
X-Accepted-Oauth-Scopes:
|
53
|
+
- ''
|
54
|
+
X-Github-Media-Type:
|
55
|
+
- github.v3; format=json
|
56
|
+
Access-Control-Expose-Headers:
|
57
|
+
- ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
58
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
59
|
+
Access-Control-Allow-Origin:
|
60
|
+
- "*"
|
61
|
+
Content-Security-Policy:
|
62
|
+
- default-src 'none'
|
63
|
+
Strict-Transport-Security:
|
64
|
+
- max-age=31536000; includeSubdomains; preload
|
65
|
+
X-Content-Type-Options:
|
66
|
+
- nosniff
|
67
|
+
X-Frame-Options:
|
68
|
+
- deny
|
69
|
+
X-Xss-Protection:
|
70
|
+
- 1; mode=block
|
71
|
+
X-Runtime-Rack:
|
72
|
+
- '0.055159'
|
73
|
+
X-Github-Request-Id:
|
74
|
+
- B27C:14EC:2FD8ADD:666FCAC:5A78D38D
|
75
|
+
body:
|
76
|
+
encoding: ASCII-8BIT
|
77
|
+
string: '{"login":"donaldduck","id":1234566,"avatar_url":"https://avatars2.githubusercontent.com/u/123456?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,"name":"Donald
|
78
|
+
Duck","company":"@momcorp","blog":"","location":"Berlin","email":"donald.pub2@gmail.com","hireable":true,"bio":null,"public_repos":19,"public_gists":0,"followers":9,"following":0,"created_at":"2012-04-01T11:52:16Z","updated_at":"2018-01-30T20:56:34Z","private_gists":0,"total_private_repos":0,"owned_private_repos":0,"disk_usage":32597,"collaborators":0,"two_factor_authentication":true,"plan":{"name":"free","space":976562499,"collaborators":0,"private_repos":0}}'
|
79
|
+
http_version:
|
80
|
+
recorded_at: Mon, 05 Feb 2018 21:58:37 GMT
|
81
|
+
- request:
|
82
|
+
method: get
|
83
|
+
uri: https://api.github.com/repos/donald-fr/testrepo_u/collaborators/donaldduck
|
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
|
+
- application/vnd.github.v3+json
|
92
|
+
User-Agent:
|
93
|
+
- Ruby
|
94
|
+
Host:
|
95
|
+
- api.github.com
|
96
|
+
Authorization:
|
97
|
+
- Basic <GITHUB_CREDENTIALS>
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 403
|
101
|
+
message: Forbidden
|
102
|
+
headers:
|
103
|
+
Server:
|
104
|
+
- GitHub.com
|
105
|
+
Date:
|
106
|
+
- Mon, 05 Feb 2018 21:58:38 GMT
|
107
|
+
Content-Type:
|
108
|
+
- application/json; charset=utf-8
|
109
|
+
Transfer-Encoding:
|
110
|
+
- chunked
|
111
|
+
Status:
|
112
|
+
- 403 Forbidden
|
113
|
+
X-Ratelimit-Limit:
|
114
|
+
- '5000'
|
115
|
+
X-Ratelimit-Remaining:
|
116
|
+
- '4996'
|
117
|
+
X-Ratelimit-Reset:
|
118
|
+
- '1517871079'
|
119
|
+
X-Oauth-Scopes:
|
120
|
+
- admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook,
|
121
|
+
delete_repo, gist, notifications, repo, user
|
122
|
+
X-Accepted-Oauth-Scopes:
|
123
|
+
- ''
|
124
|
+
X-Github-Media-Type:
|
125
|
+
- github.v3; format=json
|
126
|
+
Access-Control-Expose-Headers:
|
127
|
+
- ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
128
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
129
|
+
Access-Control-Allow-Origin:
|
130
|
+
- "*"
|
131
|
+
Content-Security-Policy:
|
132
|
+
- default-src 'none'
|
133
|
+
Strict-Transport-Security:
|
134
|
+
- max-age=31536000; includeSubdomains; preload
|
135
|
+
X-Content-Type-Options:
|
136
|
+
- nosniff
|
137
|
+
X-Frame-Options:
|
138
|
+
- deny
|
139
|
+
X-Xss-Protection:
|
140
|
+
- 1; mode=block
|
141
|
+
X-Runtime-Rack:
|
142
|
+
- '0.034945'
|
143
|
+
X-Github-Request-Id:
|
144
|
+
- E83C:14EC:2FD8B22:666FD26:5A78D38E
|
145
|
+
body:
|
146
|
+
encoding: ASCII-8BIT
|
147
|
+
string: '{"message":"Must have push access to view repository collaborators.","documentation_url":"https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator"}'
|
148
|
+
http_version:
|
149
|
+
recorded_at: Mon, 05 Feb 2018 21:58:38 GMT
|
150
|
+
- request:
|
151
|
+
method: get
|
152
|
+
uri: https://api.github.com/user
|
153
|
+
body:
|
154
|
+
encoding: US-ASCII
|
155
|
+
string: ''
|
156
|
+
headers:
|
157
|
+
Accept-Encoding:
|
158
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
159
|
+
Accept:
|
160
|
+
- application/vnd.github.v3+json
|
161
|
+
User-Agent:
|
162
|
+
- Ruby
|
163
|
+
Host:
|
164
|
+
- api.github.com
|
165
|
+
Authorization:
|
166
|
+
- Basic <GITHUB_CREDENTIALS>
|
167
|
+
response:
|
168
|
+
status:
|
169
|
+
code: 200
|
170
|
+
message: OK
|
171
|
+
headers:
|
172
|
+
Server:
|
173
|
+
- GitHub.com
|
174
|
+
Date:
|
175
|
+
- Mon, 05 Feb 2018 21:58:39 GMT
|
176
|
+
Content-Type:
|
177
|
+
- application/json; charset=utf-8
|
178
|
+
Transfer-Encoding:
|
179
|
+
- chunked
|
180
|
+
Status:
|
181
|
+
- 200 OK
|
182
|
+
X-Ratelimit-Limit:
|
183
|
+
- '5000'
|
184
|
+
X-Ratelimit-Remaining:
|
185
|
+
- '4995'
|
186
|
+
X-Ratelimit-Reset:
|
187
|
+
- '1517871079'
|
188
|
+
Cache-Control:
|
189
|
+
- private, max-age=60, s-maxage=60
|
190
|
+
Vary:
|
191
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
192
|
+
Etag:
|
193
|
+
- W/"867a7455cae6fa03110405ae3f4f8ffe"
|
194
|
+
Last-Modified:
|
195
|
+
- Tue, 30 Jan 2018 20:56:34 GMT
|
196
|
+
X-Oauth-Scopes:
|
197
|
+
- admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook,
|
198
|
+
delete_repo, gist, notifications, repo, user
|
199
|
+
X-Accepted-Oauth-Scopes:
|
200
|
+
- ''
|
201
|
+
X-Github-Media-Type:
|
202
|
+
- github.v3; format=json
|
203
|
+
Access-Control-Expose-Headers:
|
204
|
+
- ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
205
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
206
|
+
Access-Control-Allow-Origin:
|
207
|
+
- "*"
|
208
|
+
Content-Security-Policy:
|
209
|
+
- default-src 'none'
|
210
|
+
Strict-Transport-Security:
|
211
|
+
- max-age=31536000; includeSubdomains; preload
|
212
|
+
X-Content-Type-Options:
|
213
|
+
- nosniff
|
214
|
+
X-Frame-Options:
|
215
|
+
- deny
|
216
|
+
X-Xss-Protection:
|
217
|
+
- 1; mode=block
|
218
|
+
X-Runtime-Rack:
|
219
|
+
- '0.045286'
|
220
|
+
X-Github-Request-Id:
|
221
|
+
- E83E:14EE:376B7E1:85DAA3A:5A78D38E
|
222
|
+
body:
|
223
|
+
encoding: ASCII-8BIT
|
224
|
+
string: '{"login":"donaldduck","id":1234566,"avatar_url":"https://avatars2.githubusercontent.com/u/123456?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,"name":"Donald
|
225
|
+
Duck","company":"@momcorp","blog":"","location":"Berlin","email":"donald.pub2@gmail.com","hireable":true,"bio":null,"public_repos":19,"public_gists":0,"followers":9,"following":0,"created_at":"2012-04-01T11:52:16Z","updated_at":"2018-01-30T20:56:34Z","private_gists":0,"total_private_repos":0,"owned_private_repos":0,"disk_usage":32597,"collaborators":0,"two_factor_authentication":true,"plan":{"name":"free","space":976562499,"collaborators":0,"private_repos":0}}'
|
226
|
+
http_version:
|
227
|
+
recorded_at: Mon, 05 Feb 2018 21:58:39 GMT
|
228
|
+
- request:
|
229
|
+
method: post
|
230
|
+
uri: https://api.github.com/repos/donald-fr/testrepo_u/pulls
|
231
|
+
body:
|
232
|
+
encoding: UTF-8
|
233
|
+
string: '{"title":"Title","body":"Description","head":"donaldduck:mybranch","base":"master"}'
|
234
|
+
headers:
|
235
|
+
Accept-Encoding:
|
236
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
237
|
+
Accept:
|
238
|
+
- application/vnd.github.v3+json
|
239
|
+
User-Agent:
|
240
|
+
- Ruby
|
241
|
+
Host:
|
242
|
+
- api.github.com
|
243
|
+
Authorization:
|
244
|
+
- Basic <GITHUB_CREDENTIALS>
|
245
|
+
response:
|
246
|
+
status:
|
247
|
+
code: 201
|
248
|
+
message: Created
|
249
|
+
headers:
|
250
|
+
Server:
|
251
|
+
- GitHub.com
|
252
|
+
Date:
|
253
|
+
- Mon, 05 Feb 2018 21:58:40 GMT
|
254
|
+
Content-Type:
|
255
|
+
- application/json; charset=utf-8
|
256
|
+
Content-Length:
|
257
|
+
- '14982'
|
258
|
+
Status:
|
259
|
+
- 201 Created
|
260
|
+
X-Ratelimit-Limit:
|
261
|
+
- '5000'
|
262
|
+
X-Ratelimit-Remaining:
|
263
|
+
- '4994'
|
264
|
+
X-Ratelimit-Reset:
|
265
|
+
- '1517871079'
|
266
|
+
Cache-Control:
|
267
|
+
- private, max-age=60, s-maxage=60
|
268
|
+
Vary:
|
269
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
270
|
+
Etag:
|
271
|
+
- '"fb172e851ffed3661b237056ea195e60"'
|
272
|
+
X-Oauth-Scopes:
|
273
|
+
- admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook,
|
274
|
+
delete_repo, gist, notifications, repo, user
|
275
|
+
X-Accepted-Oauth-Scopes:
|
276
|
+
- ''
|
277
|
+
Location:
|
278
|
+
- https://api.github.com/repos/donald-fr/testrepo_u/pulls/9
|
279
|
+
X-Github-Media-Type:
|
280
|
+
- github.v3; format=json
|
281
|
+
Access-Control-Expose-Headers:
|
282
|
+
- ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
283
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
284
|
+
Access-Control-Allow-Origin:
|
285
|
+
- "*"
|
286
|
+
Content-Security-Policy:
|
287
|
+
- default-src 'none'
|
288
|
+
Strict-Transport-Security:
|
289
|
+
- max-age=31536000; includeSubdomains; preload
|
290
|
+
X-Content-Type-Options:
|
291
|
+
- nosniff
|
292
|
+
X-Frame-Options:
|
293
|
+
- deny
|
294
|
+
X-Xss-Protection:
|
295
|
+
- 1; mode=block
|
296
|
+
X-Runtime-Rack:
|
297
|
+
- '0.538686'
|
298
|
+
X-Github-Request-Id:
|
299
|
+
- E840:14EE:376B822:85DAAF3:5A78D38F
|
300
|
+
body:
|
301
|
+
encoding: UTF-8
|
302
|
+
string: '{"url":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/9","id":123456780,"html_url":"https://github.com/donald-fr/testrepo_u/pull/9","diff_url":"https://github.com/donald-fr/testrepo_u/pull/9.diff","patch_url":"https://github.com/donald-fr/testrepo_u/pull/9.patch","issue_url":"https://api.github.com/repos/donald-fr/testrepo_u/issues/9","number":9,"state":"open","locked":false,"title":"Title","user":{"login":"donaldduck","id":1234566,"avatar_url":"https://avatars2.githubusercontent.com/u/123456?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},"body":"Description","created_at":"2018-02-05T21:58:39Z","updated_at":"2018-02-05T21:58:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/9/commits","review_comments_url":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/9/comments","review_comment_url":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/comments{/number}","comments_url":"https://api.github.com/repos/donald-fr/testrepo_u/issues/9/comments","statuses_url":"https://api.github.com/repos/donald-fr/testrepo_u/statuses/cac905f20a0b8915b4cfb6cc7679672483ca84a8","head":{"label":"donaldduck:mybranch","ref":"mybranch","sha":"cac905f20a0b8915b4cfb6cc7679672483ca84a8","user":{"login":"donaldduck","id":1234566,"avatar_url":"https://avatars2.githubusercontent.com/u/123456?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},"repo":{"id":123456635,"name":"testrepo_f","full_name":"donaldduck/testrepo_f","owner":{"login":"donaldduck","id":1234566,"avatar_url":"https://avatars2.githubusercontent.com/u/123456?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},"private":false,"html_url":"https://github.com/donaldduck/testrepo_f","description":null,"fork":true,"url":"https://api.github.com/repos/donaldduck/testrepo_f","forks_url":"https://api.github.com/repos/donaldduck/testrepo_f/forks","keys_url":"https://api.github.com/repos/donaldduck/testrepo_f/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donaldduck/testrepo_f/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donaldduck/testrepo_f/teams","hooks_url":"https://api.github.com/repos/donaldduck/testrepo_f/hooks","issue_events_url":"https://api.github.com/repos/donaldduck/testrepo_f/issues/events{/number}","events_url":"https://api.github.com/repos/donaldduck/testrepo_f/events","assignees_url":"https://api.github.com/repos/donaldduck/testrepo_f/assignees{/user}","branches_url":"https://api.github.com/repos/donaldduck/testrepo_f/branches{/branch}","tags_url":"https://api.github.com/repos/donaldduck/testrepo_f/tags","blobs_url":"https://api.github.com/repos/donaldduck/testrepo_f/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donaldduck/testrepo_f/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donaldduck/testrepo_f/git/refs{/sha}","trees_url":"https://api.github.com/repos/donaldduck/testrepo_f/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donaldduck/testrepo_f/statuses/{sha}","languages_url":"https://api.github.com/repos/donaldduck/testrepo_f/languages","stargazers_url":"https://api.github.com/repos/donaldduck/testrepo_f/stargazers","contributors_url":"https://api.github.com/repos/donaldduck/testrepo_f/contributors","subscribers_url":"https://api.github.com/repos/donaldduck/testrepo_f/subscribers","subscription_url":"https://api.github.com/repos/donaldduck/testrepo_f/subscription","commits_url":"https://api.github.com/repos/donaldduck/testrepo_f/commits{/sha}","git_commits_url":"https://api.github.com/repos/donaldduck/testrepo_f/git/commits{/sha}","comments_url":"https://api.github.com/repos/donaldduck/testrepo_f/comments{/number}","issue_comment_url":"https://api.github.com/repos/donaldduck/testrepo_f/issues/comments{/number}","contents_url":"https://api.github.com/repos/donaldduck/testrepo_f/contents/{+path}","compare_url":"https://api.github.com/repos/donaldduck/testrepo_f/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donaldduck/testrepo_f/merges","archive_url":"https://api.github.com/repos/donaldduck/testrepo_f/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donaldduck/testrepo_f/downloads","issues_url":"https://api.github.com/repos/donaldduck/testrepo_f/issues{/number}","pulls_url":"https://api.github.com/repos/donaldduck/testrepo_f/pulls{/number}","milestones_url":"https://api.github.com/repos/donaldduck/testrepo_f/milestones{/number}","notifications_url":"https://api.github.com/repos/donaldduck/testrepo_f/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donaldduck/testrepo_f/labels{/name}","releases_url":"https://api.github.com/repos/donaldduck/testrepo_f/releases{/id}","deployments_url":"https://api.github.com/repos/donaldduck/testrepo_f/deployments","created_at":"2018-02-05T21:44:00Z","updated_at":"2018-02-05T21:44:40Z","pushed_at":"2018-02-05T21:45:22Z","git_url":"git://github.com/donaldduck/testrepo_f.git","ssh_url":"git@github.com:donaldduck/testrepo_f.git","clone_url":"https://github.com/donaldduck/testrepo_f.git","svn_url":"https://github.com/donaldduck/testrepo_f","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"donald-fr:master","ref":"master","sha":"c971bf0ec8076e78b866a41ba4c3a83bc6a4be73","user":{"login":"donald-fr","id":12345612,"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},"repo":{"id":123456004,"name":"testrepo_u","full_name":"donald-fr/testrepo_u","owner":{"login":"donald-fr","id":12345612,"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},"private":false,"html_url":"https://github.com/donald-fr/testrepo_u","description":null,"fork":false,"url":"https://api.github.com/repos/donald-fr/testrepo_u","forks_url":"https://api.github.com/repos/donald-fr/testrepo_u/forks","keys_url":"https://api.github.com/repos/donald-fr/testrepo_u/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donald-fr/testrepo_u/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donald-fr/testrepo_u/teams","hooks_url":"https://api.github.com/repos/donald-fr/testrepo_u/hooks","issue_events_url":"https://api.github.com/repos/donald-fr/testrepo_u/issues/events{/number}","events_url":"https://api.github.com/repos/donald-fr/testrepo_u/events","assignees_url":"https://api.github.com/repos/donald-fr/testrepo_u/assignees{/user}","branches_url":"https://api.github.com/repos/donald-fr/testrepo_u/branches{/branch}","tags_url":"https://api.github.com/repos/donald-fr/testrepo_u/tags","blobs_url":"https://api.github.com/repos/donald-fr/testrepo_u/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donald-fr/testrepo_u/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donald-fr/testrepo_u/git/refs{/sha}","trees_url":"https://api.github.com/repos/donald-fr/testrepo_u/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donald-fr/testrepo_u/statuses/{sha}","languages_url":"https://api.github.com/repos/donald-fr/testrepo_u/languages","stargazers_url":"https://api.github.com/repos/donald-fr/testrepo_u/stargazers","contributors_url":"https://api.github.com/repos/donald-fr/testrepo_u/contributors","subscribers_url":"https://api.github.com/repos/donald-fr/testrepo_u/subscribers","subscription_url":"https://api.github.com/repos/donald-fr/testrepo_u/subscription","commits_url":"https://api.github.com/repos/donald-fr/testrepo_u/commits{/sha}","git_commits_url":"https://api.github.com/repos/donald-fr/testrepo_u/git/commits{/sha}","comments_url":"https://api.github.com/repos/donald-fr/testrepo_u/comments{/number}","issue_comment_url":"https://api.github.com/repos/donald-fr/testrepo_u/issues/comments{/number}","contents_url":"https://api.github.com/repos/donald-fr/testrepo_u/contents/{+path}","compare_url":"https://api.github.com/repos/donald-fr/testrepo_u/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donald-fr/testrepo_u/merges","archive_url":"https://api.github.com/repos/donald-fr/testrepo_u/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donald-fr/testrepo_u/downloads","issues_url":"https://api.github.com/repos/donald-fr/testrepo_u/issues{/number}","pulls_url":"https://api.github.com/repos/donald-fr/testrepo_u/pulls{/number}","milestones_url":"https://api.github.com/repos/donald-fr/testrepo_u/milestones{/number}","notifications_url":"https://api.github.com/repos/donald-fr/testrepo_u/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donald-fr/testrepo_u/labels{/name}","releases_url":"https://api.github.com/repos/donald-fr/testrepo_u/releases{/id}","deployments_url":"https://api.github.com/repos/donald-fr/testrepo_u/deployments","created_at":"2017-11-21T09:16:55Z","updated_at":"2017-11-21T11:59:32Z","pushed_at":"2018-02-05T21:10:40Z","git_url":"git://github.com/donald-fr/testrepo_u.git","ssh_url":"git@github.com:donald-fr/testrepo_u.git","clone_url":"https://github.com/donald-fr/testrepo_u.git","svn_url":"https://github.com/donald-fr/testrepo_u","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/9"},"html":{"href":"https://github.com/donald-fr/testrepo_u/pull/9"},"issue":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/issues/9"},"comments":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/statuses/cac905f20a0b8915b4cfb6cc7679672483ca84a8"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":0,"deletions":0,"changed_files":1}'
|
303
|
+
http_version:
|
304
|
+
recorded_at: Mon, 05 Feb 2018 21:58:40 GMT
|
305
|
+
recorded_with: VCR 3.0.3
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saverio Miroddi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simple_scripting
|
@@ -104,7 +104,9 @@ files:
|
|
104
104
|
- lib/geet/services/list_milestones.rb
|
105
105
|
- lib/geet/services/list_prs.rb
|
106
106
|
- lib/geet/services/merge_pr.rb
|
107
|
-
- lib/geet/shared/
|
107
|
+
- lib/geet/shared/http_error.rb
|
108
|
+
- lib/geet/shared/repo_permissions.rb
|
109
|
+
- lib/geet/shared/selection.rb
|
108
110
|
- lib/geet/utils/attributes_selection_manager.rb
|
109
111
|
- lib/geet/utils/git_client.rb
|
110
112
|
- lib/geet/utils/manual_list_selection.rb
|
@@ -131,6 +133,7 @@ files:
|
|
131
133
|
- spec/vcr_cassettes/create_pr_in_auto_mode_create_upstream.yml
|
132
134
|
- spec/vcr_cassettes/create_pr_in_auto_mode_with_push.yml
|
133
135
|
- spec/vcr_cassettes/create_pr_upstream.yml
|
136
|
+
- spec/vcr_cassettes/create_pr_upstream_without_write_permissions.yml
|
134
137
|
- spec/vcr_cassettes/github_com/list_issues.yml
|
135
138
|
- spec/vcr_cassettes/github_com/list_issues_upstream.yml
|
136
139
|
- spec/vcr_cassettes/github_com/list_issues_with_assignee.yml
|