{"action":"created","comment":{"url":"https://api.github.com/repos/mockito/shipkit/pulls/comments/121231013","pull_request_review_id":43270985,"id":121231013,"diff_hunk":"@@ -119,6 +121,22 @@ public String getPreviousReleaseVersion() {\n     public class GitHub {\n \n         /**\n+         * GitHub API endpoint address, for example:  https://api.github.com/\n+         */\n+        public String getApiUrl() {\n+            return getString(\"gitHub.apiUrl\");\n+        }\n+\n+        /**\n+         * See {@link #getApiUrl()}\n+         *\n+         * @param apiUrl GitHub (or gitHub enterprise) API endpoint address, for example: https://api.github.com/\n+         */","path":"src/main/groovy/org/shipkit/gradle/ReleaseConfiguration.java","position":23,"original_position":23,"commit_id":"9ee2b6cd9241e4b3b8f86ece52362cdf28c20414","original_commit_id":"3866c9ebefc137ff9846407d78d4cf9f45e642c2","user":{"login":"wwilk","id":3420667,"avatar_url":"https://avatars2.githubusercontent.com/u/3420667?v=3","gravatar_id":"","url":"https://api.github.com/users/wwilk","html_url":"https://github.com/wwilk","followers_url":"https://api.github.com/users/wwilk/followers","following_url":"https://api.github.com/users/wwilk/following{/other_user}","gists_url":"https://api.github.com/users/wwilk/gists{/gist_id}","starred_url":"https://api.github.com/users/wwilk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwilk/subscriptions","organizations_url":"https://api.github.com/users/wwilk/orgs","repos_url":"https://api.github.com/users/wwilk/repos","events_url":"https://api.github.com/users/wwilk/events{/privacy}","received_events_url":"https://api.github.com/users/wwilk/received_events","type":"User","site_admin":false},"body":"Maybe a class for all GitHub URLs. It may be useful, since some parameters are repeated, like access_token or per_page","created_at":"2017-06-09T22:01:46Z","updated_at":"2017-06-09T22:01:46Z","html_url":"https://github.com/mockito/shipkit/pull/217#discussion_r121231013","pull_request_url":"https://api.github.com/repos/mockito/shipkit/pulls/217","_links":{"self":{"href":"https://api.github.com/repos/mockito/shipkit/pulls/comments/121231013"},"html":{"href":"https://github.com/mockito/shipkit/pull/217#discussion_r121231013"},"pull_request":{"href":"https://api.github.com/repos/mockito/shipkit/pulls/217"}}},"pull_request":{"url":"https://api.github.com/repos/mockito/shipkit/pulls/217","id":124955150,"html_url":"https://github.com/mockito/shipkit/pull/217","diff_url":"https://github.com/mockito/shipkit/pull/217.diff","patch_url":"https://github.com/mockito/shipkit/pull/217.patch","issue_url":"https://api.github.com/repos/mockito/shipkit/issues/217","number":217,"state":"open","locked":false,"title":"Add support for GitHub Enterprise","user":{"login":"slq","id":210951,"avatar_url":"https://avatars2.githubusercontent.com/u/210951?v=3","gravatar_id":"","url":"https://api.github.com/users/slq","html_url":"https://github.com/slq","followers_url":"https://api.github.com/users/slq/followers","following_url":"https://api.github.com/users/slq/following{/other_user}","gists_url":"https://api.github.com/users/slq/gists{/gist_id}","starred_url":"https://api.github.com/users/slq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slq/subscriptions","organizations_url":"https://api.github.com/users/slq/orgs","repos_url":"https://api.github.com/users/slq/repos","events_url":"https://api.github.com/users/slq/events{/privacy}","received_events_url":"https://api.github.com/users/slq/received_events","type":"User","site_admin":false},"body":"Implementation for #61.\r\n\r\nAdded support for\r\n```\r\ngithub.apiUrl = \"https://github.in.your.company.com/api/v3\"\r\n```\r\n\r\nOnce this pull request is merged, I will update shipkit-examples","created_at":"2017-06-09T21:39:23Z","updated_at":"2017-06-09T22:01:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"284e928f36dfb05ab699b0ca74e6e0416c5842dd","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/mockito/shipkit/pulls/217/commits","review_comments_url":"https://api.github.com/repos/mockito/shipkit/pulls/217/comments","review_comment_url":"https://api.github.com/repos/mockito/shipkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mockito/shipkit/issues/217/comments","statuses_url":"https://api.github.com/repos/mockito/shipkit/statuses/9ee2b6cd9241e4b3b8f86ece52362cdf28c20414","head":{"label":"slq:github-enterprise","ref":"github-enterprise","sha":"9ee2b6cd9241e4b3b8f86ece52362cdf28c20414","user":{"login":"slq","id":210951,"avatar_url":"https://avatars2.githubusercontent.com/u/210951?v=3","gravatar_id":"","url":"https://api.github.com/users/slq","html_url":"https://github.com/slq","followers_url":"https://api.github.com/users/slq/followers","following_url":"https://api.github.com/users/slq/following{/other_user}","gists_url":"https://api.github.com/users/slq/gists{/gist_id}","starred_url":"https://api.github.com/users/slq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slq/subscriptions","organizations_url":"https://api.github.com/users/slq/orgs","repos_url":"https://api.github.com/users/slq/repos","events_url":"https://api.github.com/users/slq/events{/privacy}","received_events_url":"https://api.github.com/users/slq/received_events","type":"User","site_admin":false},"repo":{"id":93801201,"name":"shipkit","full_name":"slq/shipkit","owner":{"login":"slq","id":210951,"avatar_url":"https://avatars2.githubusercontent.com/u/210951?v=3","gravatar_id":"","url":"https://api.github.com/users/slq","html_url":"https://github.com/slq","followers_url":"https://api.github.com/users/slq/followers","following_url":"https://api.github.com/users/slq/following{/other_user}","gists_url":"https://api.github.com/users/slq/gists{/gist_id}","starred_url":"https://api.github.com/users/slq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slq/subscriptions","organizations_url":"https://api.github.com/users/slq/orgs","repos_url":"https://api.github.com/users/slq/repos","events_url":"https://api.github.com/users/slq/events{/privacy}","received_events_url":"https://api.github.com/users/slq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/slq/shipkit","description":"Shipkit: Toolkit for shipping it used by Mockito library","fork":true,"url":"https://api.github.com/repos/slq/shipkit","forks_url":"https://api.github.com/repos/slq/shipkit/forks","keys_url":"https://api.github.com/repos/slq/shipkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slq/shipkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slq/shipkit/teams","hooks_url":"https://api.github.com/repos/slq/shipkit/hooks","issue_events_url":"https://api.github.com/repos/slq/shipkit/issues/events{/number}","events_url":"https://api.github.com/repos/slq/shipkit/events","assignees_url":"https://api.github.com/repos/slq/shipkit/assignees{/user}","branches_url":"https://api.github.com/repos/slq/shipkit/branches{/branch}","tags_url":"https://api.github.com/repos/slq/shipkit/tags","blobs_url":"https://api.github.com/repos/slq/shipkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slq/shipkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slq/shipkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/slq/shipkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slq/shipkit/statuses/{sha}","languages_url":"https://api.github.com/repos/slq/shipkit/languages","stargazers_url":"https://api.github.com/repos/slq/shipkit/stargazers","contributors_url":"https://api.github.com/repos/slq/shipkit/contributors","subscribers_url":"https://api.github.com/repos/slq/shipkit/subscribers","subscription_url":"https://api.github.com/repos/slq/shipkit/subscription","commits_url":"https://api.github.com/repos/slq/shipkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/slq/shipkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/slq/shipkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/slq/shipkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/slq/shipkit/contents/{+path}","compare_url":"https://api.github.com/repos/slq/shipkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slq/shipkit/merges","archive_url":"https://api.github.com/repos/slq/shipkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slq/shipkit/downloads","issues_url":"https://api.github.com/repos/slq/shipkit/issues{/number}","pulls_url":"https://api.github.com/repos/slq/shipkit/pulls{/number}","milestones_url":"https://api.github.com/repos/slq/shipkit/milestones{/number}","notifications_url":"https://api.github.com/repos/slq/shipkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slq/shipkit/labels{/name}","releases_url":"https://api.github.com/repos/slq/shipkit/releases{/id}","deployments_url":"https://api.github.com/repos/slq/shipkit/deployments","created_at":"2017-06-08T23:54:37Z","updated_at":"2017-06-08T23:54:39Z","pushed_at":"2017-06-09T21:51:37Z","git_url":"git://github.com/slq/shipkit.git","ssh_url":"git@github.com:slq/shipkit.git","clone_url":"https://github.com/slq/shipkit.git","svn_url":"https://github.com/slq/shipkit","homepage":"http://shipkit.org","size":1420,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"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":"mockito:master","ref":"master","sha":"cd9e68702df10ff94c9df3646fdef4c8d3d3f9e9","user":{"login":"mockito","id":2054056,"avatar_url":"https://avatars3.githubusercontent.com/u/2054056?v=3","gravatar_id":"","url":"https://api.github.com/users/mockito","html_url":"https://github.com/mockito","followers_url":"https://api.github.com/users/mockito/followers","following_url":"https://api.github.com/users/mockito/following{/other_user}","gists_url":"https://api.github.com/users/mockito/gists{/gist_id}","starred_url":"https://api.github.com/users/mockito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mockito/subscriptions","organizations_url":"https://api.github.com/users/mockito/orgs","repos_url":"https://api.github.com/users/mockito/repos","events_url":"https://api.github.com/users/mockito/events{/privacy}","received_events_url":"https://api.github.com/users/mockito/received_events","type":"Organization","site_admin":false},"repo":{"id":73235879,"name":"shipkit","full_name":"mockito/shipkit","owner":{"login":"mockito","id":2054056,"avatar_url":"https://avatars3.githubusercontent.com/u/2054056?v=3","gravatar_id":"","url":"https://api.github.com/users/mockito","html_url":"https://github.com/mockito","followers_url":"https://api.github.com/users/mockito/followers","following_url":"https://api.github.com/users/mockito/following{/other_user}","gists_url":"https://api.github.com/users/mockito/gists{/gist_id}","starred_url":"https://api.github.com/users/mockito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mockito/subscriptions","organizations_url":"https://api.github.com/users/mockito/orgs","repos_url":"https://api.github.com/users/mockito/repos","events_url":"https://api.github.com/users/mockito/events{/privacy}","received_events_url":"https://api.github.com/users/mockito/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mockito/shipkit","description":"Shipkit: Toolkit for shipping it used by Mockito library","fork":false,"url":"https://api.github.com/repos/mockito/shipkit","forks_url":"https://api.github.com/repos/mockito/shipkit/forks","keys_url":"https://api.github.com/repos/mockito/shipkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mockito/shipkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mockito/shipkit/teams","hooks_url":"https://api.github.com/repos/mockito/shipkit/hooks","issue_events_url":"https://api.github.com/repos/mockito/shipkit/issues/events{/number}","events_url":"https://api.github.com/repos/mockito/shipkit/events","assignees_url":"https://api.github.com/repos/mockito/shipkit/assignees{/user}","branches_url":"https://api.github.com/repos/mockito/shipkit/branches{/branch}","tags_url":"https://api.github.com/repos/mockito/shipkit/tags","blobs_url":"https://api.github.com/repos/mockito/shipkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mockito/shipkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mockito/shipkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/mockito/shipkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mockito/shipkit/statuses/{sha}","languages_url":"https://api.github.com/repos/mockito/shipkit/languages","stargazers_url":"https://api.github.com/repos/mockito/shipkit/stargazers","contributors_url":"https://api.github.com/repos/mockito/shipkit/contributors","subscribers_url":"https://api.github.com/repos/mockito/shipkit/subscribers","subscription_url":"https://api.github.com/repos/mockito/shipkit/subscription","commits_url":"https://api.github.com/repos/mockito/shipkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/mockito/shipkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/mockito/shipkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/mockito/shipkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/mockito/shipkit/contents/{+path}","compare_url":"https://api.github.com/repos/mockito/shipkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mockito/shipkit/merges","archive_url":"https://api.github.com/repos/mockito/shipkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mockito/shipkit/downloads","issues_url":"https://api.github.com/repos/mockito/shipkit/issues{/number}","pulls_url":"https://api.github.com/repos/mockito/shipkit/pulls{/number}","milestones_url":"https://api.github.com/repos/mockito/shipkit/milestones{/number}","notifications_url":"https://api.github.com/repos/mockito/shipkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mockito/shipkit/labels{/name}","releases_url":"https://api.github.com/repos/mockito/shipkit/releases{/id}","deployments_url":"https://api.github.com/repos/mockito/shipkit/deployments","created_at":"2016-11-08T23:22:05Z","updated_at":"2017-06-08T07:31:55Z","pushed_at":"2017-06-09T21:51:38Z","git_url":"git://github.com/mockito/shipkit.git","ssh_url":"git@github.com:mockito/shipkit.git","clone_url":"https://github.com/mockito/shipkit.git","svn_url":"https://github.com/mockito/shipkit","homepage":"http://shipkit.org","size":1423,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":24,"forks":4,"open_issues":24,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mockito/shipkit/pulls/217"},"html":{"href":"https://github.com/mockito/shipkit/pull/217"},"issue":{"href":"https://api.github.com/repos/mockito/shipkit/issues/217"},"comments":{"href":"https://api.github.com/repos/mockito/shipkit/issues/217/comments"},"review_comments":{"href":"https://api.github.com/repos/mockito/shipkit/pulls/217/comments"},"review_comment":{"href":"https://api.github.com/repos/mockito/shipkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mockito/shipkit/pulls/217/commits"},"statuses":{"href":"https://api.github.com/repos/mockito/shipkit/statuses/9ee2b6cd9241e4b3b8f86ece52362cdf28c20414"}}}}
{"actor":{"display_login":"wwilk"}}