{"action":"closed","number":42,"pull_request":{"url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/pulls/42","id":22975004,"html_url":"https://github.com/bintray/gradle-bintray-plugin/pull/42","diff_url":"https://github.com/bintray/gradle-bintray-plugin/pull/42.diff","patch_url":"https://github.com/bintray/gradle-bintray-plugin/pull/42.patch","issue_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/issues/42","number":42,"state":"closed","locked":false,"title":"Display message returned by Bintray REST API when a request fails.","user":{"login":"mark-vieira","id":4106672,"avatar_url":"https://avatars.githubusercontent.com/u/4106672?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-vieira","html_url":"https://github.com/mark-vieira","followers_url":"https://api.github.com/users/mark-vieira/followers","following_url":"https://api.github.com/users/mark-vieira/following{/other_user}","gists_url":"https://api.github.com/users/mark-vieira/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-vieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-vieira/subscriptions","organizations_url":"https://api.github.com/users/mark-vieira/orgs","repos_url":"https://api.github.com/users/mark-vieira/repos","events_url":"https://api.github.com/users/mark-vieira/events{/privacy}","received_events_url":"https://api.github.com/users/mark-vieira/received_events","type":"User","site_admin":false},"body":"Currently, Bintray REST API calls made by the `BintrayUploadTask` simply return the HTTP message status code when an error occurs. This is typically in the form of \"400 - Bad Request\" which is not very useful to the user. However, the REST API provides a JSON response in these cases, in the form of `{ \"message\" : \"Reason error occured.\" }. Pull request changes includes displaying this text to the user rather than just the response status.","created_at":"2014-10-19T00:46:38Z","updated_at":"2015-10-12T15:40:50Z","closed_at":"2015-10-12T15:40:49Z","merged_at":null,"merge_commit_sha":"51575b4ea7aba9a339a32e90ea5af73c15eda229","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/pulls/42/commits","review_comments_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/pulls/42/comments","review_comment_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/issues/42/comments","statuses_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/statuses/6503993c700101475b5f729deb531717ad7c7558","head":{"label":"mark-vieira:master","ref":"master","sha":"6503993c700101475b5f729deb531717ad7c7558","user":{"login":"mark-vieira","id":4106672,"avatar_url":"https://avatars.githubusercontent.com/u/4106672?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-vieira","html_url":"https://github.com/mark-vieira","followers_url":"https://api.github.com/users/mark-vieira/followers","following_url":"https://api.github.com/users/mark-vieira/following{/other_user}","gists_url":"https://api.github.com/users/mark-vieira/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-vieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-vieira/subscriptions","organizations_url":"https://api.github.com/users/mark-vieira/orgs","repos_url":"https://api.github.com/users/mark-vieira/repos","events_url":"https://api.github.com/users/mark-vieira/events{/privacy}","received_events_url":"https://api.github.com/users/mark-vieira/received_events","type":"User","site_admin":false},"repo":{"id":25413982,"name":"gradle-bintray-plugin","full_name":"mark-vieira/gradle-bintray-plugin","owner":{"login":"mark-vieira","id":4106672,"avatar_url":"https://avatars.githubusercontent.com/u/4106672?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-vieira","html_url":"https://github.com/mark-vieira","followers_url":"https://api.github.com/users/mark-vieira/followers","following_url":"https://api.github.com/users/mark-vieira/following{/other_user}","gists_url":"https://api.github.com/users/mark-vieira/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-vieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-vieira/subscriptions","organizations_url":"https://api.github.com/users/mark-vieira/orgs","repos_url":"https://api.github.com/users/mark-vieira/repos","events_url":"https://api.github.com/users/mark-vieira/events{/privacy}","received_events_url":"https://api.github.com/users/mark-vieira/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mark-vieira/gradle-bintray-plugin","description":"","fork":true,"url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin","forks_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/forks","keys_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/teams","hooks_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/hooks","issue_events_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/events","assignees_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/tags","blobs_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/languages","stargazers_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/stargazers","contributors_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/contributors","subscribers_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/subscribers","subscription_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/subscription","commits_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/merges","archive_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/downloads","issues_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/labels{/name}","releases_url":"https://api.github.com/repos/mark-vieira/gradle-bintray-plugin/releases{/id}","created_at":"2014-10-19T00:39:42Z","updated_at":"2014-10-19T00:42:55Z","pushed_at":"2014-10-19T00:42:55Z","git_url":"git://github.com/mark-vieira/gradle-bintray-plugin.git","ssh_url":"git@github.com:mark-vieira/gradle-bintray-plugin.git","clone_url":"https://github.com/mark-vieira/gradle-bintray-plugin.git","svn_url":"https://github.com/mark-vieira/gradle-bintray-plugin","homepage":null,"size":353,"stargazers_count":0,"watchers_count":0,"language":"Groovy","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":"bintray:master","ref":"master","sha":"91610bc188e31e52e00f27dbe381b391e14b8f89","user":{"login":"bintray","id":4857392,"avatar_url":"https://avatars.githubusercontent.com/u/4857392?v=3","gravatar_id":"","url":"https://api.github.com/users/bintray","html_url":"https://github.com/bintray","followers_url":"https://api.github.com/users/bintray/followers","following_url":"https://api.github.com/users/bintray/following{/other_user}","gists_url":"https://api.github.com/users/bintray/gists{/gist_id}","starred_url":"https://api.github.com/users/bintray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bintray/subscriptions","organizations_url":"https://api.github.com/users/bintray/orgs","repos_url":"https://api.github.com/users/bintray/repos","events_url":"https://api.github.com/users/bintray/events{/privacy}","received_events_url":"https://api.github.com/users/bintray/received_events","type":"Organization","site_admin":false},"repo":{"id":10321999,"name":"gradle-bintray-plugin","full_name":"bintray/gradle-bintray-plugin","owner":{"login":"bintray","id":4857392,"avatar_url":"https://avatars.githubusercontent.com/u/4857392?v=3","gravatar_id":"","url":"https://api.github.com/users/bintray","html_url":"https://github.com/bintray","followers_url":"https://api.github.com/users/bintray/followers","following_url":"https://api.github.com/users/bintray/following{/other_user}","gists_url":"https://api.github.com/users/bintray/gists{/gist_id}","starred_url":"https://api.github.com/users/bintray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bintray/subscriptions","organizations_url":"https://api.github.com/users/bintray/orgs","repos_url":"https://api.github.com/users/bintray/repos","events_url":"https://api.github.com/users/bintray/events{/privacy}","received_events_url":"https://api.github.com/users/bintray/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bintray/gradle-bintray-plugin","description":"","fork":false,"url":"https://api.github.com/repos/bintray/gradle-bintray-plugin","forks_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/forks","keys_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/teams","hooks_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/hooks","issue_events_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/events","assignees_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/tags","blobs_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/languages","stargazers_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/stargazers","contributors_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/contributors","subscribers_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/subscribers","subscription_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/subscription","commits_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/merges","archive_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/downloads","issues_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/labels{/name}","releases_url":"https://api.github.com/repos/bintray/gradle-bintray-plugin/releases{/id}","created_at":"2013-05-27T20:25:02Z","updated_at":"2015-10-11T01:57:16Z","pushed_at":"2015-08-20T15:14:39Z","git_url":"git://github.com/bintray/gradle-bintray-plugin.git","ssh_url":"git@github.com:bintray/gradle-bintray-plugin.git","clone_url":"https://github.com/bintray/gradle-bintray-plugin.git","svn_url":"https://github.com/bintray/gradle-bintray-plugin","homepage":null,"size":883,"stargazers_count":178,"watchers_count":178,"language":"Groovy","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":38,"forks":40,"open_issues":38,"watchers":178,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bintray/gradle-bintray-plugin/pulls/42"},"html":{"href":"https://github.com/bintray/gradle-bintray-plugin/pull/42"},"issue":{"href":"https://api.github.com/repos/bintray/gradle-bintray-plugin/issues/42"},"comments":{"href":"https://api.github.com/repos/bintray/gradle-bintray-plugin/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/bintray/gradle-bintray-plugin/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/bintray/gradle-bintray-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bintray/gradle-bintray-plugin/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/bintray/gradle-bintray-plugin/statuses/6503993c700101475b5f729deb531717ad7c7558"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":8,"deletions":8,"changed_files":1}}