{"action":"created","comment":{"url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/pulls/comments/76978741","id":76978741,"diff_hunk":"@@ -35,17 +35,20 @@\n   private final int stashTimeout;\r\n   private AsyncHttpClient httpClient;\r\n \r\n-  private static final String REST_API = \"/rest/api/1.0/\";\r\n-  \r\n-  private static final String USER_API = \"{0}users/{1}\";\r\n-  private static final String REPO_API = \"{0}projects/{1}/repos/{2}/\";\r\n-  private static final String PULL_REQUESTS_API = REPO_API + \"pull-requests/\";\r\n-  private static final String PULL_REQUEST_API = PULL_REQUESTS_API + \"{3}\";\r\n-  private static final String COMMENTS_PULL_REQUEST_API = PULL_REQUEST_API + \"/comments\";\r\n-  private static final String COMMENT_PULL_REQUEST_API = COMMENTS_PULL_REQUEST_API + \"/{4}?version={5}\";\r","path":"src/main/java/org/sonar/plugins/stash/client/StashClient.java","position":11,"original_position":11,"commit_id":"e40376b97d029e77f7325a2443e5e2c166d4d878","original_commit_id":"e40376b97d029e77f7325a2443e5e2c166d4d878","user":{"login":"t-8ch","id":717901,"avatar_url":"https://avatars.githubusercontent.com/u/717901?v=3","gravatar_id":"","url":"https://api.github.com/users/t-8ch","html_url":"https://github.com/t-8ch","followers_url":"https://api.github.com/users/t-8ch/followers","following_url":"https://api.github.com/users/t-8ch/following{/other_user}","gists_url":"https://api.github.com/users/t-8ch/gists{/gist_id}","starred_url":"https://api.github.com/users/t-8ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-8ch/subscriptions","organizations_url":"https://api.github.com/users/t-8ch/orgs","repos_url":"https://api.github.com/users/t-8ch/repos","events_url":"https://api.github.com/users/t-8ch/events{/privacy}","received_events_url":"https://api.github.com/users/t-8ch/received_events","type":"User","site_admin":false},"body":"Could we remove all the query params from the string constants and use [`addQueryParams()`](http://static.javadoc.io/org.asynchttpclient/async-http-client/2.1.0-alpha1/org/asynchttpclient/RequestBuilderBase.html#addQueryParam-java.lang.String-java.lang.String-)?","created_at":"2016-08-31T12:34:02Z","updated_at":"2016-08-31T12:34:03Z","html_url":"https://github.com/AmadeusITGroup/sonar-stash/pull/62#discussion_r76978741","pull_request_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/pulls/comments/76978741"},"html":{"href":"https://github.com/AmadeusITGroup/sonar-stash/pull/62#discussion_r76978741"},"pull_request":{"href":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/pulls/62","id":83440207,"html_url":"https://github.com/AmadeusITGroup/sonar-stash/pull/62","diff_url":"https://github.com/AmadeusITGroup/sonar-stash/pull/62.diff","patch_url":"https://github.com/AmadeusITGroup/sonar-stash/pull/62.patch","issue_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/issues/62","number":62,"state":"open","locked":false,"title":"Code quality (part 1)","user":{"login":"re-schneider","id":21122902,"avatar_url":"https://avatars.githubusercontent.com/u/21122902?v=3","gravatar_id":"","url":"https://api.github.com/users/re-schneider","html_url":"https://github.com/re-schneider","followers_url":"https://api.github.com/users/re-schneider/followers","following_url":"https://api.github.com/users/re-schneider/following{/other_user}","gists_url":"https://api.github.com/users/re-schneider/gists{/gist_id}","starred_url":"https://api.github.com/users/re-schneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/re-schneider/subscriptions","organizations_url":"https://api.github.com/users/re-schneider/orgs","repos_url":"https://api.github.com/users/re-schneider/repos","events_url":"https://api.github.com/users/re-schneider/events{/privacy}","received_events_url":"https://api.github.com/users/re-schneider/received_events","type":"User","site_admin":false},"body":"Here are some contributions to improve the code quality by fixing reported violations.","created_at":"2016-08-31T12:09:12Z","updated_at":"2016-08-31T12:34:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"911ece9935b85ffb213202f1530b986a3a80d293","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/pulls/62/commits","review_comments_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/pulls/62/comments","review_comment_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/issues/62/comments","statuses_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/statuses/e40376b97d029e77f7325a2443e5e2c166d4d878","head":{"label":"re-schneider:code_quality","ref":"code_quality","sha":"e40376b97d029e77f7325a2443e5e2c166d4d878","user":{"login":"re-schneider","id":21122902,"avatar_url":"https://avatars.githubusercontent.com/u/21122902?v=3","gravatar_id":"","url":"https://api.github.com/users/re-schneider","html_url":"https://github.com/re-schneider","followers_url":"https://api.github.com/users/re-schneider/followers","following_url":"https://api.github.com/users/re-schneider/following{/other_user}","gists_url":"https://api.github.com/users/re-schneider/gists{/gist_id}","starred_url":"https://api.github.com/users/re-schneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/re-schneider/subscriptions","organizations_url":"https://api.github.com/users/re-schneider/orgs","repos_url":"https://api.github.com/users/re-schneider/repos","events_url":"https://api.github.com/users/re-schneider/events{/privacy}","received_events_url":"https://api.github.com/users/re-schneider/received_events","type":"User","site_admin":false},"repo":{"id":66344990,"name":"sonar-stash","full_name":"re-schneider/sonar-stash","owner":{"login":"re-schneider","id":21122902,"avatar_url":"https://avatars.githubusercontent.com/u/21122902?v=3","gravatar_id":"","url":"https://api.github.com/users/re-schneider","html_url":"https://github.com/re-schneider","followers_url":"https://api.github.com/users/re-schneider/followers","following_url":"https://api.github.com/users/re-schneider/following{/other_user}","gists_url":"https://api.github.com/users/re-schneider/gists{/gist_id}","starred_url":"https://api.github.com/users/re-schneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/re-schneider/subscriptions","organizations_url":"https://api.github.com/users/re-schneider/orgs","repos_url":"https://api.github.com/users/re-schneider/repos","events_url":"https://api.github.com/users/re-schneider/events{/privacy}","received_events_url":"https://api.github.com/users/re-schneider/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/re-schneider/sonar-stash","description":"Stash (BitBucket) plugin, a pull-request decorator which allows to integrate SonarQube violations directly into your pull-request","fork":true,"url":"https://api.github.com/repos/re-schneider/sonar-stash","forks_url":"https://api.github.com/repos/re-schneider/sonar-stash/forks","keys_url":"https://api.github.com/repos/re-schneider/sonar-stash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/re-schneider/sonar-stash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/re-schneider/sonar-stash/teams","hooks_url":"https://api.github.com/repos/re-schneider/sonar-stash/hooks","issue_events_url":"https://api.github.com/repos/re-schneider/sonar-stash/issues/events{/number}","events_url":"https://api.github.com/repos/re-schneider/sonar-stash/events","assignees_url":"https://api.github.com/repos/re-schneider/sonar-stash/assignees{/user}","branches_url":"https://api.github.com/repos/re-schneider/sonar-stash/branches{/branch}","tags_url":"https://api.github.com/repos/re-schneider/sonar-stash/tags","blobs_url":"https://api.github.com/repos/re-schneider/sonar-stash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/re-schneider/sonar-stash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/re-schneider/sonar-stash/git/refs{/sha}","trees_url":"https://api.github.com/repos/re-schneider/sonar-stash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/re-schneider/sonar-stash/statuses/{sha}","languages_url":"https://api.github.com/repos/re-schneider/sonar-stash/languages","stargazers_url":"https://api.github.com/repos/re-schneider/sonar-stash/stargazers","contributors_url":"https://api.github.com/repos/re-schneider/sonar-stash/contributors","subscribers_url":"https://api.github.com/repos/re-schneider/sonar-stash/subscribers","subscription_url":"https://api.github.com/repos/re-schneider/sonar-stash/subscription","commits_url":"https://api.github.com/repos/re-schneider/sonar-stash/commits{/sha}","git_commits_url":"https://api.github.com/repos/re-schneider/sonar-stash/git/commits{/sha}","comments_url":"https://api.github.com/repos/re-schneider/sonar-stash/comments{/number}","issue_comment_url":"https://api.github.com/repos/re-schneider/sonar-stash/issues/comments{/number}","contents_url":"https://api.github.com/repos/re-schneider/sonar-stash/contents/{+path}","compare_url":"https://api.github.com/repos/re-schneider/sonar-stash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/re-schneider/sonar-stash/merges","archive_url":"https://api.github.com/repos/re-schneider/sonar-stash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/re-schneider/sonar-stash/downloads","issues_url":"https://api.github.com/repos/re-schneider/sonar-stash/issues{/number}","pulls_url":"https://api.github.com/repos/re-schneider/sonar-stash/pulls{/number}","milestones_url":"https://api.github.com/repos/re-schneider/sonar-stash/milestones{/number}","notifications_url":"https://api.github.com/repos/re-schneider/sonar-stash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/re-schneider/sonar-stash/labels{/name}","releases_url":"https://api.github.com/repos/re-schneider/sonar-stash/releases{/id}","deployments_url":"https://api.github.com/repos/re-schneider/sonar-stash/deployments","created_at":"2016-08-23T07:40:25Z","updated_at":"2016-08-23T07:40:26Z","pushed_at":"2016-08-31T12:07:48Z","git_url":"git://github.com/re-schneider/sonar-stash.git","ssh_url":"git@github.com:re-schneider/sonar-stash.git","clone_url":"https://github.com/re-schneider/sonar-stash.git","svn_url":"https://github.com/re-schneider/sonar-stash","homepage":"","size":533,"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":"AmadeusITGroup:master","ref":"master","sha":"448a1543517fc3343164f1fd90a40f5121902ec9","user":{"login":"AmadeusITGroup","id":6802338,"avatar_url":"https://avatars.githubusercontent.com/u/6802338?v=3","gravatar_id":"","url":"https://api.github.com/users/AmadeusITGroup","html_url":"https://github.com/AmadeusITGroup","followers_url":"https://api.github.com/users/AmadeusITGroup/followers","following_url":"https://api.github.com/users/AmadeusITGroup/following{/other_user}","gists_url":"https://api.github.com/users/AmadeusITGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/AmadeusITGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmadeusITGroup/subscriptions","organizations_url":"https://api.github.com/users/AmadeusITGroup/orgs","repos_url":"https://api.github.com/users/AmadeusITGroup/repos","events_url":"https://api.github.com/users/AmadeusITGroup/events{/privacy}","received_events_url":"https://api.github.com/users/AmadeusITGroup/received_events","type":"Organization","site_admin":false},"repo":{"id":42864318,"name":"sonar-stash","full_name":"AmadeusITGroup/sonar-stash","owner":{"login":"AmadeusITGroup","id":6802338,"avatar_url":"https://avatars.githubusercontent.com/u/6802338?v=3","gravatar_id":"","url":"https://api.github.com/users/AmadeusITGroup","html_url":"https://github.com/AmadeusITGroup","followers_url":"https://api.github.com/users/AmadeusITGroup/followers","following_url":"https://api.github.com/users/AmadeusITGroup/following{/other_user}","gists_url":"https://api.github.com/users/AmadeusITGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/AmadeusITGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmadeusITGroup/subscriptions","organizations_url":"https://api.github.com/users/AmadeusITGroup/orgs","repos_url":"https://api.github.com/users/AmadeusITGroup/repos","events_url":"https://api.github.com/users/AmadeusITGroup/events{/privacy}","received_events_url":"https://api.github.com/users/AmadeusITGroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AmadeusITGroup/sonar-stash","description":"Stash (BitBucket) plugin, a pull-request decorator which allows to integrate SonarQube violations directly into your pull-request","fork":false,"url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash","forks_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/forks","keys_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/teams","hooks_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/hooks","issue_events_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/issues/events{/number}","events_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/events","assignees_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/assignees{/user}","branches_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/branches{/branch}","tags_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/tags","blobs_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/git/refs{/sha}","trees_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/statuses/{sha}","languages_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/languages","stargazers_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/stargazers","contributors_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/contributors","subscribers_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/subscribers","subscription_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/subscription","commits_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/commits{/sha}","git_commits_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/git/commits{/sha}","comments_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/comments{/number}","issue_comment_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/issues/comments{/number}","contents_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/contents/{+path}","compare_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/merges","archive_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/downloads","issues_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/issues{/number}","pulls_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/pulls{/number}","milestones_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/milestones{/number}","notifications_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/labels{/name}","releases_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/releases{/id}","deployments_url":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/deployments","created_at":"2015-09-21T12:15:13Z","updated_at":"2016-08-25T12:12:48Z","pushed_at":"2016-08-31T12:09:12Z","git_url":"git://github.com/AmadeusITGroup/sonar-stash.git","ssh_url":"git@github.com:AmadeusITGroup/sonar-stash.git","clone_url":"https://github.com/AmadeusITGroup/sonar-stash.git","svn_url":"https://github.com/AmadeusITGroup/sonar-stash","homepage":"","size":684,"stargazers_count":43,"watchers_count":43,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":23,"forks":36,"open_issues":23,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/pulls/62"},"html":{"href":"https://github.com/AmadeusITGroup/sonar-stash/pull/62"},"issue":{"href":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/issues/62"},"comments":{"href":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/AmadeusITGroup/sonar-stash/statuses/e40376b97d029e77f7325a2443e5e2c166d4d878"}}}}
{"actor":{"display_login":"t-8ch"}}