{"action":"created","comment":{"url":"https://api.github.com/repos/huboard/huboard-web/pulls/comments/74652243","id":74652243,"diff_hunk":"@@ -1,21 +1,66 @@\n-<div class=\"instructions drop-shadow\">\n-  <h2> We noticed your repository issue tracker is not yet configured for HuBoard</h2>\n-  <% if @repo && @repo['permissions'] && @repo['permissions']['push'] %>\n-  <p> No worries, HuBoard can automatically get you started with a default label configuration </p>\n-  <p> HuBoard will create the following labels </p>\n-  <ol start=\"0\">\n-    <li> Backlog </li>\n-    <li> Ready </li>\n-    <li> Working </li>\n-    <li> Review </li>\n-    <li> Done </li>\n-  </ol>\n-  <%= form_tag 'create' do %>\n-    <input class=\"btn primary\" type=\"submit\" value=\"Yes, Do it for me!\" data-analytics-path='/board/creating'/>\n-    <a href=\"<%= @repo['html_url'] %>/issues\" target=\"_blank\" >No thanks, I want to do this manually</a>\n-  <% end %>\n+<div class=\"instructions drop-shadow create-new-board\">\n+  <div class=\"create-new-board--container\">\n+  <% if @parameters['create_failed']%>\n+    <h2> Oops! </h2>\n+    <div class=\"create-new-board--message\">\n+      <h3> HuBoard is unable to create a board for you! </h3>\n+      <ul class=\"create-new-board--list\">\n+        <li>You will need write permissions on <%= @parameters['user'] %>/<%= @parameters['repo'] %></li>\n+        <li>If <%= @parameters['user'] %> is a GitHub Organization: <a href=https://help.github.com/articles/disabling-third-party-application-restrictions-for-your-organization/\" target=\"blank\">ensure no access restrictions are present</a></li>\n+        <li><a href=\"mailto:support@huboard.com\">Talk to us!</a></li>\n+      </ul>\n+      <%= form_tag 'create', class: 'create-new-board--form' do %>\n+        <input class=\"btn primary\" type=\"submit\" value=\"Try again!\" data-analytics-path='/board/creating'/>\n+        <a href=\"/dashboard\">\n+          <input class=\"btn primary\" type=\"button\" value=\"Go home\">\n+        </a>\n+      </div>\n+      <% end %>\n+    </div>\n+  <% elsif @repo && @repo['permissions'] && @repo['permissions']['push'] %>\n+    <h2> <%= @parameters['user'] %>/<%= @parameters['repo'] %> is not yet configured for HuBoard</h2>\n+  <div class=\"create-new-board--message\">\n+    <h4> We can automatically get you started with a default label configuration: </h4>\n+    <br>\n+    <div class=\"create-new-board--labels\">\n+      <div class=\"labels-create-message\">\n+        <p> Allow HuBoard to create the following labels? </p>\n+      </div>\n+      <div class=\"labels-create-columns\">\n+        <ul class=\"create-new-board--list\">\n+          <li> 0 - Backlog </li>\n+          <li> 1 - Ready </li>\n+          <li> 2 - Working </li>\n+          <li> 3 - Review </li>\n+          <li> 4 - Done </li>\n+        </ul>\n+      </div>\n+    </div>\n+    <%= form_tag 'create', class: 'create-new-board--form' do %>\n+      <input class=\"btn primary\" type=\"submit\" value=\"Yes, Do it for me!\" data-analytics-path='/board/creating'/>\n+      <a href=\"<%= @repo['html_url'] %>/issues\" target=\"_blank\" >","path":"app/views/board/create_board.html.erb","position":57,"original_position":57,"commit_id":"591292cf52d8f74f0c04ddab7b120d0dad1b2605","original_commit_id":"591292cf52d8f74f0c04ddab7b120d0dad1b2605","user":{"login":"dahlbyk","id":133987,"avatar_url":"https://avatars.githubusercontent.com/u/133987?v=3","gravatar_id":"","url":"https://api.github.com/users/dahlbyk","html_url":"https://github.com/dahlbyk","followers_url":"https://api.github.com/users/dahlbyk/followers","following_url":"https://api.github.com/users/dahlbyk/following{/other_user}","gists_url":"https://api.github.com/users/dahlbyk/gists{/gist_id}","starred_url":"https://api.github.com/users/dahlbyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dahlbyk/subscriptions","organizations_url":"https://api.github.com/users/dahlbyk/orgs","repos_url":"https://api.github.com/users/dahlbyk/repos","events_url":"https://api.github.com/users/dahlbyk/events{/privacy}","received_events_url":"https://api.github.com/users/dahlbyk/received_events","type":"User","site_admin":false},"body":"Can we add a `data-analytics-path` here to tell the difference between abandons and manual interventions?","created_at":"2016-08-12T20:02:10Z","updated_at":"2016-08-12T20:02:10Z","html_url":"https://github.com/huboard/huboard-web/pull/358#discussion_r74652243","pull_request_url":"https://api.github.com/repos/huboard/huboard-web/pulls/358","_links":{"self":{"href":"https://api.github.com/repos/huboard/huboard-web/pulls/comments/74652243"},"html":{"href":"https://github.com/huboard/huboard-web/pull/358#discussion_r74652243"},"pull_request":{"href":"https://api.github.com/repos/huboard/huboard-web/pulls/358"}}},"pull_request":{"url":"https://api.github.com/repos/huboard/huboard-web/pulls/358","id":80710314,"html_url":"https://github.com/huboard/huboard-web/pull/358","diff_url":"https://github.com/huboard/huboard-web/pull/358.diff","patch_url":"https://github.com/huboard/huboard-web/pull/358.patch","issue_url":"https://api.github.com/repos/huboard/huboard-web/issues/358","number":358,"state":"open","locked":false,"title":"Fixes infinite loop create board loop","user":{"login":"discorick","id":1130665,"avatar_url":"https://avatars.githubusercontent.com/u/1130665?v=3","gravatar_id":"","url":"https://api.github.com/users/discorick","html_url":"https://github.com/discorick","followers_url":"https://api.github.com/users/discorick/followers","following_url":"https://api.github.com/users/discorick/following{/other_user}","gists_url":"https://api.github.com/users/discorick/gists{/gist_id}","starred_url":"https://api.github.com/users/discorick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discorick/subscriptions","organizations_url":"https://api.github.com/users/discorick/orgs","repos_url":"https://api.github.com/users/discorick/repos","events_url":"https://api.github.com/users/discorick/events{/privacy}","received_events_url":"https://api.github.com/users/discorick/received_events","type":"User","site_admin":false},"body":"Fixes the infinite loop and closes #357 \r\n\r\nAdditionally, as the changes required some styling, applied a bit of a facelift to the board create process altogether:\r\n\r\nWhen prompted to create a board (buttons light up on hover):\r\n![image](https://cloud.githubusercontent.com/assets/1130665/17536574/282f6734-5e53-11e6-8e36-8e0c6f667281.png)\r\n\r\nWhen third party access restrictions are present:\r\n![image](https://cloud.githubusercontent.com/assets/1130665/17536617/73eb89b4-5e53-11e6-8992-cd80ccd71daa.png)\r\n\r\nWhen push bit is missing:\r\n![image](https://cloud.githubusercontent.com/assets/1130665/17536664/c3a60e52-5e53-11e6-99ac-4ec3692da3c2.png)\r\n\r\n\r\n@rauhryan @dahlbyk What do you think? Improvement ?\r\n","created_at":"2016-08-09T23:08:02Z","updated_at":"2016-08-12T20:02:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28284ff35384b6e4e023768e2cd1a4c744d2d4a4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/huboard/huboard-web/pulls/358/commits","review_comments_url":"https://api.github.com/repos/huboard/huboard-web/pulls/358/comments","review_comment_url":"https://api.github.com/repos/huboard/huboard-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/huboard/huboard-web/issues/358/comments","statuses_url":"https://api.github.com/repos/huboard/huboard-web/statuses/591292cf52d8f74f0c04ddab7b120d0dad1b2605","head":{"label":"huboard:discorick/fix-infinite-board-create-loop","ref":"discorick/fix-infinite-board-create-loop","sha":"591292cf52d8f74f0c04ddab7b120d0dad1b2605","user":{"login":"huboard","id":1236155,"avatar_url":"https://avatars.githubusercontent.com/u/1236155?v=3","gravatar_id":"","url":"https://api.github.com/users/huboard","html_url":"https://github.com/huboard","followers_url":"https://api.github.com/users/huboard/followers","following_url":"https://api.github.com/users/huboard/following{/other_user}","gists_url":"https://api.github.com/users/huboard/gists{/gist_id}","starred_url":"https://api.github.com/users/huboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huboard/subscriptions","organizations_url":"https://api.github.com/users/huboard/orgs","repos_url":"https://api.github.com/users/huboard/repos","events_url":"https://api.github.com/users/huboard/events{/privacy}","received_events_url":"https://api.github.com/users/huboard/received_events","type":"Organization","site_admin":false},"repo":{"id":29268631,"name":"huboard-web","full_name":"huboard/huboard-web","owner":{"login":"huboard","id":1236155,"avatar_url":"https://avatars.githubusercontent.com/u/1236155?v=3","gravatar_id":"","url":"https://api.github.com/users/huboard","html_url":"https://github.com/huboard","followers_url":"https://api.github.com/users/huboard/followers","following_url":"https://api.github.com/users/huboard/following{/other_user}","gists_url":"https://api.github.com/users/huboard/gists{/gist_id}","starred_url":"https://api.github.com/users/huboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huboard/subscriptions","organizations_url":"https://api.github.com/users/huboard/orgs","repos_url":"https://api.github.com/users/huboard/repos","events_url":"https://api.github.com/users/huboard/events{/privacy}","received_events_url":"https://api.github.com/users/huboard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/huboard/huboard-web","description":"GitHub issues made awesome","fork":false,"url":"https://api.github.com/repos/huboard/huboard-web","forks_url":"https://api.github.com/repos/huboard/huboard-web/forks","keys_url":"https://api.github.com/repos/huboard/huboard-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huboard/huboard-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huboard/huboard-web/teams","hooks_url":"https://api.github.com/repos/huboard/huboard-web/hooks","issue_events_url":"https://api.github.com/repos/huboard/huboard-web/issues/events{/number}","events_url":"https://api.github.com/repos/huboard/huboard-web/events","assignees_url":"https://api.github.com/repos/huboard/huboard-web/assignees{/user}","branches_url":"https://api.github.com/repos/huboard/huboard-web/branches{/branch}","tags_url":"https://api.github.com/repos/huboard/huboard-web/tags","blobs_url":"https://api.github.com/repos/huboard/huboard-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huboard/huboard-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huboard/huboard-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/huboard/huboard-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huboard/huboard-web/statuses/{sha}","languages_url":"https://api.github.com/repos/huboard/huboard-web/languages","stargazers_url":"https://api.github.com/repos/huboard/huboard-web/stargazers","contributors_url":"https://api.github.com/repos/huboard/huboard-web/contributors","subscribers_url":"https://api.github.com/repos/huboard/huboard-web/subscribers","subscription_url":"https://api.github.com/repos/huboard/huboard-web/subscription","commits_url":"https://api.github.com/repos/huboard/huboard-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/huboard/huboard-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/huboard/huboard-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/huboard/huboard-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/huboard/huboard-web/contents/{+path}","compare_url":"https://api.github.com/repos/huboard/huboard-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huboard/huboard-web/merges","archive_url":"https://api.github.com/repos/huboard/huboard-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huboard/huboard-web/downloads","issues_url":"https://api.github.com/repos/huboard/huboard-web/issues{/number}","pulls_url":"https://api.github.com/repos/huboard/huboard-web/pulls{/number}","milestones_url":"https://api.github.com/repos/huboard/huboard-web/milestones{/number}","notifications_url":"https://api.github.com/repos/huboard/huboard-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huboard/huboard-web/labels{/name}","releases_url":"https://api.github.com/repos/huboard/huboard-web/releases{/id}","deployments_url":"https://api.github.com/repos/huboard/huboard-web/deployments","created_at":"2015-01-14T22:17:00Z","updated_at":"2016-07-08T02:37:07Z","pushed_at":"2016-08-12T17:00:08Z","git_url":"git://github.com/huboard/huboard-web.git","ssh_url":"git@github.com:huboard/huboard-web.git","clone_url":"https://github.com/huboard/huboard-web.git","svn_url":"https://github.com/huboard/huboard-web","homepage":"https://huboard.com","size":24820,"stargazers_count":36,"watchers_count":36,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":34,"forks":25,"open_issues":34,"watchers":36,"default_branch":"master"}},"base":{"label":"huboard:master","ref":"master","sha":"ccfcab48e7da223eecafae18a45279dedfd12f1b","user":{"login":"huboard","id":1236155,"avatar_url":"https://avatars.githubusercontent.com/u/1236155?v=3","gravatar_id":"","url":"https://api.github.com/users/huboard","html_url":"https://github.com/huboard","followers_url":"https://api.github.com/users/huboard/followers","following_url":"https://api.github.com/users/huboard/following{/other_user}","gists_url":"https://api.github.com/users/huboard/gists{/gist_id}","starred_url":"https://api.github.com/users/huboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huboard/subscriptions","organizations_url":"https://api.github.com/users/huboard/orgs","repos_url":"https://api.github.com/users/huboard/repos","events_url":"https://api.github.com/users/huboard/events{/privacy}","received_events_url":"https://api.github.com/users/huboard/received_events","type":"Organization","site_admin":false},"repo":{"id":29268631,"name":"huboard-web","full_name":"huboard/huboard-web","owner":{"login":"huboard","id":1236155,"avatar_url":"https://avatars.githubusercontent.com/u/1236155?v=3","gravatar_id":"","url":"https://api.github.com/users/huboard","html_url":"https://github.com/huboard","followers_url":"https://api.github.com/users/huboard/followers","following_url":"https://api.github.com/users/huboard/following{/other_user}","gists_url":"https://api.github.com/users/huboard/gists{/gist_id}","starred_url":"https://api.github.com/users/huboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huboard/subscriptions","organizations_url":"https://api.github.com/users/huboard/orgs","repos_url":"https://api.github.com/users/huboard/repos","events_url":"https://api.github.com/users/huboard/events{/privacy}","received_events_url":"https://api.github.com/users/huboard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/huboard/huboard-web","description":"GitHub issues made awesome","fork":false,"url":"https://api.github.com/repos/huboard/huboard-web","forks_url":"https://api.github.com/repos/huboard/huboard-web/forks","keys_url":"https://api.github.com/repos/huboard/huboard-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huboard/huboard-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huboard/huboard-web/teams","hooks_url":"https://api.github.com/repos/huboard/huboard-web/hooks","issue_events_url":"https://api.github.com/repos/huboard/huboard-web/issues/events{/number}","events_url":"https://api.github.com/repos/huboard/huboard-web/events","assignees_url":"https://api.github.com/repos/huboard/huboard-web/assignees{/user}","branches_url":"https://api.github.com/repos/huboard/huboard-web/branches{/branch}","tags_url":"https://api.github.com/repos/huboard/huboard-web/tags","blobs_url":"https://api.github.com/repos/huboard/huboard-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huboard/huboard-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huboard/huboard-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/huboard/huboard-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huboard/huboard-web/statuses/{sha}","languages_url":"https://api.github.com/repos/huboard/huboard-web/languages","stargazers_url":"https://api.github.com/repos/huboard/huboard-web/stargazers","contributors_url":"https://api.github.com/repos/huboard/huboard-web/contributors","subscribers_url":"https://api.github.com/repos/huboard/huboard-web/subscribers","subscription_url":"https://api.github.com/repos/huboard/huboard-web/subscription","commits_url":"https://api.github.com/repos/huboard/huboard-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/huboard/huboard-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/huboard/huboard-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/huboard/huboard-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/huboard/huboard-web/contents/{+path}","compare_url":"https://api.github.com/repos/huboard/huboard-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huboard/huboard-web/merges","archive_url":"https://api.github.com/repos/huboard/huboard-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huboard/huboard-web/downloads","issues_url":"https://api.github.com/repos/huboard/huboard-web/issues{/number}","pulls_url":"https://api.github.com/repos/huboard/huboard-web/pulls{/number}","milestones_url":"https://api.github.com/repos/huboard/huboard-web/milestones{/number}","notifications_url":"https://api.github.com/repos/huboard/huboard-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huboard/huboard-web/labels{/name}","releases_url":"https://api.github.com/repos/huboard/huboard-web/releases{/id}","deployments_url":"https://api.github.com/repos/huboard/huboard-web/deployments","created_at":"2015-01-14T22:17:00Z","updated_at":"2016-07-08T02:37:07Z","pushed_at":"2016-08-12T17:00:08Z","git_url":"git://github.com/huboard/huboard-web.git","ssh_url":"git@github.com:huboard/huboard-web.git","clone_url":"https://github.com/huboard/huboard-web.git","svn_url":"https://github.com/huboard/huboard-web","homepage":"https://huboard.com","size":24820,"stargazers_count":36,"watchers_count":36,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":34,"forks":25,"open_issues":34,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/huboard/huboard-web/pulls/358"},"html":{"href":"https://github.com/huboard/huboard-web/pull/358"},"issue":{"href":"https://api.github.com/repos/huboard/huboard-web/issues/358"},"comments":{"href":"https://api.github.com/repos/huboard/huboard-web/issues/358/comments"},"review_comments":{"href":"https://api.github.com/repos/huboard/huboard-web/pulls/358/comments"},"review_comment":{"href":"https://api.github.com/repos/huboard/huboard-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/huboard/huboard-web/pulls/358/commits"},"statuses":{"href":"https://api.github.com/repos/huboard/huboard-web/statuses/591292cf52d8f74f0c04ddab7b120d0dad1b2605"}}}}
{"actor":{"display_login":"dahlbyk"}}