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,84 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.github.com/repos/donaldduck/testrepo/pulls
|
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 09:51: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
|
+
- '4980'
|
39
|
+
X-Ratelimit-Reset:
|
40
|
+
- '1511259603'
|
41
|
+
Cache-Control:
|
42
|
+
- private, max-age=60, s-maxage=60
|
43
|
+
Vary:
|
44
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
45
|
+
Etag:
|
46
|
+
- W/"5b3f424b3608109794a722f57c820c56"
|
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
|
+
- ''
|
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.091922'
|
71
|
+
X-Github-Request-Id:
|
72
|
+
- B148:62AF:162115:324FD9:5A13F70E
|
73
|
+
body:
|
74
|
+
encoding: ASCII-8BIT
|
75
|
+
string: '[{"url":"https://api.github.com/repos/donaldduck/testrepo/pulls/6","id":153841569,"html_url":"https://github.com/donaldduck/testrepo/pull/6","diff_url":"https://github.com/donaldduck/testrepo/pull/6.diff","patch_url":"https://github.com/donaldduck/testrepo/pull/6.patch","issue_url":"https://api.github.com/repos/donaldduck/testrepo/issues/6","number":6,"state":"open","locked":false,"title":"Title
|
76
|
+
2","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},"body":"Description
|
77
|
+
2","created_at":"2017-11-21T09:49:44Z","updated_at":"2017-11-21T09:49:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b81fe401958aeb0a8f4e6000661e380e2bd499ba","assignee":{"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},"assignees":[{"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}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/donaldduck/testrepo/pulls/6/commits","review_comments_url":"https://api.github.com/repos/donaldduck/testrepo/pulls/6/comments","review_comment_url":"https://api.github.com/repos/donaldduck/testrepo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/donaldduck/testrepo/issues/6/comments","statuses_url":"https://api.github.com/repos/donaldduck/testrepo/statuses/7bcac7f8437259efb1fdbaae4c59d591710ddd4f","head":{"label":"donaldduck:mybranch2","ref":"mybranch2","sha":"7bcac7f8437259efb1fdbaae4c59d591710ddd4f","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},"repo":{"id":111466048,"name":"testrepo","full_name":"donaldduck/testrepo","owner":{"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},"private":false,"html_url":"https://github.com/donaldduck/testrepo","description":"Test
|
78
|
+
repository - IGNORE.","fork":false,"url":"https://api.github.com/repos/donaldduck/testrepo","forks_url":"https://api.github.com/repos/donaldduck/testrepo/forks","keys_url":"https://api.github.com/repos/donaldduck/testrepo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donaldduck/testrepo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donaldduck/testrepo/teams","hooks_url":"https://api.github.com/repos/donaldduck/testrepo/hooks","issue_events_url":"https://api.github.com/repos/donaldduck/testrepo/issues/events{/number}","events_url":"https://api.github.com/repos/donaldduck/testrepo/events","assignees_url":"https://api.github.com/repos/donaldduck/testrepo/assignees{/user}","branches_url":"https://api.github.com/repos/donaldduck/testrepo/branches{/branch}","tags_url":"https://api.github.com/repos/donaldduck/testrepo/tags","blobs_url":"https://api.github.com/repos/donaldduck/testrepo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donaldduck/testrepo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donaldduck/testrepo/git/refs{/sha}","trees_url":"https://api.github.com/repos/donaldduck/testrepo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donaldduck/testrepo/statuses/{sha}","languages_url":"https://api.github.com/repos/donaldduck/testrepo/languages","stargazers_url":"https://api.github.com/repos/donaldduck/testrepo/stargazers","contributors_url":"https://api.github.com/repos/donaldduck/testrepo/contributors","subscribers_url":"https://api.github.com/repos/donaldduck/testrepo/subscribers","subscription_url":"https://api.github.com/repos/donaldduck/testrepo/subscription","commits_url":"https://api.github.com/repos/donaldduck/testrepo/commits{/sha}","git_commits_url":"https://api.github.com/repos/donaldduck/testrepo/git/commits{/sha}","comments_url":"https://api.github.com/repos/donaldduck/testrepo/comments{/number}","issue_comment_url":"https://api.github.com/repos/donaldduck/testrepo/issues/comments{/number}","contents_url":"https://api.github.com/repos/donaldduck/testrepo/contents/{+path}","compare_url":"https://api.github.com/repos/donaldduck/testrepo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donaldduck/testrepo/merges","archive_url":"https://api.github.com/repos/donaldduck/testrepo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donaldduck/testrepo/downloads","issues_url":"https://api.github.com/repos/donaldduck/testrepo/issues{/number}","pulls_url":"https://api.github.com/repos/donaldduck/testrepo/pulls{/number}","milestones_url":"https://api.github.com/repos/donaldduck/testrepo/milestones{/number}","notifications_url":"https://api.github.com/repos/donaldduck/testrepo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donaldduck/testrepo/labels{/name}","releases_url":"https://api.github.com/repos/donaldduck/testrepo/releases{/id}","deployments_url":"https://api.github.com/repos/donaldduck/testrepo/deployments","created_at":"2017-11-20T21:43:40Z","updated_at":"2017-11-20T21:55:51Z","pushed_at":"2017-11-21T09:49:44Z","git_url":"git://github.com/donaldduck/testrepo.git","ssh_url":"git@github.com:donaldduck/testrepo.git","clone_url":"https://github.com/donaldduck/testrepo.git","svn_url":"https://github.com/donaldduck/testrepo","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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"donaldduck:master","ref":"master","sha":"12222a3b36b0671032c110a483a3ef15153d9461","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},"repo":{"id":111466048,"name":"testrepo","full_name":"donaldduck/testrepo","owner":{"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},"private":false,"html_url":"https://github.com/donaldduck/testrepo","description":"Test
|
79
|
+
repository - IGNORE.","fork":false,"url":"https://api.github.com/repos/donaldduck/testrepo","forks_url":"https://api.github.com/repos/donaldduck/testrepo/forks","keys_url":"https://api.github.com/repos/donaldduck/testrepo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donaldduck/testrepo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donaldduck/testrepo/teams","hooks_url":"https://api.github.com/repos/donaldduck/testrepo/hooks","issue_events_url":"https://api.github.com/repos/donaldduck/testrepo/issues/events{/number}","events_url":"https://api.github.com/repos/donaldduck/testrepo/events","assignees_url":"https://api.github.com/repos/donaldduck/testrepo/assignees{/user}","branches_url":"https://api.github.com/repos/donaldduck/testrepo/branches{/branch}","tags_url":"https://api.github.com/repos/donaldduck/testrepo/tags","blobs_url":"https://api.github.com/repos/donaldduck/testrepo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donaldduck/testrepo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donaldduck/testrepo/git/refs{/sha}","trees_url":"https://api.github.com/repos/donaldduck/testrepo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donaldduck/testrepo/statuses/{sha}","languages_url":"https://api.github.com/repos/donaldduck/testrepo/languages","stargazers_url":"https://api.github.com/repos/donaldduck/testrepo/stargazers","contributors_url":"https://api.github.com/repos/donaldduck/testrepo/contributors","subscribers_url":"https://api.github.com/repos/donaldduck/testrepo/subscribers","subscription_url":"https://api.github.com/repos/donaldduck/testrepo/subscription","commits_url":"https://api.github.com/repos/donaldduck/testrepo/commits{/sha}","git_commits_url":"https://api.github.com/repos/donaldduck/testrepo/git/commits{/sha}","comments_url":"https://api.github.com/repos/donaldduck/testrepo/comments{/number}","issue_comment_url":"https://api.github.com/repos/donaldduck/testrepo/issues/comments{/number}","contents_url":"https://api.github.com/repos/donaldduck/testrepo/contents/{+path}","compare_url":"https://api.github.com/repos/donaldduck/testrepo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donaldduck/testrepo/merges","archive_url":"https://api.github.com/repos/donaldduck/testrepo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donaldduck/testrepo/downloads","issues_url":"https://api.github.com/repos/donaldduck/testrepo/issues{/number}","pulls_url":"https://api.github.com/repos/donaldduck/testrepo/pulls{/number}","milestones_url":"https://api.github.com/repos/donaldduck/testrepo/milestones{/number}","notifications_url":"https://api.github.com/repos/donaldduck/testrepo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donaldduck/testrepo/labels{/name}","releases_url":"https://api.github.com/repos/donaldduck/testrepo/releases{/id}","deployments_url":"https://api.github.com/repos/donaldduck/testrepo/deployments","created_at":"2017-11-20T21:43:40Z","updated_at":"2017-11-20T21:55:51Z","pushed_at":"2017-11-21T09:49:44Z","git_url":"git://github.com/donaldduck/testrepo.git","ssh_url":"git@github.com:donaldduck/testrepo.git","clone_url":"https://github.com/donaldduck/testrepo.git","svn_url":"https://github.com/donaldduck/testrepo","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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/donaldduck/testrepo/pulls/6"},"html":{"href":"https://github.com/donaldduck/testrepo/pull/6"},"issue":{"href":"https://api.github.com/repos/donaldduck/testrepo/issues/6"},"comments":{"href":"https://api.github.com/repos/donaldduck/testrepo/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/donaldduck/testrepo/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/donaldduck/testrepo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/donaldduck/testrepo/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/donaldduck/testrepo/statuses/7bcac7f8437259efb1fdbaae4c59d591710ddd4f"}},"author_association":"OWNER"},{"url":"https://api.github.com/repos/donaldduck/testrepo/pulls/3","id":153748264,"html_url":"https://github.com/donaldduck/testrepo/pull/3","diff_url":"https://github.com/donaldduck/testrepo/pull/3.diff","patch_url":"https://github.com/donaldduck/testrepo/pull/3.patch","issue_url":"https://api.github.com/repos/donaldduck/testrepo/issues/3","number":3,"state":"open","locked":false,"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},"body":"Description","created_at":"2017-11-20T22:16:05Z","updated_at":"2017-11-20T22:16:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3bd85f75251c01eec67f22089f6e2fd55f48f2a7","assignee":{"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},"assignees":[{"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}],"requested_reviewers":[{"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},{"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}],"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":2927045,"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":1,"state":"open","created_at":"2017-11-20T22:06:17Z","updated_at":"2017-11-20T22:16:06Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/donaldduck/testrepo/pulls/3/commits","review_comments_url":"https://api.github.com/repos/donaldduck/testrepo/pulls/3/comments","review_comment_url":"https://api.github.com/repos/donaldduck/testrepo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/donaldduck/testrepo/issues/3/comments","statuses_url":"https://api.github.com/repos/donaldduck/testrepo/statuses/7bcac7f8437259efb1fdbaae4c59d591710ddd4f","head":{"label":"donaldduck:mybranch1","ref":"mybranch1","sha":"7bcac7f8437259efb1fdbaae4c59d591710ddd4f","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},"repo":{"id":111466048,"name":"testrepo","full_name":"donaldduck/testrepo","owner":{"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},"private":false,"html_url":"https://github.com/donaldduck/testrepo","description":"Test
|
80
|
+
repository - IGNORE.","fork":false,"url":"https://api.github.com/repos/donaldduck/testrepo","forks_url":"https://api.github.com/repos/donaldduck/testrepo/forks","keys_url":"https://api.github.com/repos/donaldduck/testrepo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donaldduck/testrepo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donaldduck/testrepo/teams","hooks_url":"https://api.github.com/repos/donaldduck/testrepo/hooks","issue_events_url":"https://api.github.com/repos/donaldduck/testrepo/issues/events{/number}","events_url":"https://api.github.com/repos/donaldduck/testrepo/events","assignees_url":"https://api.github.com/repos/donaldduck/testrepo/assignees{/user}","branches_url":"https://api.github.com/repos/donaldduck/testrepo/branches{/branch}","tags_url":"https://api.github.com/repos/donaldduck/testrepo/tags","blobs_url":"https://api.github.com/repos/donaldduck/testrepo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donaldduck/testrepo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donaldduck/testrepo/git/refs{/sha}","trees_url":"https://api.github.com/repos/donaldduck/testrepo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donaldduck/testrepo/statuses/{sha}","languages_url":"https://api.github.com/repos/donaldduck/testrepo/languages","stargazers_url":"https://api.github.com/repos/donaldduck/testrepo/stargazers","contributors_url":"https://api.github.com/repos/donaldduck/testrepo/contributors","subscribers_url":"https://api.github.com/repos/donaldduck/testrepo/subscribers","subscription_url":"https://api.github.com/repos/donaldduck/testrepo/subscription","commits_url":"https://api.github.com/repos/donaldduck/testrepo/commits{/sha}","git_commits_url":"https://api.github.com/repos/donaldduck/testrepo/git/commits{/sha}","comments_url":"https://api.github.com/repos/donaldduck/testrepo/comments{/number}","issue_comment_url":"https://api.github.com/repos/donaldduck/testrepo/issues/comments{/number}","contents_url":"https://api.github.com/repos/donaldduck/testrepo/contents/{+path}","compare_url":"https://api.github.com/repos/donaldduck/testrepo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donaldduck/testrepo/merges","archive_url":"https://api.github.com/repos/donaldduck/testrepo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donaldduck/testrepo/downloads","issues_url":"https://api.github.com/repos/donaldduck/testrepo/issues{/number}","pulls_url":"https://api.github.com/repos/donaldduck/testrepo/pulls{/number}","milestones_url":"https://api.github.com/repos/donaldduck/testrepo/milestones{/number}","notifications_url":"https://api.github.com/repos/donaldduck/testrepo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donaldduck/testrepo/labels{/name}","releases_url":"https://api.github.com/repos/donaldduck/testrepo/releases{/id}","deployments_url":"https://api.github.com/repos/donaldduck/testrepo/deployments","created_at":"2017-11-20T21:43:40Z","updated_at":"2017-11-20T21:55:51Z","pushed_at":"2017-11-21T09:49:44Z","git_url":"git://github.com/donaldduck/testrepo.git","ssh_url":"git@github.com:donaldduck/testrepo.git","clone_url":"https://github.com/donaldduck/testrepo.git","svn_url":"https://github.com/donaldduck/testrepo","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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"donaldduck:master","ref":"master","sha":"12222a3b36b0671032c110a483a3ef15153d9461","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},"repo":{"id":111466048,"name":"testrepo","full_name":"donaldduck/testrepo","owner":{"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},"private":false,"html_url":"https://github.com/donaldduck/testrepo","description":"Test
|
81
|
+
repository - IGNORE.","fork":false,"url":"https://api.github.com/repos/donaldduck/testrepo","forks_url":"https://api.github.com/repos/donaldduck/testrepo/forks","keys_url":"https://api.github.com/repos/donaldduck/testrepo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donaldduck/testrepo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donaldduck/testrepo/teams","hooks_url":"https://api.github.com/repos/donaldduck/testrepo/hooks","issue_events_url":"https://api.github.com/repos/donaldduck/testrepo/issues/events{/number}","events_url":"https://api.github.com/repos/donaldduck/testrepo/events","assignees_url":"https://api.github.com/repos/donaldduck/testrepo/assignees{/user}","branches_url":"https://api.github.com/repos/donaldduck/testrepo/branches{/branch}","tags_url":"https://api.github.com/repos/donaldduck/testrepo/tags","blobs_url":"https://api.github.com/repos/donaldduck/testrepo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donaldduck/testrepo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donaldduck/testrepo/git/refs{/sha}","trees_url":"https://api.github.com/repos/donaldduck/testrepo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donaldduck/testrepo/statuses/{sha}","languages_url":"https://api.github.com/repos/donaldduck/testrepo/languages","stargazers_url":"https://api.github.com/repos/donaldduck/testrepo/stargazers","contributors_url":"https://api.github.com/repos/donaldduck/testrepo/contributors","subscribers_url":"https://api.github.com/repos/donaldduck/testrepo/subscribers","subscription_url":"https://api.github.com/repos/donaldduck/testrepo/subscription","commits_url":"https://api.github.com/repos/donaldduck/testrepo/commits{/sha}","git_commits_url":"https://api.github.com/repos/donaldduck/testrepo/git/commits{/sha}","comments_url":"https://api.github.com/repos/donaldduck/testrepo/comments{/number}","issue_comment_url":"https://api.github.com/repos/donaldduck/testrepo/issues/comments{/number}","contents_url":"https://api.github.com/repos/donaldduck/testrepo/contents/{+path}","compare_url":"https://api.github.com/repos/donaldduck/testrepo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donaldduck/testrepo/merges","archive_url":"https://api.github.com/repos/donaldduck/testrepo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donaldduck/testrepo/downloads","issues_url":"https://api.github.com/repos/donaldduck/testrepo/issues{/number}","pulls_url":"https://api.github.com/repos/donaldduck/testrepo/pulls{/number}","milestones_url":"https://api.github.com/repos/donaldduck/testrepo/milestones{/number}","notifications_url":"https://api.github.com/repos/donaldduck/testrepo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donaldduck/testrepo/labels{/name}","releases_url":"https://api.github.com/repos/donaldduck/testrepo/releases{/id}","deployments_url":"https://api.github.com/repos/donaldduck/testrepo/deployments","created_at":"2017-11-20T21:43:40Z","updated_at":"2017-11-20T21:55:51Z","pushed_at":"2017-11-21T09:49:44Z","git_url":"git://github.com/donaldduck/testrepo.git","ssh_url":"git@github.com:donaldduck/testrepo.git","clone_url":"https://github.com/donaldduck/testrepo.git","svn_url":"https://github.com/donaldduck/testrepo","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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/donaldduck/testrepo/pulls/3"},"html":{"href":"https://github.com/donaldduck/testrepo/pull/3"},"issue":{"href":"https://api.github.com/repos/donaldduck/testrepo/issues/3"},"comments":{"href":"https://api.github.com/repos/donaldduck/testrepo/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/donaldduck/testrepo/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/donaldduck/testrepo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/donaldduck/testrepo/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/donaldduck/testrepo/statuses/7bcac7f8437259efb1fdbaae4c59d591710ddd4f"}},"author_association":"OWNER"}]'
|
82
|
+
http_version:
|
83
|
+
recorded_at: Tue, 21 Nov 2017 09:51:10 GMT
|
84
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,80 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.github.com/repos/donald-fr/testrepo_u/pulls
|
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 09:56:25 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
|
+
- '4967'
|
39
|
+
X-Ratelimit-Reset:
|
40
|
+
- '1511259603'
|
41
|
+
Cache-Control:
|
42
|
+
- private, max-age=60, s-maxage=60
|
43
|
+
Vary:
|
44
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
45
|
+
Etag:
|
46
|
+
- W/"93ad94523b39d8cf9aeed109961915d5"
|
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
|
+
- ''
|
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.082430'
|
71
|
+
X-Github-Request-Id:
|
72
|
+
- AB6A:62AF:166C98:32F7D6:5A13F849
|
73
|
+
body:
|
74
|
+
encoding: ASCII-8BIT
|
75
|
+
string: '[{"url":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/5","id":153842430,"html_url":"https://github.com/donald-fr/testrepo_u/pull/5","diff_url":"https://github.com/donald-fr/testrepo_u/pull/5.diff","patch_url":"https://github.com/donald-fr/testrepo_u/pull/5.patch","issue_url":"https://api.github.com/repos/donald-fr/testrepo_u/issues/5","number":5,"state":"open","locked":false,"title":"Title
|
76
|
+
2","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},"body":"Description
|
77
|
+
2","created_at":"2017-11-21T09:53:12Z","updated_at":"2017-11-21T09:53:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5300d7f562e04ab50bf4f81840131694d529cd29","assignee":{"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},"assignees":[{"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}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/5/commits","review_comments_url":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/5/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/5/comments","statuses_url":"https://api.github.com/repos/donald-fr/testrepo_u/statuses/d64cdf61ac74cb104d5b423a9c6c7a2ef5678b27","head":{"label":"donaldduck:mybranch2","ref":"mybranch2","sha":"d64cdf61ac74cb104d5b423a9c6c7a2ef5678b27","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},"repo":{"id":111527177,"name":"testrepo_2f","full_name":"donaldduck/testrepo_2f","owner":{"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},"private":false,"html_url":"https://github.com/donaldduck/testrepo_2f","description":null,"fork":true,"url":"https://api.github.com/repos/donaldduck/testrepo_2f","forks_url":"https://api.github.com/repos/donaldduck/testrepo_2f/forks","keys_url":"https://api.github.com/repos/donaldduck/testrepo_2f/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donaldduck/testrepo_2f/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donaldduck/testrepo_2f/teams","hooks_url":"https://api.github.com/repos/donaldduck/testrepo_2f/hooks","issue_events_url":"https://api.github.com/repos/donaldduck/testrepo_2f/issues/events{/number}","events_url":"https://api.github.com/repos/donaldduck/testrepo_2f/events","assignees_url":"https://api.github.com/repos/donaldduck/testrepo_2f/assignees{/user}","branches_url":"https://api.github.com/repos/donaldduck/testrepo_2f/branches{/branch}","tags_url":"https://api.github.com/repos/donaldduck/testrepo_2f/tags","blobs_url":"https://api.github.com/repos/donaldduck/testrepo_2f/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donaldduck/testrepo_2f/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donaldduck/testrepo_2f/git/refs{/sha}","trees_url":"https://api.github.com/repos/donaldduck/testrepo_2f/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donaldduck/testrepo_2f/statuses/{sha}","languages_url":"https://api.github.com/repos/donaldduck/testrepo_2f/languages","stargazers_url":"https://api.github.com/repos/donaldduck/testrepo_2f/stargazers","contributors_url":"https://api.github.com/repos/donaldduck/testrepo_2f/contributors","subscribers_url":"https://api.github.com/repos/donaldduck/testrepo_2f/subscribers","subscription_url":"https://api.github.com/repos/donaldduck/testrepo_2f/subscription","commits_url":"https://api.github.com/repos/donaldduck/testrepo_2f/commits{/sha}","git_commits_url":"https://api.github.com/repos/donaldduck/testrepo_2f/git/commits{/sha}","comments_url":"https://api.github.com/repos/donaldduck/testrepo_2f/comments{/number}","issue_comment_url":"https://api.github.com/repos/donaldduck/testrepo_2f/issues/comments{/number}","contents_url":"https://api.github.com/repos/donaldduck/testrepo_2f/contents/{+path}","compare_url":"https://api.github.com/repos/donaldduck/testrepo_2f/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donaldduck/testrepo_2f/merges","archive_url":"https://api.github.com/repos/donaldduck/testrepo_2f/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donaldduck/testrepo_2f/downloads","issues_url":"https://api.github.com/repos/donaldduck/testrepo_2f/issues{/number}","pulls_url":"https://api.github.com/repos/donaldduck/testrepo_2f/pulls{/number}","milestones_url":"https://api.github.com/repos/donaldduck/testrepo_2f/milestones{/number}","notifications_url":"https://api.github.com/repos/donaldduck/testrepo_2f/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donaldduck/testrepo_2f/labels{/name}","releases_url":"https://api.github.com/repos/donaldduck/testrepo_2f/releases{/id}","deployments_url":"https://api.github.com/repos/donaldduck/testrepo_2f/deployments","created_at":"2017-11-21T09:26:50Z","updated_at":"2017-11-21T09:27:23Z","pushed_at":"2017-11-21T09:53:09Z","git_url":"git://github.com/donaldduck/testrepo_2f.git","ssh_url":"git@github.com:donaldduck/testrepo_2f.git","clone_url":"https://github.com/donaldduck/testrepo_2f.git","svn_url":"https://github.com/donaldduck/testrepo_2f","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,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"donald-fr:master","ref":"master","sha":"6ec60827e3f235b44126b87c099054b060249b99","user":{"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},"repo":{"id":111526004,"name":"testrepo_u","full_name":"donald-fr/testrepo_u","owner":{"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},"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-21T09:16:55Z","pushed_at":"2017-11-21T09:53:12Z","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":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/5"},"html":{"href":"https://github.com/donald-fr/testrepo_u/pull/5"},"issue":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/issues/5"},"comments":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/5/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/5/commits"},"statuses":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/statuses/d64cdf61ac74cb104d5b423a9c6c7a2ef5678b27"}},"author_association":"CONTRIBUTOR"},{"url":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/4","id":153840017,"html_url":"https://github.com/donald-fr/testrepo_u/pull/4","diff_url":"https://github.com/donald-fr/testrepo_u/pull/4.diff","patch_url":"https://github.com/donald-fr/testrepo_u/pull/4.patch","issue_url":"https://api.github.com/repos/donald-fr/testrepo_u/issues/4","number":4,"state":"open","locked":false,"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},"body":"Description","created_at":"2017-11-21T09:42:48Z","updated_at":"2017-11-21T09:42:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67c115323d961234cbffc5509466f17584d45023","assignee":{"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},"assignees":[{"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}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/4/commits","review_comments_url":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/4/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/4/comments","statuses_url":"https://api.github.com/repos/donald-fr/testrepo_u/statuses/d64cdf61ac74cb104d5b423a9c6c7a2ef5678b27","head":{"label":"donaldduck:mybranch","ref":"mybranch","sha":"d64cdf61ac74cb104d5b423a9c6c7a2ef5678b27","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},"repo":{"id":111527177,"name":"testrepo_2f","full_name":"donaldduck/testrepo_2f","owner":{"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},"private":false,"html_url":"https://github.com/donaldduck/testrepo_2f","description":null,"fork":true,"url":"https://api.github.com/repos/donaldduck/testrepo_2f","forks_url":"https://api.github.com/repos/donaldduck/testrepo_2f/forks","keys_url":"https://api.github.com/repos/donaldduck/testrepo_2f/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donaldduck/testrepo_2f/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donaldduck/testrepo_2f/teams","hooks_url":"https://api.github.com/repos/donaldduck/testrepo_2f/hooks","issue_events_url":"https://api.github.com/repos/donaldduck/testrepo_2f/issues/events{/number}","events_url":"https://api.github.com/repos/donaldduck/testrepo_2f/events","assignees_url":"https://api.github.com/repos/donaldduck/testrepo_2f/assignees{/user}","branches_url":"https://api.github.com/repos/donaldduck/testrepo_2f/branches{/branch}","tags_url":"https://api.github.com/repos/donaldduck/testrepo_2f/tags","blobs_url":"https://api.github.com/repos/donaldduck/testrepo_2f/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donaldduck/testrepo_2f/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donaldduck/testrepo_2f/git/refs{/sha}","trees_url":"https://api.github.com/repos/donaldduck/testrepo_2f/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donaldduck/testrepo_2f/statuses/{sha}","languages_url":"https://api.github.com/repos/donaldduck/testrepo_2f/languages","stargazers_url":"https://api.github.com/repos/donaldduck/testrepo_2f/stargazers","contributors_url":"https://api.github.com/repos/donaldduck/testrepo_2f/contributors","subscribers_url":"https://api.github.com/repos/donaldduck/testrepo_2f/subscribers","subscription_url":"https://api.github.com/repos/donaldduck/testrepo_2f/subscription","commits_url":"https://api.github.com/repos/donaldduck/testrepo_2f/commits{/sha}","git_commits_url":"https://api.github.com/repos/donaldduck/testrepo_2f/git/commits{/sha}","comments_url":"https://api.github.com/repos/donaldduck/testrepo_2f/comments{/number}","issue_comment_url":"https://api.github.com/repos/donaldduck/testrepo_2f/issues/comments{/number}","contents_url":"https://api.github.com/repos/donaldduck/testrepo_2f/contents/{+path}","compare_url":"https://api.github.com/repos/donaldduck/testrepo_2f/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donaldduck/testrepo_2f/merges","archive_url":"https://api.github.com/repos/donaldduck/testrepo_2f/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donaldduck/testrepo_2f/downloads","issues_url":"https://api.github.com/repos/donaldduck/testrepo_2f/issues{/number}","pulls_url":"https://api.github.com/repos/donaldduck/testrepo_2f/pulls{/number}","milestones_url":"https://api.github.com/repos/donaldduck/testrepo_2f/milestones{/number}","notifications_url":"https://api.github.com/repos/donaldduck/testrepo_2f/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donaldduck/testrepo_2f/labels{/name}","releases_url":"https://api.github.com/repos/donaldduck/testrepo_2f/releases{/id}","deployments_url":"https://api.github.com/repos/donaldduck/testrepo_2f/deployments","created_at":"2017-11-21T09:26:50Z","updated_at":"2017-11-21T09:27:23Z","pushed_at":"2017-11-21T09:53:09Z","git_url":"git://github.com/donaldduck/testrepo_2f.git","ssh_url":"git@github.com:donaldduck/testrepo_2f.git","clone_url":"https://github.com/donaldduck/testrepo_2f.git","svn_url":"https://github.com/donaldduck/testrepo_2f","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,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"donald-fr:master","ref":"master","sha":"6ec60827e3f235b44126b87c099054b060249b99","user":{"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},"repo":{"id":111526004,"name":"testrepo_u","full_name":"donald-fr/testrepo_u","owner":{"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},"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-21T09:16:55Z","pushed_at":"2017-11-21T09:53:12Z","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":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/4"},"html":{"href":"https://github.com/donald-fr/testrepo_u/pull/4"},"issue":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/issues/4"},"comments":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/pulls/4/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/4/commits"},"statuses":{"href":"https://api.github.com/repos/donald-fr/testrepo_u/statuses/d64cdf61ac74cb104d5b423a9c6c7a2ef5678b27"}},"author_association":"CONTRIBUTOR"}]'
|
78
|
+
http_version:
|
79
|
+
recorded_at: Tue, 21 Nov 2017 09:56:25 GMT
|
80
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,156 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.github.com/repos/donaldduck/testrepo/pulls?head=mybranch1
|
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 10:11:12 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
|
+
- '4962'
|
39
|
+
X-Ratelimit-Reset:
|
40
|
+
- '1511259603'
|
41
|
+
Cache-Control:
|
42
|
+
- private, max-age=60, s-maxage=60
|
43
|
+
Vary:
|
44
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
45
|
+
Etag:
|
46
|
+
- W/"483afae18c23d4f122c664cc7ed9f351"
|
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
|
+
- ''
|
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.091308'
|
71
|
+
X-Github-Request-Id:
|
72
|
+
- ACE0:62AF:1749C3:34E80F:5A13FBBF
|
73
|
+
body:
|
74
|
+
encoding: ASCII-8BIT
|
75
|
+
string: '[{"url":"https://api.github.com/repos/donaldduck/testrepo/pulls/3","id":153748264,"html_url":"https://github.com/donaldduck/testrepo/pull/3","diff_url":"https://github.com/donaldduck/testrepo/pull/3.diff","patch_url":"https://github.com/donaldduck/testrepo/pull/3.patch","issue_url":"https://api.github.com/repos/donaldduck/testrepo/issues/3","number":3,"state":"open","locked":false,"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},"body":"Description","created_at":"2017-11-20T22:16:05Z","updated_at":"2017-11-20T22:16:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3bd85f75251c01eec67f22089f6e2fd55f48f2a7","assignee":{"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},"assignees":[{"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}],"requested_reviewers":[{"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},{"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}],"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":2927045,"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":1,"state":"open","created_at":"2017-11-20T22:06:17Z","updated_at":"2017-11-20T22:16:06Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/donaldduck/testrepo/pulls/3/commits","review_comments_url":"https://api.github.com/repos/donaldduck/testrepo/pulls/3/comments","review_comment_url":"https://api.github.com/repos/donaldduck/testrepo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/donaldduck/testrepo/issues/3/comments","statuses_url":"https://api.github.com/repos/donaldduck/testrepo/statuses/7bcac7f8437259efb1fdbaae4c59d591710ddd4f","head":{"label":"donaldduck:mybranch1","ref":"mybranch1","sha":"7bcac7f8437259efb1fdbaae4c59d591710ddd4f","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},"repo":{"id":111466048,"name":"testrepo","full_name":"donaldduck/testrepo","owner":{"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},"private":false,"html_url":"https://github.com/donaldduck/testrepo","description":"Test
|
76
|
+
repository - IGNORE.","fork":false,"url":"https://api.github.com/repos/donaldduck/testrepo","forks_url":"https://api.github.com/repos/donaldduck/testrepo/forks","keys_url":"https://api.github.com/repos/donaldduck/testrepo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donaldduck/testrepo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donaldduck/testrepo/teams","hooks_url":"https://api.github.com/repos/donaldduck/testrepo/hooks","issue_events_url":"https://api.github.com/repos/donaldduck/testrepo/issues/events{/number}","events_url":"https://api.github.com/repos/donaldduck/testrepo/events","assignees_url":"https://api.github.com/repos/donaldduck/testrepo/assignees{/user}","branches_url":"https://api.github.com/repos/donaldduck/testrepo/branches{/branch}","tags_url":"https://api.github.com/repos/donaldduck/testrepo/tags","blobs_url":"https://api.github.com/repos/donaldduck/testrepo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donaldduck/testrepo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donaldduck/testrepo/git/refs{/sha}","trees_url":"https://api.github.com/repos/donaldduck/testrepo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donaldduck/testrepo/statuses/{sha}","languages_url":"https://api.github.com/repos/donaldduck/testrepo/languages","stargazers_url":"https://api.github.com/repos/donaldduck/testrepo/stargazers","contributors_url":"https://api.github.com/repos/donaldduck/testrepo/contributors","subscribers_url":"https://api.github.com/repos/donaldduck/testrepo/subscribers","subscription_url":"https://api.github.com/repos/donaldduck/testrepo/subscription","commits_url":"https://api.github.com/repos/donaldduck/testrepo/commits{/sha}","git_commits_url":"https://api.github.com/repos/donaldduck/testrepo/git/commits{/sha}","comments_url":"https://api.github.com/repos/donaldduck/testrepo/comments{/number}","issue_comment_url":"https://api.github.com/repos/donaldduck/testrepo/issues/comments{/number}","contents_url":"https://api.github.com/repos/donaldduck/testrepo/contents/{+path}","compare_url":"https://api.github.com/repos/donaldduck/testrepo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donaldduck/testrepo/merges","archive_url":"https://api.github.com/repos/donaldduck/testrepo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donaldduck/testrepo/downloads","issues_url":"https://api.github.com/repos/donaldduck/testrepo/issues{/number}","pulls_url":"https://api.github.com/repos/donaldduck/testrepo/pulls{/number}","milestones_url":"https://api.github.com/repos/donaldduck/testrepo/milestones{/number}","notifications_url":"https://api.github.com/repos/donaldduck/testrepo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donaldduck/testrepo/labels{/name}","releases_url":"https://api.github.com/repos/donaldduck/testrepo/releases{/id}","deployments_url":"https://api.github.com/repos/donaldduck/testrepo/deployments","created_at":"2017-11-20T21:43:40Z","updated_at":"2017-11-20T21:55:51Z","pushed_at":"2017-11-21T09:49:44Z","git_url":"git://github.com/donaldduck/testrepo.git","ssh_url":"git@github.com:donaldduck/testrepo.git","clone_url":"https://github.com/donaldduck/testrepo.git","svn_url":"https://github.com/donaldduck/testrepo","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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"donaldduck:master","ref":"master","sha":"12222a3b36b0671032c110a483a3ef15153d9461","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},"repo":{"id":111466048,"name":"testrepo","full_name":"donaldduck/testrepo","owner":{"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},"private":false,"html_url":"https://github.com/donaldduck/testrepo","description":"Test
|
77
|
+
repository - IGNORE.","fork":false,"url":"https://api.github.com/repos/donaldduck/testrepo","forks_url":"https://api.github.com/repos/donaldduck/testrepo/forks","keys_url":"https://api.github.com/repos/donaldduck/testrepo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donaldduck/testrepo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donaldduck/testrepo/teams","hooks_url":"https://api.github.com/repos/donaldduck/testrepo/hooks","issue_events_url":"https://api.github.com/repos/donaldduck/testrepo/issues/events{/number}","events_url":"https://api.github.com/repos/donaldduck/testrepo/events","assignees_url":"https://api.github.com/repos/donaldduck/testrepo/assignees{/user}","branches_url":"https://api.github.com/repos/donaldduck/testrepo/branches{/branch}","tags_url":"https://api.github.com/repos/donaldduck/testrepo/tags","blobs_url":"https://api.github.com/repos/donaldduck/testrepo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donaldduck/testrepo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donaldduck/testrepo/git/refs{/sha}","trees_url":"https://api.github.com/repos/donaldduck/testrepo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donaldduck/testrepo/statuses/{sha}","languages_url":"https://api.github.com/repos/donaldduck/testrepo/languages","stargazers_url":"https://api.github.com/repos/donaldduck/testrepo/stargazers","contributors_url":"https://api.github.com/repos/donaldduck/testrepo/contributors","subscribers_url":"https://api.github.com/repos/donaldduck/testrepo/subscribers","subscription_url":"https://api.github.com/repos/donaldduck/testrepo/subscription","commits_url":"https://api.github.com/repos/donaldduck/testrepo/commits{/sha}","git_commits_url":"https://api.github.com/repos/donaldduck/testrepo/git/commits{/sha}","comments_url":"https://api.github.com/repos/donaldduck/testrepo/comments{/number}","issue_comment_url":"https://api.github.com/repos/donaldduck/testrepo/issues/comments{/number}","contents_url":"https://api.github.com/repos/donaldduck/testrepo/contents/{+path}","compare_url":"https://api.github.com/repos/donaldduck/testrepo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donaldduck/testrepo/merges","archive_url":"https://api.github.com/repos/donaldduck/testrepo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donaldduck/testrepo/downloads","issues_url":"https://api.github.com/repos/donaldduck/testrepo/issues{/number}","pulls_url":"https://api.github.com/repos/donaldduck/testrepo/pulls{/number}","milestones_url":"https://api.github.com/repos/donaldduck/testrepo/milestones{/number}","notifications_url":"https://api.github.com/repos/donaldduck/testrepo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donaldduck/testrepo/labels{/name}","releases_url":"https://api.github.com/repos/donaldduck/testrepo/releases{/id}","deployments_url":"https://api.github.com/repos/donaldduck/testrepo/deployments","created_at":"2017-11-20T21:43:40Z","updated_at":"2017-11-20T21:55:51Z","pushed_at":"2017-11-21T09:49:44Z","git_url":"git://github.com/donaldduck/testrepo.git","ssh_url":"git@github.com:donaldduck/testrepo.git","clone_url":"https://github.com/donaldduck/testrepo.git","svn_url":"https://github.com/donaldduck/testrepo","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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/donaldduck/testrepo/pulls/3"},"html":{"href":"https://github.com/donaldduck/testrepo/pull/3"},"issue":{"href":"https://api.github.com/repos/donaldduck/testrepo/issues/3"},"comments":{"href":"https://api.github.com/repos/donaldduck/testrepo/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/donaldduck/testrepo/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/donaldduck/testrepo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/donaldduck/testrepo/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/donaldduck/testrepo/statuses/7bcac7f8437259efb1fdbaae4c59d591710ddd4f"}},"author_association":"OWNER"}]'
|
78
|
+
http_version:
|
79
|
+
recorded_at: Tue, 21 Nov 2017 10:11:12 GMT
|
80
|
+
- request:
|
81
|
+
method: put
|
82
|
+
uri: https://api.github.com/repos/donaldduck/testrepo/pulls/3/merge
|
83
|
+
body:
|
84
|
+
encoding: UTF-8
|
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 10:11:13 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
|
+
- '4961'
|
116
|
+
X-Ratelimit-Reset:
|
117
|
+
- '1511259603'
|
118
|
+
Cache-Control:
|
119
|
+
- private, max-age=60, s-maxage=60
|
120
|
+
Vary:
|
121
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
122
|
+
Etag:
|
123
|
+
- W/"bf08aff09d3d97684d26c7c64e197ff8"
|
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
|
+
- ''
|
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.898902'
|
148
|
+
X-Github-Request-Id:
|
149
|
+
- B332:62B8:26D900:6092B3:5A13FBC0
|
150
|
+
body:
|
151
|
+
encoding: ASCII-8BIT
|
152
|
+
string: '{"sha":"49707278beaea1e5fd7e8ad553e8cbee2a48da71","merged":true,"message":"Pull
|
153
|
+
Request successfully merged"}'
|
154
|
+
http_version:
|
155
|
+
recorded_at: Tue, 21 Nov 2017 10:11:13 GMT
|
156
|
+
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.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saverio Miroddi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simple_scripting
|
@@ -33,6 +33,7 @@ executables:
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
+
- ".rspec"
|
36
37
|
- ".rubocop.yml"
|
37
38
|
- ".rubocop_todo.yml"
|
38
39
|
- ".ruby-version"
|
@@ -42,16 +43,18 @@ files:
|
|
42
43
|
- README.md
|
43
44
|
- bin/geet
|
44
45
|
- geet.gemspec
|
46
|
+
- lib/geet/commandline/commands.rb
|
47
|
+
- lib/geet/commandline/configuration.rb
|
45
48
|
- lib/geet/git/repository.rb
|
46
|
-
- lib/geet/
|
47
|
-
- lib/geet/
|
48
|
-
- lib/geet/
|
49
|
-
- lib/geet/
|
50
|
-
- lib/geet/
|
51
|
-
- lib/geet/
|
52
|
-
- lib/geet/
|
53
|
-
- lib/geet/
|
54
|
-
- lib/geet/
|
49
|
+
- lib/geet/github/abstract_issue.rb
|
50
|
+
- lib/geet/github/account.rb
|
51
|
+
- lib/geet/github/api_interface.rb
|
52
|
+
- lib/geet/github/collaborator.rb
|
53
|
+
- lib/geet/github/gist.rb
|
54
|
+
- lib/geet/github/issue.rb
|
55
|
+
- lib/geet/github/label.rb
|
56
|
+
- lib/geet/github/milestone.rb
|
57
|
+
- lib/geet/github/pr.rb
|
55
58
|
- lib/geet/helpers/os_helper.rb
|
56
59
|
- lib/geet/services/create_gist.rb
|
57
60
|
- lib/geet/services/create_issue.rb
|
@@ -62,6 +65,28 @@ files:
|
|
62
65
|
- lib/geet/services/list_prs.rb
|
63
66
|
- lib/geet/services/merge_pr.rb
|
64
67
|
- lib/geet/version.rb
|
68
|
+
- spec/integration/create_gist_spec.rb
|
69
|
+
- spec/integration/create_issue_spec.rb
|
70
|
+
- spec/integration/create_pr_spec.rb
|
71
|
+
- spec/integration/list_issues_spec.rb
|
72
|
+
- spec/integration/list_labels_spec.rb
|
73
|
+
- spec/integration/list_milestones_spec.rb
|
74
|
+
- spec/integration/list_prs_spec.rb
|
75
|
+
- spec/integration/merge_pr_spec.rb
|
76
|
+
- spec/spec_helper.rb
|
77
|
+
- spec/vcr_cassettes/create_gist_private.yml
|
78
|
+
- spec/vcr_cassettes/create_gist_public.yml
|
79
|
+
- spec/vcr_cassettes/create_issue.yml
|
80
|
+
- spec/vcr_cassettes/create_issue_upstream.yml
|
81
|
+
- spec/vcr_cassettes/create_pr.yml
|
82
|
+
- spec/vcr_cassettes/create_pr_upstream.yml
|
83
|
+
- spec/vcr_cassettes/list_issues.yml
|
84
|
+
- spec/vcr_cassettes/list_issues_upstream.yml
|
85
|
+
- spec/vcr_cassettes/list_labels.yml
|
86
|
+
- spec/vcr_cassettes/list_milestones.yml
|
87
|
+
- spec/vcr_cassettes/list_prs.yml
|
88
|
+
- spec/vcr_cassettes/list_prs_upstream.yml
|
89
|
+
- spec/vcr_cassettes/merge_pr.yml
|
65
90
|
homepage: https://github.com/saveriomiroddi/geet
|
66
91
|
licenses:
|
67
92
|
- GPL-3.0
|
data/lib/geet/git_hub/account.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Geet
|
4
|
-
module GitHub
|
5
|
-
class Account
|
6
|
-
def initialize(api_helper)
|
7
|
-
@api_helper = api_helper
|
8
|
-
end
|
9
|
-
|
10
|
-
def authenticated_user
|
11
|
-
request_address = 'https://api.github.com/user'
|
12
|
-
|
13
|
-
response = @api_helper.send_request(request_address)
|
14
|
-
|
15
|
-
response.fetch('login')
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
data/lib/geet/git_hub/pr.rb
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Geet
|
4
|
-
module GitHub
|
5
|
-
class PR < AbstractIssue
|
6
|
-
# See AbstractIssue for the circular dependency issue notes.
|
7
|
-
autoload :AbstractIssue, File.expand_path('abstract_issue', __dir__)
|
8
|
-
|
9
|
-
# See https://developer.github.com/v3/pulls/#create-a-pull-request
|
10
|
-
#
|
11
|
-
def self.create(repository, title, description, head, api_helper)
|
12
|
-
request_address = "#{api_helper.api_repo_link}/pulls"
|
13
|
-
|
14
|
-
head = "#{repository.authenticated_user}:#{head}" if api_helper.upstream?
|
15
|
-
request_data = { title: title, body: description, head: head, base: 'master' }
|
16
|
-
|
17
|
-
response = api_helper.send_request(request_address, data: request_data)
|
18
|
-
|
19
|
-
number, title, link = response.fetch_values('number', 'title', 'html_url')
|
20
|
-
|
21
|
-
new(number, api_helper, title, link)
|
22
|
-
end
|
23
|
-
|
24
|
-
# See https://developer.github.com/v3/pulls/#list-pull-requests
|
25
|
-
#
|
26
|
-
def self.list(api_helper, head: nil)
|
27
|
-
request_address = "#{api_helper.api_repo_link}/pulls"
|
28
|
-
request_params = { head: head } if head
|
29
|
-
|
30
|
-
response = api_helper.send_request(request_address, params: request_params, multipage: true)
|
31
|
-
|
32
|
-
response.map do |issue_data|
|
33
|
-
number = issue_data.fetch('number')
|
34
|
-
title = issue_data.fetch('title')
|
35
|
-
link = issue_data.fetch('html_url')
|
36
|
-
|
37
|
-
new(number, api_helper, title, link)
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
# See https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button
|
42
|
-
#
|
43
|
-
def merge
|
44
|
-
request_address = "#{@api_helper.api_repo_link}/pulls/#{number}/merge"
|
45
|
-
|
46
|
-
@api_helper.send_request(request_address, http_method: :put)
|
47
|
-
end
|
48
|
-
|
49
|
-
def request_review(reviewers)
|
50
|
-
request_data = { reviewers: reviewers }
|
51
|
-
request_address = "#{@api_helper.api_repo_link}/pulls/#{number}/requested_reviewers"
|
52
|
-
|
53
|
-
@api_helper.send_request(request_address, data: request_data)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|