{"action":"created","comment":{"url":"https://api.github.com/repos/jboss-set/aphrodite/pulls/comments/61405919","id":61405919,"diff_hunk":"@@ -474,4 +474,22 @@ private String getCombineStatus(List<CommitStatus> comStatuses) {\n         return (flag == 0) ? \"success\" : null;\n     }\n \n+    @Override\n+    public boolean repositoryAccessable(URL url) {\n+        if (url.toString().contains(\"svn.jboss.org\")) {\n+            // svn repository is not supported\n+            Utils.logWarnMessage(LOG, \"svn repository : \" + url + \" is not supported.\");\n+            return false;\n+        }\n+        RepositoryId id = RepositoryId.createFromUrl(url);\n+        RepositoryService rs = new RepositoryService(gitHubClient);\n+        try {\n+            rs.getBranches(id); // action to test account repository accessibility\n+        } catch (IOException e) {\n+            Utils.logWarnMessage(LOG,\n+                    \"repository : \" + url + \" is not accessable, check repository link and your account permission.\");","path":"src/main/java/org/jboss/set/aphrodite/repository/services/github/GitHubRepositoryService.java","position":17,"original_position":17,"commit_id":"62032eeed96f052cb91ef1a1be44d77929eda277","original_commit_id":"62032eeed96f052cb91ef1a1be44d77929eda277","user":{"login":"ryanemerson","id":765332,"avatar_url":"https://avatars.githubusercontent.com/u/765332?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanemerson","html_url":"https://github.com/ryanemerson","followers_url":"https://api.github.com/users/ryanemerson/followers","following_url":"https://api.github.com/users/ryanemerson/following{/other_user}","gists_url":"https://api.github.com/users/ryanemerson/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanemerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanemerson/subscriptions","organizations_url":"https://api.github.com/users/ryanemerson/orgs","repos_url":"https://api.github.com/users/ryanemerson/repos","events_url":"https://api.github.com/users/ryanemerson/events{/privacy}","received_events_url":"https://api.github.com/users/ryanemerson/received_events","type":"User","site_admin":false},"body":"I think this would be better if you logged the IOException and/or cause, that way the user will at least no the reason (HTTP code) of why the repository isn't accessible?","created_at":"2016-04-28T10:32:17Z","updated_at":"2016-04-28T10:32:17Z","html_url":"https://github.com/jboss-set/aphrodite/pull/84#discussion_r61405919","pull_request_url":"https://api.github.com/repos/jboss-set/aphrodite/pulls/84","_links":{"self":{"href":"https://api.github.com/repos/jboss-set/aphrodite/pulls/comments/61405919"},"html":{"href":"https://github.com/jboss-set/aphrodite/pull/84#discussion_r61405919"},"pull_request":{"href":"https://api.github.com/repos/jboss-set/aphrodite/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/jboss-set/aphrodite/pulls/84","id":68173644,"html_url":"https://github.com/jboss-set/aphrodite/pull/84","diff_url":"https://github.com/jboss-set/aphrodite/pull/84.diff","patch_url":"https://github.com/jboss-set/aphrodite/pull/84.patch","issue_url":"https://api.github.com/repos/jboss-set/aphrodite/issues/84","number":84,"state":"open","locked":false,"title":"test repository accessibility.","user":{"login":"soul2zimate","id":1904517,"avatar_url":"https://avatars.githubusercontent.com/u/1904517?v=3","gravatar_id":"","url":"https://api.github.com/users/soul2zimate","html_url":"https://github.com/soul2zimate","followers_url":"https://api.github.com/users/soul2zimate/followers","following_url":"https://api.github.com/users/soul2zimate/following{/other_user}","gists_url":"https://api.github.com/users/soul2zimate/gists{/gist_id}","starred_url":"https://api.github.com/users/soul2zimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soul2zimate/subscriptions","organizations_url":"https://api.github.com/users/soul2zimate/orgs","repos_url":"https://api.github.com/users/soul2zimate/repos","events_url":"https://api.github.com/users/soul2zimate/events{/privacy}","received_events_url":"https://api.github.com/users/soul2zimate/received_events","type":"User","site_admin":false},"body":"catch possible NotFoundException in case of account pull-processor has no permission to visit internal repository on GitHub. Otherwise, it breaks Aphrodite Stream Service initialization. ","created_at":"2016-04-28T07:09:45Z","updated_at":"2016-04-28T10:32:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a103c973e2c437714d9b190ada89d55f693d88d4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jboss-set/aphrodite/pulls/84/commits","review_comments_url":"https://api.github.com/repos/jboss-set/aphrodite/pulls/84/comments","review_comment_url":"https://api.github.com/repos/jboss-set/aphrodite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jboss-set/aphrodite/issues/84/comments","statuses_url":"https://api.github.com/repos/jboss-set/aphrodite/statuses/62032eeed96f052cb91ef1a1be44d77929eda277","head":{"label":"soul2zimate:NotFoundException","ref":"NotFoundException","sha":"62032eeed96f052cb91ef1a1be44d77929eda277","user":{"login":"soul2zimate","id":1904517,"avatar_url":"https://avatars.githubusercontent.com/u/1904517?v=3","gravatar_id":"","url":"https://api.github.com/users/soul2zimate","html_url":"https://github.com/soul2zimate","followers_url":"https://api.github.com/users/soul2zimate/followers","following_url":"https://api.github.com/users/soul2zimate/following{/other_user}","gists_url":"https://api.github.com/users/soul2zimate/gists{/gist_id}","starred_url":"https://api.github.com/users/soul2zimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soul2zimate/subscriptions","organizations_url":"https://api.github.com/users/soul2zimate/orgs","repos_url":"https://api.github.com/users/soul2zimate/repos","events_url":"https://api.github.com/users/soul2zimate/events{/privacy}","received_events_url":"https://api.github.com/users/soul2zimate/received_events","type":"User","site_admin":false},"repo":{"id":52338971,"name":"aphrodite","full_name":"soul2zimate/aphrodite","owner":{"login":"soul2zimate","id":1904517,"avatar_url":"https://avatars.githubusercontent.com/u/1904517?v=3","gravatar_id":"","url":"https://api.github.com/users/soul2zimate","html_url":"https://github.com/soul2zimate","followers_url":"https://api.github.com/users/soul2zimate/followers","following_url":"https://api.github.com/users/soul2zimate/following{/other_user}","gists_url":"https://api.github.com/users/soul2zimate/gists{/gist_id}","starred_url":"https://api.github.com/users/soul2zimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soul2zimate/subscriptions","organizations_url":"https://api.github.com/users/soul2zimate/orgs","repos_url":"https://api.github.com/users/soul2zimate/repos","events_url":"https://api.github.com/users/soul2zimate/events{/privacy}","received_events_url":"https://api.github.com/users/soul2zimate/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/soul2zimate/aphrodite","description":"A java api for retrieving and updating SET issues from multiple issue trackers.","fork":true,"url":"https://api.github.com/repos/soul2zimate/aphrodite","forks_url":"https://api.github.com/repos/soul2zimate/aphrodite/forks","keys_url":"https://api.github.com/repos/soul2zimate/aphrodite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soul2zimate/aphrodite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soul2zimate/aphrodite/teams","hooks_url":"https://api.github.com/repos/soul2zimate/aphrodite/hooks","issue_events_url":"https://api.github.com/repos/soul2zimate/aphrodite/issues/events{/number}","events_url":"https://api.github.com/repos/soul2zimate/aphrodite/events","assignees_url":"https://api.github.com/repos/soul2zimate/aphrodite/assignees{/user}","branches_url":"https://api.github.com/repos/soul2zimate/aphrodite/branches{/branch}","tags_url":"https://api.github.com/repos/soul2zimate/aphrodite/tags","blobs_url":"https://api.github.com/repos/soul2zimate/aphrodite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soul2zimate/aphrodite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soul2zimate/aphrodite/git/refs{/sha}","trees_url":"https://api.github.com/repos/soul2zimate/aphrodite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soul2zimate/aphrodite/statuses/{sha}","languages_url":"https://api.github.com/repos/soul2zimate/aphrodite/languages","stargazers_url":"https://api.github.com/repos/soul2zimate/aphrodite/stargazers","contributors_url":"https://api.github.com/repos/soul2zimate/aphrodite/contributors","subscribers_url":"https://api.github.com/repos/soul2zimate/aphrodite/subscribers","subscription_url":"https://api.github.com/repos/soul2zimate/aphrodite/subscription","commits_url":"https://api.github.com/repos/soul2zimate/aphrodite/commits{/sha}","git_commits_url":"https://api.github.com/repos/soul2zimate/aphrodite/git/commits{/sha}","comments_url":"https://api.github.com/repos/soul2zimate/aphrodite/comments{/number}","issue_comment_url":"https://api.github.com/repos/soul2zimate/aphrodite/issues/comments{/number}","contents_url":"https://api.github.com/repos/soul2zimate/aphrodite/contents/{+path}","compare_url":"https://api.github.com/repos/soul2zimate/aphrodite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soul2zimate/aphrodite/merges","archive_url":"https://api.github.com/repos/soul2zimate/aphrodite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soul2zimate/aphrodite/downloads","issues_url":"https://api.github.com/repos/soul2zimate/aphrodite/issues{/number}","pulls_url":"https://api.github.com/repos/soul2zimate/aphrodite/pulls{/number}","milestones_url":"https://api.github.com/repos/soul2zimate/aphrodite/milestones{/number}","notifications_url":"https://api.github.com/repos/soul2zimate/aphrodite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soul2zimate/aphrodite/labels{/name}","releases_url":"https://api.github.com/repos/soul2zimate/aphrodite/releases{/id}","deployments_url":"https://api.github.com/repos/soul2zimate/aphrodite/deployments","created_at":"2016-02-23T07:13:20Z","updated_at":"2016-02-23T07:13:20Z","pushed_at":"2016-04-28T09:36:33Z","git_url":"git://github.com/soul2zimate/aphrodite.git","ssh_url":"git@github.com:soul2zimate/aphrodite.git","clone_url":"https://github.com/soul2zimate/aphrodite.git","svn_url":"https://github.com/soul2zimate/aphrodite","homepage":"","size":743,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"jboss-set:master","ref":"master","sha":"2aecec9dd792aae0d76763758e09e7cc68513cb9","user":{"login":"jboss-set","id":3928966,"avatar_url":"https://avatars.githubusercontent.com/u/3928966?v=3","gravatar_id":"","url":"https://api.github.com/users/jboss-set","html_url":"https://github.com/jboss-set","followers_url":"https://api.github.com/users/jboss-set/followers","following_url":"https://api.github.com/users/jboss-set/following{/other_user}","gists_url":"https://api.github.com/users/jboss-set/gists{/gist_id}","starred_url":"https://api.github.com/users/jboss-set/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jboss-set/subscriptions","organizations_url":"https://api.github.com/users/jboss-set/orgs","repos_url":"https://api.github.com/users/jboss-set/repos","events_url":"https://api.github.com/users/jboss-set/events{/privacy}","received_events_url":"https://api.github.com/users/jboss-set/received_events","type":"Organization","site_admin":false},"repo":{"id":42652240,"name":"aphrodite","full_name":"jboss-set/aphrodite","owner":{"login":"jboss-set","id":3928966,"avatar_url":"https://avatars.githubusercontent.com/u/3928966?v=3","gravatar_id":"","url":"https://api.github.com/users/jboss-set","html_url":"https://github.com/jboss-set","followers_url":"https://api.github.com/users/jboss-set/followers","following_url":"https://api.github.com/users/jboss-set/following{/other_user}","gists_url":"https://api.github.com/users/jboss-set/gists{/gist_id}","starred_url":"https://api.github.com/users/jboss-set/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jboss-set/subscriptions","organizations_url":"https://api.github.com/users/jboss-set/orgs","repos_url":"https://api.github.com/users/jboss-set/repos","events_url":"https://api.github.com/users/jboss-set/events{/privacy}","received_events_url":"https://api.github.com/users/jboss-set/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jboss-set/aphrodite","description":"A java api for retrieving and updating SET issues from multiple issue trackers.","fork":false,"url":"https://api.github.com/repos/jboss-set/aphrodite","forks_url":"https://api.github.com/repos/jboss-set/aphrodite/forks","keys_url":"https://api.github.com/repos/jboss-set/aphrodite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jboss-set/aphrodite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jboss-set/aphrodite/teams","hooks_url":"https://api.github.com/repos/jboss-set/aphrodite/hooks","issue_events_url":"https://api.github.com/repos/jboss-set/aphrodite/issues/events{/number}","events_url":"https://api.github.com/repos/jboss-set/aphrodite/events","assignees_url":"https://api.github.com/repos/jboss-set/aphrodite/assignees{/user}","branches_url":"https://api.github.com/repos/jboss-set/aphrodite/branches{/branch}","tags_url":"https://api.github.com/repos/jboss-set/aphrodite/tags","blobs_url":"https://api.github.com/repos/jboss-set/aphrodite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jboss-set/aphrodite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jboss-set/aphrodite/git/refs{/sha}","trees_url":"https://api.github.com/repos/jboss-set/aphrodite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jboss-set/aphrodite/statuses/{sha}","languages_url":"https://api.github.com/repos/jboss-set/aphrodite/languages","stargazers_url":"https://api.github.com/repos/jboss-set/aphrodite/stargazers","contributors_url":"https://api.github.com/repos/jboss-set/aphrodite/contributors","subscribers_url":"https://api.github.com/repos/jboss-set/aphrodite/subscribers","subscription_url":"https://api.github.com/repos/jboss-set/aphrodite/subscription","commits_url":"https://api.github.com/repos/jboss-set/aphrodite/commits{/sha}","git_commits_url":"https://api.github.com/repos/jboss-set/aphrodite/git/commits{/sha}","comments_url":"https://api.github.com/repos/jboss-set/aphrodite/comments{/number}","issue_comment_url":"https://api.github.com/repos/jboss-set/aphrodite/issues/comments{/number}","contents_url":"https://api.github.com/repos/jboss-set/aphrodite/contents/{+path}","compare_url":"https://api.github.com/repos/jboss-set/aphrodite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jboss-set/aphrodite/merges","archive_url":"https://api.github.com/repos/jboss-set/aphrodite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jboss-set/aphrodite/downloads","issues_url":"https://api.github.com/repos/jboss-set/aphrodite/issues{/number}","pulls_url":"https://api.github.com/repos/jboss-set/aphrodite/pulls{/number}","milestones_url":"https://api.github.com/repos/jboss-set/aphrodite/milestones{/number}","notifications_url":"https://api.github.com/repos/jboss-set/aphrodite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jboss-set/aphrodite/labels{/name}","releases_url":"https://api.github.com/repos/jboss-set/aphrodite/releases{/id}","deployments_url":"https://api.github.com/repos/jboss-set/aphrodite/deployments","created_at":"2015-09-17T11:25:20Z","updated_at":"2016-01-11T09:24:29Z","pushed_at":"2016-04-28T09:36:34Z","git_url":"git://github.com/jboss-set/aphrodite.git","ssh_url":"git@github.com:jboss-set/aphrodite.git","clone_url":"https://github.com/jboss-set/aphrodite.git","svn_url":"https://github.com/jboss-set/aphrodite","homepage":"","size":761,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":8,"forks":8,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jboss-set/aphrodite/pulls/84"},"html":{"href":"https://github.com/jboss-set/aphrodite/pull/84"},"issue":{"href":"https://api.github.com/repos/jboss-set/aphrodite/issues/84"},"comments":{"href":"https://api.github.com/repos/jboss-set/aphrodite/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/jboss-set/aphrodite/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/jboss-set/aphrodite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jboss-set/aphrodite/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/jboss-set/aphrodite/statuses/62032eeed96f052cb91ef1a1be44d77929eda277"}}}}