{"action":"created","comment":{"url":"https://api.github.com/repos/Shopify/shopify_theme/pulls/comments/38445584","id":38445584,"diff_hunk":"@@ -0,0 +1,39 @@\n+module ShopifyTheme\n+  class APIChecker\n+    class APIResult","path":"lib/shopify_theme/api_checker.rb","position":3,"original_position":3,"commit_id":"df2a23fe0aadd2ff719ef8b7e4e13d2518226319","original_commit_id":"df2a23fe0aadd2ff719ef8b7e4e13d2518226319","user":{"login":"csaunders","id":82491,"avatar_url":"https://avatars.githubusercontent.com/u/82491?v=3","gravatar_id":"","url":"https://api.github.com/users/csaunders","html_url":"https://github.com/csaunders","followers_url":"https://api.github.com/users/csaunders/followers","following_url":"https://api.github.com/users/csaunders/following{/other_user}","gists_url":"https://api.github.com/users/csaunders/gists{/gist_id}","starred_url":"https://api.github.com/users/csaunders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csaunders/subscriptions","organizations_url":"https://api.github.com/users/csaunders/orgs","repos_url":"https://api.github.com/users/csaunders/repos","events_url":"https://api.github.com/users/csaunders/events{/privacy}","received_events_url":"https://api.github.com/users/csaunders/received_events","type":"User","site_admin":false},"body":"I don't really see the point of it at the moment. So I figured I could just let it live in here.\r\n\r\nIf it starts to get more complicated then I'll probably move it out.","created_at":"2015-09-01T17:18:54Z","updated_at":"2015-09-01T17:18:54Z","html_url":"https://github.com/Shopify/shopify_theme/pull/161#discussion_r38445584","pull_request_url":"https://api.github.com/repos/Shopify/shopify_theme/pulls/161","_links":{"self":{"href":"https://api.github.com/repos/Shopify/shopify_theme/pulls/comments/38445584"},"html":{"href":"https://github.com/Shopify/shopify_theme/pull/161#discussion_r38445584"},"pull_request":{"href":"https://api.github.com/repos/Shopify/shopify_theme/pulls/161"}}},"pull_request":{"url":"https://api.github.com/repos/Shopify/shopify_theme/pulls/161","id":43886230,"html_url":"https://github.com/Shopify/shopify_theme/pull/161","diff_url":"https://github.com/Shopify/shopify_theme/pull/161.diff","patch_url":"https://github.com/Shopify/shopify_theme/pull/161.patch","issue_url":"https://api.github.com/repos/Shopify/shopify_theme/issues/161","number":161,"state":"open","locked":false,"title":"Bugfix check api availability","user":{"login":"csaunders","id":82491,"avatar_url":"https://avatars.githubusercontent.com/u/82491?v=3","gravatar_id":"","url":"https://api.github.com/users/csaunders","html_url":"https://github.com/csaunders","followers_url":"https://api.github.com/users/csaunders/followers","following_url":"https://api.github.com/users/csaunders/following{/other_user}","gists_url":"https://api.github.com/users/csaunders/gists{/gist_id}","starred_url":"https://api.github.com/users/csaunders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csaunders/subscriptions","organizations_url":"https://api.github.com/users/csaunders/orgs","repos_url":"https://api.github.com/users/csaunders/repos","events_url":"https://api.github.com/users/csaunders/events{/privacy}","received_events_url":"https://api.github.com/users/csaunders/received_events","type":"User","site_admin":false},"body":"In order to make the tool more user friendly this causes pre-emptive API checks to ensure that the API is accessible and the configuration is setup correctly.\r\n\r\nWhen the configuration is not valid, the user will be presented with a screen that helps them debug what could be going wrong. This relies on their `store` being correct, but if it isn't should look wrong and might help them debug it more easily.\r\n\r\n<img width=\"756\" alt=\"screenshot 2015-09-01 10 54 05\" src=\"https://cloud.githubusercontent.com/assets/82491/9607663/74de70bc-5098-11e5-9eef-5bcce21470c0.png\">\r\n\r\n**Note:** I've bumped the version because I plan on releasing a new gem since this will help reduce duplicate bug reports.\r\n\r\nFixes #160 #146\r\n\r\nPlease review @nickhoffman @ilikeorangutans \r\n\r\n/cc @stevebosworth @cshold @mpiotrowicz","created_at":"2015-09-01T15:01:02Z","updated_at":"2015-09-01T17:18:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56e7b056c661dd411e9af88d80d268921def2338","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/shopify_theme/pulls/161/commits","review_comments_url":"https://api.github.com/repos/Shopify/shopify_theme/pulls/161/comments","review_comment_url":"https://api.github.com/repos/Shopify/shopify_theme/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Shopify/shopify_theme/issues/161/comments","statuses_url":"https://api.github.com/repos/Shopify/shopify_theme/statuses/df2a23fe0aadd2ff719ef8b7e4e13d2518226319","head":{"label":"Shopify:bugfix-check-api-availability","ref":"bugfix-check-api-availability","sha":"df2a23fe0aadd2ff719ef8b7e4e13d2518226319","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":1929134,"name":"shopify_theme","full_name":"Shopify/shopify_theme","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/shopify_theme","description":"A console tool for interacting with Shopify Theme Assets.","fork":false,"url":"https://api.github.com/repos/Shopify/shopify_theme","forks_url":"https://api.github.com/repos/Shopify/shopify_theme/forks","keys_url":"https://api.github.com/repos/Shopify/shopify_theme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/shopify_theme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/shopify_theme/teams","hooks_url":"https://api.github.com/repos/Shopify/shopify_theme/hooks","issue_events_url":"https://api.github.com/repos/Shopify/shopify_theme/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/shopify_theme/events","assignees_url":"https://api.github.com/repos/Shopify/shopify_theme/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/shopify_theme/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/shopify_theme/tags","blobs_url":"https://api.github.com/repos/Shopify/shopify_theme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/shopify_theme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/shopify_theme/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/shopify_theme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/shopify_theme/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/shopify_theme/languages","stargazers_url":"https://api.github.com/repos/Shopify/shopify_theme/stargazers","contributors_url":"https://api.github.com/repos/Shopify/shopify_theme/contributors","subscribers_url":"https://api.github.com/repos/Shopify/shopify_theme/subscribers","subscription_url":"https://api.github.com/repos/Shopify/shopify_theme/subscription","commits_url":"https://api.github.com/repos/Shopify/shopify_theme/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/shopify_theme/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/shopify_theme/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/shopify_theme/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/shopify_theme/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/shopify_theme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/shopify_theme/merges","archive_url":"https://api.github.com/repos/Shopify/shopify_theme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/shopify_theme/downloads","issues_url":"https://api.github.com/repos/Shopify/shopify_theme/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/shopify_theme/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/shopify_theme/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/shopify_theme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/shopify_theme/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/shopify_theme/releases{/id}","created_at":"2011-06-21T13:04:36Z","updated_at":"2015-08-26T20:33:44Z","pushed_at":"2015-09-01T15:01:02Z","git_url":"git://github.com/Shopify/shopify_theme.git","ssh_url":"git@github.com:Shopify/shopify_theme.git","clone_url":"https://github.com/Shopify/shopify_theme.git","svn_url":"https://github.com/Shopify/shopify_theme","homepage":"http://shopify.github.io/shopify_theme","size":2978,"stargazers_count":394,"watchers_count":394,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":80,"mirror_url":null,"open_issues_count":8,"forks":80,"open_issues":8,"watchers":394,"default_branch":"master"}},"base":{"label":"Shopify:master","ref":"master","sha":"e48b45fe15d3966956a621e8e82c70736fa68b60","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":1929134,"name":"shopify_theme","full_name":"Shopify/shopify_theme","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/shopify_theme","description":"A console tool for interacting with Shopify Theme Assets.","fork":false,"url":"https://api.github.com/repos/Shopify/shopify_theme","forks_url":"https://api.github.com/repos/Shopify/shopify_theme/forks","keys_url":"https://api.github.com/repos/Shopify/shopify_theme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/shopify_theme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/shopify_theme/teams","hooks_url":"https://api.github.com/repos/Shopify/shopify_theme/hooks","issue_events_url":"https://api.github.com/repos/Shopify/shopify_theme/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/shopify_theme/events","assignees_url":"https://api.github.com/repos/Shopify/shopify_theme/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/shopify_theme/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/shopify_theme/tags","blobs_url":"https://api.github.com/repos/Shopify/shopify_theme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/shopify_theme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/shopify_theme/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/shopify_theme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/shopify_theme/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/shopify_theme/languages","stargazers_url":"https://api.github.com/repos/Shopify/shopify_theme/stargazers","contributors_url":"https://api.github.com/repos/Shopify/shopify_theme/contributors","subscribers_url":"https://api.github.com/repos/Shopify/shopify_theme/subscribers","subscription_url":"https://api.github.com/repos/Shopify/shopify_theme/subscription","commits_url":"https://api.github.com/repos/Shopify/shopify_theme/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/shopify_theme/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/shopify_theme/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/shopify_theme/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/shopify_theme/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/shopify_theme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/shopify_theme/merges","archive_url":"https://api.github.com/repos/Shopify/shopify_theme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/shopify_theme/downloads","issues_url":"https://api.github.com/repos/Shopify/shopify_theme/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/shopify_theme/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/shopify_theme/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/shopify_theme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/shopify_theme/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/shopify_theme/releases{/id}","created_at":"2011-06-21T13:04:36Z","updated_at":"2015-08-26T20:33:44Z","pushed_at":"2015-09-01T15:01:02Z","git_url":"git://github.com/Shopify/shopify_theme.git","ssh_url":"git@github.com:Shopify/shopify_theme.git","clone_url":"https://github.com/Shopify/shopify_theme.git","svn_url":"https://github.com/Shopify/shopify_theme","homepage":"http://shopify.github.io/shopify_theme","size":2978,"stargazers_count":394,"watchers_count":394,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":80,"mirror_url":null,"open_issues_count":8,"forks":80,"open_issues":8,"watchers":394,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/shopify_theme/pulls/161"},"html":{"href":"https://github.com/Shopify/shopify_theme/pull/161"},"issue":{"href":"https://api.github.com/repos/Shopify/shopify_theme/issues/161"},"comments":{"href":"https://api.github.com/repos/Shopify/shopify_theme/issues/161/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/shopify_theme/pulls/161/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/shopify_theme/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Shopify/shopify_theme/pulls/161/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/shopify_theme/statuses/df2a23fe0aadd2ff719ef8b7e4e13d2518226319"}}}}