{"action":"created","comment":{"url":"https://api.github.com/repos/kohsuke/github-api/pulls/comments/45189858","id":45189858,"diff_hunk":"@@ -205,6 +205,15 @@ public static GitHub connectAnonymously() throws IOException {\n     }\n \n     /**\n+     * Connects to GitHub Enterprise anonymously.\n+     *\n+     * All operations that requires authentication will fail.\n+     */\n+    public static GitHub connectToEnterpriseAnonymously(String apiUrl) throws IOException {","path":"src/main/java/org/kohsuke/github/GitHub.java","position":8,"original_position":8,"commit_id":"a371892409621e50a9d9c5c11d8045cfc1396d34","original_commit_id":"a371892409621e50a9d9c5c11d8045cfc1396d34","user":{"login":"lanwen","id":1964214,"avatar_url":"https://avatars.githubusercontent.com/u/1964214?v=3","gravatar_id":"","url":"https://api.github.com/users/lanwen","html_url":"https://github.com/lanwen","followers_url":"https://api.github.com/users/lanwen/followers","following_url":"https://api.github.com/users/lanwen/following{/other_user}","gists_url":"https://api.github.com/users/lanwen/gists{/gist_id}","starred_url":"https://api.github.com/users/lanwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanwen/subscriptions","organizations_url":"https://api.github.com/users/lanwen/orgs","repos_url":"https://api.github.com/users/lanwen/repos","events_url":"https://api.github.com/users/lanwen/events{/privacy}","received_events_url":"https://api.github.com/users/lanwen/received_events","type":"User","site_admin":false},"body":"-1 for new method. Builder exists for such cases","created_at":"2015-11-18T11:49:13Z","updated_at":"2015-11-18T11:49:13Z","html_url":"https://github.com/kohsuke/github-api/pull/232#discussion_r45189858","pull_request_url":"https://api.github.com/repos/kohsuke/github-api/pulls/232","_links":{"self":{"href":"https://api.github.com/repos/kohsuke/github-api/pulls/comments/45189858"},"html":{"href":"https://github.com/kohsuke/github-api/pull/232#discussion_r45189858"},"pull_request":{"href":"https://api.github.com/repos/kohsuke/github-api/pulls/232"}}},"pull_request":{"url":"https://api.github.com/repos/kohsuke/github-api/pulls/232","id":50748917,"html_url":"https://github.com/kohsuke/github-api/pull/232","diff_url":"https://github.com/kohsuke/github-api/pull/232.diff","patch_url":"https://github.com/kohsuke/github-api/pull/232.patch","issue_url":"https://api.github.com/repos/kohsuke/github-api/issues/232","number":232,"state":"open","locked":false,"title":"Added a new method to validate the GitHub API URL","user":{"login":"recena","id":1021745,"avatar_url":"https://avatars.githubusercontent.com/u/1021745?v=3","gravatar_id":"","url":"https://api.github.com/users/recena","html_url":"https://github.com/recena","followers_url":"https://api.github.com/users/recena/followers","following_url":"https://api.github.com/users/recena/following{/other_user}","gists_url":"https://api.github.com/users/recena/gists{/gist_id}","starred_url":"https://api.github.com/users/recena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recena/subscriptions","organizations_url":"https://api.github.com/users/recena/orgs","repos_url":"https://api.github.com/users/recena/repos","events_url":"https://api.github.com/users/recena/events{/privacy}","received_events_url":"https://api.github.com/users/recena/received_events","type":"User","site_admin":false},"body":"@reviewbybees especially, @oleg-nenashev ","created_at":"2015-11-15T15:37:18Z","updated_at":"2015-11-18T11:49:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c1b74e4337ee1bc961da937f551ff21e2bf0a9b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kohsuke/github-api/pulls/232/commits","review_comments_url":"https://api.github.com/repos/kohsuke/github-api/pulls/232/comments","review_comment_url":"https://api.github.com/repos/kohsuke/github-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kohsuke/github-api/issues/232/comments","statuses_url":"https://api.github.com/repos/kohsuke/github-api/statuses/a371892409621e50a9d9c5c11d8045cfc1396d34","head":{"label":"recena:ValidateApiUrl","ref":"ValidateApiUrl","sha":"a371892409621e50a9d9c5c11d8045cfc1396d34","user":{"login":"recena","id":1021745,"avatar_url":"https://avatars.githubusercontent.com/u/1021745?v=3","gravatar_id":"","url":"https://api.github.com/users/recena","html_url":"https://github.com/recena","followers_url":"https://api.github.com/users/recena/followers","following_url":"https://api.github.com/users/recena/following{/other_user}","gists_url":"https://api.github.com/users/recena/gists{/gist_id}","starred_url":"https://api.github.com/users/recena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recena/subscriptions","organizations_url":"https://api.github.com/users/recena/orgs","repos_url":"https://api.github.com/users/recena/repos","events_url":"https://api.github.com/users/recena/events{/privacy}","received_events_url":"https://api.github.com/users/recena/received_events","type":"User","site_admin":false},"repo":{"id":41689372,"name":"github-api","full_name":"recena/github-api","owner":{"login":"recena","id":1021745,"avatar_url":"https://avatars.githubusercontent.com/u/1021745?v=3","gravatar_id":"","url":"https://api.github.com/users/recena","html_url":"https://github.com/recena","followers_url":"https://api.github.com/users/recena/followers","following_url":"https://api.github.com/users/recena/following{/other_user}","gists_url":"https://api.github.com/users/recena/gists{/gist_id}","starred_url":"https://api.github.com/users/recena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recena/subscriptions","organizations_url":"https://api.github.com/users/recena/orgs","repos_url":"https://api.github.com/users/recena/repos","events_url":"https://api.github.com/users/recena/events{/privacy}","received_events_url":"https://api.github.com/users/recena/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/recena/github-api","description":"Java API for GitHub","fork":true,"url":"https://api.github.com/repos/recena/github-api","forks_url":"https://api.github.com/repos/recena/github-api/forks","keys_url":"https://api.github.com/repos/recena/github-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/recena/github-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/recena/github-api/teams","hooks_url":"https://api.github.com/repos/recena/github-api/hooks","issue_events_url":"https://api.github.com/repos/recena/github-api/issues/events{/number}","events_url":"https://api.github.com/repos/recena/github-api/events","assignees_url":"https://api.github.com/repos/recena/github-api/assignees{/user}","branches_url":"https://api.github.com/repos/recena/github-api/branches{/branch}","tags_url":"https://api.github.com/repos/recena/github-api/tags","blobs_url":"https://api.github.com/repos/recena/github-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/recena/github-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/recena/github-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/recena/github-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/recena/github-api/statuses/{sha}","languages_url":"https://api.github.com/repos/recena/github-api/languages","stargazers_url":"https://api.github.com/repos/recena/github-api/stargazers","contributors_url":"https://api.github.com/repos/recena/github-api/contributors","subscribers_url":"https://api.github.com/repos/recena/github-api/subscribers","subscription_url":"https://api.github.com/repos/recena/github-api/subscription","commits_url":"https://api.github.com/repos/recena/github-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/recena/github-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/recena/github-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/recena/github-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/recena/github-api/contents/{+path}","compare_url":"https://api.github.com/repos/recena/github-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/recena/github-api/merges","archive_url":"https://api.github.com/repos/recena/github-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/recena/github-api/downloads","issues_url":"https://api.github.com/repos/recena/github-api/issues{/number}","pulls_url":"https://api.github.com/repos/recena/github-api/pulls{/number}","milestones_url":"https://api.github.com/repos/recena/github-api/milestones{/number}","notifications_url":"https://api.github.com/repos/recena/github-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/recena/github-api/labels{/name}","releases_url":"https://api.github.com/repos/recena/github-api/releases{/id}","created_at":"2015-08-31T17:12:58Z","updated_at":"2015-08-31T17:12:58Z","pushed_at":"2015-11-16T10:17:20Z","git_url":"git://github.com/recena/github-api.git","ssh_url":"git@github.com:recena/github-api.git","clone_url":"https://github.com/recena/github-api.git","svn_url":"https://github.com/recena/github-api","homepage":"http://github-api.kohsuke.org/","size":8229,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kohsuke:master","ref":"master","sha":"defcd6fe26e15806516cae6d1f9f37874b6bca9f","user":{"login":"kohsuke","id":50003,"avatar_url":"https://avatars.githubusercontent.com/u/50003?v=3","gravatar_id":"","url":"https://api.github.com/users/kohsuke","html_url":"https://github.com/kohsuke","followers_url":"https://api.github.com/users/kohsuke/followers","following_url":"https://api.github.com/users/kohsuke/following{/other_user}","gists_url":"https://api.github.com/users/kohsuke/gists{/gist_id}","starred_url":"https://api.github.com/users/kohsuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohsuke/subscriptions","organizations_url":"https://api.github.com/users/kohsuke/orgs","repos_url":"https://api.github.com/users/kohsuke/repos","events_url":"https://api.github.com/users/kohsuke/events{/privacy}","received_events_url":"https://api.github.com/users/kohsuke/received_events","type":"User","site_admin":false},"repo":{"id":617210,"name":"github-api","full_name":"kohsuke/github-api","owner":{"login":"kohsuke","id":50003,"avatar_url":"https://avatars.githubusercontent.com/u/50003?v=3","gravatar_id":"","url":"https://api.github.com/users/kohsuke","html_url":"https://github.com/kohsuke","followers_url":"https://api.github.com/users/kohsuke/followers","following_url":"https://api.github.com/users/kohsuke/following{/other_user}","gists_url":"https://api.github.com/users/kohsuke/gists{/gist_id}","starred_url":"https://api.github.com/users/kohsuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohsuke/subscriptions","organizations_url":"https://api.github.com/users/kohsuke/orgs","repos_url":"https://api.github.com/users/kohsuke/repos","events_url":"https://api.github.com/users/kohsuke/events{/privacy}","received_events_url":"https://api.github.com/users/kohsuke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kohsuke/github-api","description":"Java API for GitHub","fork":false,"url":"https://api.github.com/repos/kohsuke/github-api","forks_url":"https://api.github.com/repos/kohsuke/github-api/forks","keys_url":"https://api.github.com/repos/kohsuke/github-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kohsuke/github-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kohsuke/github-api/teams","hooks_url":"https://api.github.com/repos/kohsuke/github-api/hooks","issue_events_url":"https://api.github.com/repos/kohsuke/github-api/issues/events{/number}","events_url":"https://api.github.com/repos/kohsuke/github-api/events","assignees_url":"https://api.github.com/repos/kohsuke/github-api/assignees{/user}","branches_url":"https://api.github.com/repos/kohsuke/github-api/branches{/branch}","tags_url":"https://api.github.com/repos/kohsuke/github-api/tags","blobs_url":"https://api.github.com/repos/kohsuke/github-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kohsuke/github-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kohsuke/github-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/kohsuke/github-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kohsuke/github-api/statuses/{sha}","languages_url":"https://api.github.com/repos/kohsuke/github-api/languages","stargazers_url":"https://api.github.com/repos/kohsuke/github-api/stargazers","contributors_url":"https://api.github.com/repos/kohsuke/github-api/contributors","subscribers_url":"https://api.github.com/repos/kohsuke/github-api/subscribers","subscription_url":"https://api.github.com/repos/kohsuke/github-api/subscription","commits_url":"https://api.github.com/repos/kohsuke/github-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/kohsuke/github-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/kohsuke/github-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/kohsuke/github-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/kohsuke/github-api/contents/{+path}","compare_url":"https://api.github.com/repos/kohsuke/github-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kohsuke/github-api/merges","archive_url":"https://api.github.com/repos/kohsuke/github-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kohsuke/github-api/downloads","issues_url":"https://api.github.com/repos/kohsuke/github-api/issues{/number}","pulls_url":"https://api.github.com/repos/kohsuke/github-api/pulls{/number}","milestones_url":"https://api.github.com/repos/kohsuke/github-api/milestones{/number}","notifications_url":"https://api.github.com/repos/kohsuke/github-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kohsuke/github-api/labels{/name}","releases_url":"https://api.github.com/repos/kohsuke/github-api/releases{/id}","created_at":"2010-04-19T04:13:03Z","updated_at":"2015-11-16T08:00:08Z","pushed_at":"2015-11-16T17:35:21Z","git_url":"git://github.com/kohsuke/github-api.git","ssh_url":"git@github.com:kohsuke/github-api.git","clone_url":"https://github.com/kohsuke/github-api.git","svn_url":"https://github.com/kohsuke/github-api","homepage":"http://github-api.kohsuke.org/","size":8759,"stargazers_count":213,"watchers_count":213,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":173,"mirror_url":null,"open_issues_count":26,"forks":173,"open_issues":26,"watchers":213,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kohsuke/github-api/pulls/232"},"html":{"href":"https://github.com/kohsuke/github-api/pull/232"},"issue":{"href":"https://api.github.com/repos/kohsuke/github-api/issues/232"},"comments":{"href":"https://api.github.com/repos/kohsuke/github-api/issues/232/comments"},"review_comments":{"href":"https://api.github.com/repos/kohsuke/github-api/pulls/232/comments"},"review_comment":{"href":"https://api.github.com/repos/kohsuke/github-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kohsuke/github-api/pulls/232/commits"},"statuses":{"href":"https://api.github.com/repos/kohsuke/github-api/statuses/a371892409621e50a9d9c5c11d8045cfc1396d34"}}}}