{"action":"opened","number":55,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/pulls/55","id":69780483,"html_url":"https://github.com/jenkinsci/github-branch-source-plugin/pull/55","diff_url":"https://github.com/jenkinsci/github-branch-source-plugin/pull/55.diff","patch_url":"https://github.com/jenkinsci/github-branch-source-plugin/pull/55.patch","issue_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/issues/55","number":55,"state":"open","locked":false,"title":"Test case for scanning a GitHub repo","user":{"login":"kwhetstone","id":14875282,"avatar_url":"https://avatars.githubusercontent.com/u/14875282?v=3","gravatar_id":"","url":"https://api.github.com/users/kwhetstone","html_url":"https://github.com/kwhetstone","followers_url":"https://api.github.com/users/kwhetstone/followers","following_url":"https://api.github.com/users/kwhetstone/following{/other_user}","gists_url":"https://api.github.com/users/kwhetstone/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhetstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhetstone/subscriptions","organizations_url":"https://api.github.com/users/kwhetstone/orgs","repos_url":"https://api.github.com/users/kwhetstone/repos","events_url":"https://api.github.com/users/kwhetstone/events{/privacy}","received_events_url":"https://api.github.com/users/kwhetstone/received_events","type":"User","site_admin":false},"body":"First test case for scanning a GitHub repo.  This mocks the GitHub responses so no actual connection to GitHub is needed; testing can be done in isolation.  Future work will update these mocks so they won't be out of date, and can catch errors before going out as a release.  Test coverage will expand to other methods and utilities soon.\r\n@reviewbybees ","created_at":"2016-05-12T05:13:30Z","updated_at":"2016-05-12T05:13:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/pulls/55/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/pulls/55/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/issues/55/comments","statuses_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/statuses/77668659677f7d93fece66b099f0e76b61dd6300","head":{"label":"kwhetstone:mock-github","ref":"mock-github","sha":"77668659677f7d93fece66b099f0e76b61dd6300","user":{"login":"kwhetstone","id":14875282,"avatar_url":"https://avatars.githubusercontent.com/u/14875282?v=3","gravatar_id":"","url":"https://api.github.com/users/kwhetstone","html_url":"https://github.com/kwhetstone","followers_url":"https://api.github.com/users/kwhetstone/followers","following_url":"https://api.github.com/users/kwhetstone/following{/other_user}","gists_url":"https://api.github.com/users/kwhetstone/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhetstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhetstone/subscriptions","organizations_url":"https://api.github.com/users/kwhetstone/orgs","repos_url":"https://api.github.com/users/kwhetstone/repos","events_url":"https://api.github.com/users/kwhetstone/events{/privacy}","received_events_url":"https://api.github.com/users/kwhetstone/received_events","type":"User","site_admin":false},"repo":{"id":57360844,"name":"github-branch-source-plugin","full_name":"kwhetstone/github-branch-source-plugin","owner":{"login":"kwhetstone","id":14875282,"avatar_url":"https://avatars.githubusercontent.com/u/14875282?v=3","gravatar_id":"","url":"https://api.github.com/users/kwhetstone","html_url":"https://github.com/kwhetstone","followers_url":"https://api.github.com/users/kwhetstone/followers","following_url":"https://api.github.com/users/kwhetstone/following{/other_user}","gists_url":"https://api.github.com/users/kwhetstone/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhetstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhetstone/subscriptions","organizations_url":"https://api.github.com/users/kwhetstone/orgs","repos_url":"https://api.github.com/users/kwhetstone/repos","events_url":"https://api.github.com/users/kwhetstone/events{/privacy}","received_events_url":"https://api.github.com/users/kwhetstone/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kwhetstone/github-branch-source-plugin","description":"","fork":true,"url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin","forks_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/forks","keys_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/teams","hooks_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/hooks","issue_events_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/events","assignees_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/tags","blobs_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/languages","stargazers_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/stargazers","contributors_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/contributors","subscribers_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/subscribers","subscription_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/subscription","commits_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/merges","archive_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/downloads","issues_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/labels{/name}","releases_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/kwhetstone/github-branch-source-plugin/deployments","created_at":"2016-04-29T06:37:52Z","updated_at":"2016-04-29T06:37:54Z","pushed_at":"2016-05-12T04:49:40Z","git_url":"git://github.com/kwhetstone/github-branch-source-plugin.git","ssh_url":"git@github.com:kwhetstone/github-branch-source-plugin.git","clone_url":"https://github.com/kwhetstone/github-branch-source-plugin.git","svn_url":"https://github.com/kwhetstone/github-branch-source-plugin","homepage":"https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+GitHub+Branch+Source+Plugin","size":212,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkinsci:master","ref":"master","sha":"f378c3c5e4d246703837af3ff0866899169546c4","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":43903637,"name":"github-branch-source-plugin","full_name":"jenkinsci/github-branch-source-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/github-branch-source-plugin","description":"","fork":true,"url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin","forks_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/deployments","created_at":"2015-10-08T16:52:19Z","updated_at":"2016-05-04T17:30:54Z","pushed_at":"2016-05-12T05:13:30Z","git_url":"git://github.com/jenkinsci/github-branch-source-plugin.git","ssh_url":"git@github.com:jenkinsci/github-branch-source-plugin.git","clone_url":"https://github.com/jenkinsci/github-branch-source-plugin.git","svn_url":"https://github.com/jenkinsci/github-branch-source-plugin","homepage":"https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+GitHub+Branch+Source+Plugin","size":232,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":4,"forks":18,"open_issues":4,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/pulls/55"},"html":{"href":"https://github.com/jenkinsci/github-branch-source-plugin/pull/55"},"issue":{"href":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/issues/55"},"comments":{"href":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/github-branch-source-plugin/statuses/77668659677f7d93fece66b099f0e76b61dd6300"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":411,"deletions":0,"changed_files":16}}