{"action":"created","comment":{"url":"https://api.github.com/repos/wagn/wikirate/pulls/comments/59636504","id":59636504,"diff_hunk":"@@ -0,0 +1,65 @@\n+# -*- encoding : utf-8 -*-\n+\n+class MetricTypes < Card::Migration\n+  def metric_types_list\n+    %w( Researched Formula Score WikiRating ).map do |type|\n+      \"[[#{type}]]\"\n+    end.join \"\\n\"\n+  end\n+\n+  def up\n+    create_card! name: 'Metric type', type_id: Card::CardtypeID\n+    Card::Cache.reset_all\n+    create_metric_types %w(Researched WikiRating Formula Score)\n+\n+    create_card! name: '*metric type', codename: 'metric_type',\n+                 subcards: {\n+                   '+*right+*default' => {\n+                     type_id: Card::PointerID,\n+                     content: '[[Researched]]'\n+                   },\n+                   '+*right+*options' => {\n+                     type_id: Card::PointerID,\n+                     content: metric_types_list\n+                   },\n+                   '+*right+*input' => {\n+                     content: 'radio'\n+                   }\n+                 }\n+\n+    metric_type_plus_right_query =\n+      '{\"right\":\"_right\", \"left\":{' \\\n+        '\"type\":\"metric\", \"right_plus\":[\"*metric type\",{\"refer_to\":\"_left\"}]}}'\n+    create_card! name: '*metric type plus right',\n+                 codename: 'metric_type_plus_right'\n+\n+    create_card! name: '*metric type plus right+*right+*structure',\n+                     type_id: Card::SetID,\n+                     content: metric_type_plus_right_query","path":"db/migrate_cards/20151020125612_metric_types.rb","position":38,"original_position":38,"commit_id":"8f67edeebf6e80895875e2e6e14abca971d48fe2","original_commit_id":"8f67edeebf6e80895875e2e6e14abca971d48fe2","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Align the elements of a hash literal if they span more than one line.","created_at":"2016-04-13T22:24:09Z","updated_at":"2016-04-13T22:24:09Z","html_url":"https://github.com/wagn/wikirate/pull/377#discussion_r59636504","pull_request_url":"https://api.github.com/repos/wagn/wikirate/pulls/377","_links":{"self":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/comments/59636504"},"html":{"href":"https://github.com/wagn/wikirate/pull/377#discussion_r59636504"},"pull_request":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/377"}}},"pull_request":{"url":"https://api.github.com/repos/wagn/wikirate/pulls/377","id":66401688,"html_url":"https://github.com/wagn/wikirate/pull/377","diff_url":"https://github.com/wagn/wikirate/pull/377.diff","patch_url":"https://github.com/wagn/wikirate/pull/377.patch","issue_url":"https://api.github.com/repos/wagn/wikirate/issues/377","number":377,"state":"open","locked":false,"title":"Demofixes","user":{"login":"ethn","id":21904,"avatar_url":"https://avatars.githubusercontent.com/u/21904?v=3","gravatar_id":"","url":"https://api.github.com/users/ethn","html_url":"https://github.com/ethn","followers_url":"https://api.github.com/users/ethn/followers","following_url":"https://api.github.com/users/ethn/following{/other_user}","gists_url":"https://api.github.com/users/ethn/gists{/gist_id}","starred_url":"https://api.github.com/users/ethn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethn/subscriptions","organizations_url":"https://api.github.com/users/ethn/orgs","repos_url":"https://api.github.com/users/ethn/repos","events_url":"https://api.github.com/users/ethn/events{/privacy}","received_events_url":"https://api.github.com/users/ethn/received_events","type":"User","site_admin":false},"body":"trying to get demo tests passing.\r\n\r\n_Most_ of what I've fixed so far is just test artifacts, but there may be a real bug fix or two in here.","created_at":"2016-04-13T22:23:43Z","updated_at":"2016-04-13T22:24:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13d661199781597d905714f143eb6385bb05bc7d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wagn/wikirate/pulls/377/commits","review_comments_url":"https://api.github.com/repos/wagn/wikirate/pulls/377/comments","review_comment_url":"https://api.github.com/repos/wagn/wikirate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wagn/wikirate/issues/377/comments","statuses_url":"https://api.github.com/repos/wagn/wikirate/statuses/8f67edeebf6e80895875e2e6e14abca971d48fe2","head":{"label":"ethn:demofixes","ref":"demofixes","sha":"8f67edeebf6e80895875e2e6e14abca971d48fe2","user":{"login":"ethn","id":21904,"avatar_url":"https://avatars.githubusercontent.com/u/21904?v=3","gravatar_id":"","url":"https://api.github.com/users/ethn","html_url":"https://github.com/ethn","followers_url":"https://api.github.com/users/ethn/followers","following_url":"https://api.github.com/users/ethn/following{/other_user}","gists_url":"https://api.github.com/users/ethn/gists{/gist_id}","starred_url":"https://api.github.com/users/ethn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethn/subscriptions","organizations_url":"https://api.github.com/users/ethn/orgs","repos_url":"https://api.github.com/users/ethn/repos","events_url":"https://api.github.com/users/ethn/events{/privacy}","received_events_url":"https://api.github.com/users/ethn/received_events","type":"User","site_admin":false},"repo":{"id":25889305,"name":"wikirate","full_name":"ethn/wikirate","owner":{"login":"ethn","id":21904,"avatar_url":"https://avatars.githubusercontent.com/u/21904?v=3","gravatar_id":"","url":"https://api.github.com/users/ethn","html_url":"https://github.com/ethn","followers_url":"https://api.github.com/users/ethn/followers","following_url":"https://api.github.com/users/ethn/following{/other_user}","gists_url":"https://api.github.com/users/ethn/gists{/gist_id}","starred_url":"https://api.github.com/users/ethn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethn/subscriptions","organizations_url":"https://api.github.com/users/ethn/orgs","repos_url":"https://api.github.com/users/ethn/repos","events_url":"https://api.github.com/users/ethn/events{/privacy}","received_events_url":"https://api.github.com/users/ethn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ethn/wikirate","description":"","fork":true,"url":"https://api.github.com/repos/ethn/wikirate","forks_url":"https://api.github.com/repos/ethn/wikirate/forks","keys_url":"https://api.github.com/repos/ethn/wikirate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethn/wikirate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethn/wikirate/teams","hooks_url":"https://api.github.com/repos/ethn/wikirate/hooks","issue_events_url":"https://api.github.com/repos/ethn/wikirate/issues/events{/number}","events_url":"https://api.github.com/repos/ethn/wikirate/events","assignees_url":"https://api.github.com/repos/ethn/wikirate/assignees{/user}","branches_url":"https://api.github.com/repos/ethn/wikirate/branches{/branch}","tags_url":"https://api.github.com/repos/ethn/wikirate/tags","blobs_url":"https://api.github.com/repos/ethn/wikirate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethn/wikirate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethn/wikirate/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethn/wikirate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethn/wikirate/statuses/{sha}","languages_url":"https://api.github.com/repos/ethn/wikirate/languages","stargazers_url":"https://api.github.com/repos/ethn/wikirate/stargazers","contributors_url":"https://api.github.com/repos/ethn/wikirate/contributors","subscribers_url":"https://api.github.com/repos/ethn/wikirate/subscribers","subscription_url":"https://api.github.com/repos/ethn/wikirate/subscription","commits_url":"https://api.github.com/repos/ethn/wikirate/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethn/wikirate/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethn/wikirate/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethn/wikirate/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethn/wikirate/contents/{+path}","compare_url":"https://api.github.com/repos/ethn/wikirate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethn/wikirate/merges","archive_url":"https://api.github.com/repos/ethn/wikirate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethn/wikirate/downloads","issues_url":"https://api.github.com/repos/ethn/wikirate/issues{/number}","pulls_url":"https://api.github.com/repos/ethn/wikirate/pulls{/number}","milestones_url":"https://api.github.com/repos/ethn/wikirate/milestones{/number}","notifications_url":"https://api.github.com/repos/ethn/wikirate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethn/wikirate/labels{/name}","releases_url":"https://api.github.com/repos/ethn/wikirate/releases{/id}","deployments_url":"https://api.github.com/repos/ethn/wikirate/deployments","created_at":"2014-10-28T20:46:09Z","updated_at":"2016-01-16T19:33:52Z","pushed_at":"2016-04-13T22:22:41Z","git_url":"git://github.com/ethn/wikirate.git","ssh_url":"git@github.com:ethn/wikirate.git","clone_url":"https://github.com/ethn/wikirate.git","svn_url":"https://github.com/ethn/wikirate","homepage":null,"size":87059,"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":"wagn:master","ref":"master","sha":"e934eefdc02f5280470f89ff8696fb3f68744a4e","user":{"login":"wagn","id":20722,"avatar_url":"https://avatars.githubusercontent.com/u/20722?v=3","gravatar_id":"","url":"https://api.github.com/users/wagn","html_url":"https://github.com/wagn","followers_url":"https://api.github.com/users/wagn/followers","following_url":"https://api.github.com/users/wagn/following{/other_user}","gists_url":"https://api.github.com/users/wagn/gists{/gist_id}","starred_url":"https://api.github.com/users/wagn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagn/subscriptions","organizations_url":"https://api.github.com/users/wagn/orgs","repos_url":"https://api.github.com/users/wagn/repos","events_url":"https://api.github.com/users/wagn/events{/privacy}","received_events_url":"https://api.github.com/users/wagn/received_events","type":"User","site_admin":false},"repo":{"id":15884166,"name":"wikirate","full_name":"wagn/wikirate","owner":{"login":"wagn","id":20722,"avatar_url":"https://avatars.githubusercontent.com/u/20722?v=3","gravatar_id":"","url":"https://api.github.com/users/wagn","html_url":"https://github.com/wagn","followers_url":"https://api.github.com/users/wagn/followers","following_url":"https://api.github.com/users/wagn/following{/other_user}","gists_url":"https://api.github.com/users/wagn/gists{/gist_id}","starred_url":"https://api.github.com/users/wagn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagn/subscriptions","organizations_url":"https://api.github.com/users/wagn/orgs","repos_url":"https://api.github.com/users/wagn/repos","events_url":"https://api.github.com/users/wagn/events{/privacy}","received_events_url":"https://api.github.com/users/wagn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wagn/wikirate","description":"","fork":false,"url":"https://api.github.com/repos/wagn/wikirate","forks_url":"https://api.github.com/repos/wagn/wikirate/forks","keys_url":"https://api.github.com/repos/wagn/wikirate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wagn/wikirate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wagn/wikirate/teams","hooks_url":"https://api.github.com/repos/wagn/wikirate/hooks","issue_events_url":"https://api.github.com/repos/wagn/wikirate/issues/events{/number}","events_url":"https://api.github.com/repos/wagn/wikirate/events","assignees_url":"https://api.github.com/repos/wagn/wikirate/assignees{/user}","branches_url":"https://api.github.com/repos/wagn/wikirate/branches{/branch}","tags_url":"https://api.github.com/repos/wagn/wikirate/tags","blobs_url":"https://api.github.com/repos/wagn/wikirate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wagn/wikirate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wagn/wikirate/git/refs{/sha}","trees_url":"https://api.github.com/repos/wagn/wikirate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wagn/wikirate/statuses/{sha}","languages_url":"https://api.github.com/repos/wagn/wikirate/languages","stargazers_url":"https://api.github.com/repos/wagn/wikirate/stargazers","contributors_url":"https://api.github.com/repos/wagn/wikirate/contributors","subscribers_url":"https://api.github.com/repos/wagn/wikirate/subscribers","subscription_url":"https://api.github.com/repos/wagn/wikirate/subscription","commits_url":"https://api.github.com/repos/wagn/wikirate/commits{/sha}","git_commits_url":"https://api.github.com/repos/wagn/wikirate/git/commits{/sha}","comments_url":"https://api.github.com/repos/wagn/wikirate/comments{/number}","issue_comment_url":"https://api.github.com/repos/wagn/wikirate/issues/comments{/number}","contents_url":"https://api.github.com/repos/wagn/wikirate/contents/{+path}","compare_url":"https://api.github.com/repos/wagn/wikirate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wagn/wikirate/merges","archive_url":"https://api.github.com/repos/wagn/wikirate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wagn/wikirate/downloads","issues_url":"https://api.github.com/repos/wagn/wikirate/issues{/number}","pulls_url":"https://api.github.com/repos/wagn/wikirate/pulls{/number}","milestones_url":"https://api.github.com/repos/wagn/wikirate/milestones{/number}","notifications_url":"https://api.github.com/repos/wagn/wikirate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wagn/wikirate/labels{/name}","releases_url":"https://api.github.com/repos/wagn/wikirate/releases{/id}","deployments_url":"https://api.github.com/repos/wagn/wikirate/deployments","created_at":"2014-01-13T22:29:39Z","updated_at":"2016-01-11T16:43:51Z","pushed_at":"2016-04-13T22:23:43Z","git_url":"git://github.com/wagn/wikirate.git","ssh_url":"git@github.com:wagn/wikirate.git","clone_url":"https://github.com/wagn/wikirate.git","svn_url":"https://github.com/wagn/wikirate","homepage":null,"size":86389,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/377"},"html":{"href":"https://github.com/wagn/wikirate/pull/377"},"issue":{"href":"https://api.github.com/repos/wagn/wikirate/issues/377"},"comments":{"href":"https://api.github.com/repos/wagn/wikirate/issues/377/comments"},"review_comments":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/377/comments"},"review_comment":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/377/commits"},"statuses":{"href":"https://api.github.com/repos/wagn/wikirate/statuses/8f67edeebf6e80895875e2e6e14abca971d48fe2"}}}}