{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/email-alert-api/pulls/comments/41161989","id":41161989,"diff_hunk":"@@ -0,0 +1,7 @@\n+class AddLinksToSubscriberList < ActiveRecord::Migration\n+  def change\n+    add_column :subscriber_lists, :links, :hstore, null: false, default: {}\n+\n+    add_index :subscriber_lists, :links, using: :gin","path":"db/migrate/20151001102405_add_links_to_subscriber_list.rb","position":5,"original_position":5,"commit_id":"e53c8c2319668aaa41d2b5a6bec368b7ea16be6e","original_commit_id":"e53c8c2319668aaa41d2b5a6bec368b7ea16be6e","user":{"login":"tijmenb","id":233676,"avatar_url":"https://avatars.githubusercontent.com/u/233676?v=3","gravatar_id":"","url":"https://api.github.com/users/tijmenb","html_url":"https://github.com/tijmenb","followers_url":"https://api.github.com/users/tijmenb/followers","following_url":"https://api.github.com/users/tijmenb/following{/other_user}","gists_url":"https://api.github.com/users/tijmenb/gists{/gist_id}","starred_url":"https://api.github.com/users/tijmenb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tijmenb/subscriptions","organizations_url":"https://api.github.com/users/tijmenb/orgs","repos_url":"https://api.github.com/users/tijmenb/repos","events_url":"https://api.github.com/users/tijmenb/events{/privacy}","received_events_url":"https://api.github.com/users/tijmenb/received_events","type":"User","site_admin":false},"body":"Can you add a comment explaining `gin`?","created_at":"2015-10-05T16:02:42Z","updated_at":"2015-10-05T16:02:42Z","html_url":"https://github.com/alphagov/email-alert-api/pull/82#discussion_r41161989","pull_request_url":"https://api.github.com/repos/alphagov/email-alert-api/pulls/82","_links":{"self":{"href":"https://api.github.com/repos/alphagov/email-alert-api/pulls/comments/41161989"},"html":{"href":"https://github.com/alphagov/email-alert-api/pull/82#discussion_r41161989"},"pull_request":{"href":"https://api.github.com/repos/alphagov/email-alert-api/pulls/82"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/email-alert-api/pulls/82","id":46516598,"html_url":"https://github.com/alphagov/email-alert-api/pull/82","diff_url":"https://github.com/alphagov/email-alert-api/pull/82.diff","patch_url":"https://github.com/alphagov/email-alert-api/pull/82.patch","issue_url":"https://api.github.com/repos/alphagov/email-alert-api/issues/82","number":82,"state":"open","locked":false,"title":"Add links field to SubscriberList","user":{"login":"mobaig","id":519250,"avatar_url":"https://avatars.githubusercontent.com/u/519250?v=3","gravatar_id":"","url":"https://api.github.com/users/mobaig","html_url":"https://github.com/mobaig","followers_url":"https://api.github.com/users/mobaig/followers","following_url":"https://api.github.com/users/mobaig/following{/other_user}","gists_url":"https://api.github.com/users/mobaig/gists{/gist_id}","starred_url":"https://api.github.com/users/mobaig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobaig/subscriptions","organizations_url":"https://api.github.com/users/mobaig/orgs","repos_url":"https://api.github.com/users/mobaig/repos","events_url":"https://api.github.com/users/mobaig/events{/privacy}","received_events_url":"https://api.github.com/users/mobaig/received_events","type":"User","site_admin":false},"body":"As part of the move towards identifying taggable content via unique content_ids,\r\nand consequently handling email subscriptions and alerts via the same,\r\nthis commit does the following:\r\n\r\n- Adds a links hstore to the SubscriberList model. This is intended to\r\n  contain tags which are identified by content_id rather than path.\r\n- Adds a factory method to build SubscriberLists, moving this logic out of the controller.\r\n\r\nTrello: https://trello.com/c/guDFlWXp","created_at":"2015-10-01T12:23:11Z","updated_at":"2015-10-05T16:02:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"260b001e4f7ac5d3741f799324a7432c5c4e58b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/email-alert-api/pulls/82/commits","review_comments_url":"https://api.github.com/repos/alphagov/email-alert-api/pulls/82/comments","review_comment_url":"https://api.github.com/repos/alphagov/email-alert-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/email-alert-api/issues/82/comments","statuses_url":"https://api.github.com/repos/alphagov/email-alert-api/statuses/e53c8c2319668aaa41d2b5a6bec368b7ea16be6e","head":{"label":"alphagov:mb_cid-1_add_links","ref":"mb_cid-1_add_links","sha":"e53c8c2319668aaa41d2b5a6bec368b7ea16be6e","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":24410607,"name":"email-alert-api","full_name":"alphagov/email-alert-api","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/email-alert-api","description":"Sends email alerts to the public","fork":false,"url":"https://api.github.com/repos/alphagov/email-alert-api","forks_url":"https://api.github.com/repos/alphagov/email-alert-api/forks","keys_url":"https://api.github.com/repos/alphagov/email-alert-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/email-alert-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/email-alert-api/teams","hooks_url":"https://api.github.com/repos/alphagov/email-alert-api/hooks","issue_events_url":"https://api.github.com/repos/alphagov/email-alert-api/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/email-alert-api/events","assignees_url":"https://api.github.com/repos/alphagov/email-alert-api/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/email-alert-api/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/email-alert-api/tags","blobs_url":"https://api.github.com/repos/alphagov/email-alert-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/email-alert-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/email-alert-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/email-alert-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/email-alert-api/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/email-alert-api/languages","stargazers_url":"https://api.github.com/repos/alphagov/email-alert-api/stargazers","contributors_url":"https://api.github.com/repos/alphagov/email-alert-api/contributors","subscribers_url":"https://api.github.com/repos/alphagov/email-alert-api/subscribers","subscription_url":"https://api.github.com/repos/alphagov/email-alert-api/subscription","commits_url":"https://api.github.com/repos/alphagov/email-alert-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/email-alert-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/email-alert-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/email-alert-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/email-alert-api/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/email-alert-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/email-alert-api/merges","archive_url":"https://api.github.com/repos/alphagov/email-alert-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/email-alert-api/downloads","issues_url":"https://api.github.com/repos/alphagov/email-alert-api/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/email-alert-api/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/email-alert-api/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/email-alert-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/email-alert-api/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/email-alert-api/releases{/id}","created_at":"2014-09-24T10:22:32Z","updated_at":"2015-05-08T08:35:54Z","pushed_at":"2015-10-05T08:39:21Z","git_url":"git://github.com/alphagov/email-alert-api.git","ssh_url":"git@github.com:alphagov/email-alert-api.git","clone_url":"https://github.com/alphagov/email-alert-api.git","svn_url":"https://github.com/alphagov/email-alert-api","homepage":null,"size":1864,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"a316b068f44445eafcfdd6f259f4ead626d76a09","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":24410607,"name":"email-alert-api","full_name":"alphagov/email-alert-api","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/email-alert-api","description":"Sends email alerts to the public","fork":false,"url":"https://api.github.com/repos/alphagov/email-alert-api","forks_url":"https://api.github.com/repos/alphagov/email-alert-api/forks","keys_url":"https://api.github.com/repos/alphagov/email-alert-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/email-alert-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/email-alert-api/teams","hooks_url":"https://api.github.com/repos/alphagov/email-alert-api/hooks","issue_events_url":"https://api.github.com/repos/alphagov/email-alert-api/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/email-alert-api/events","assignees_url":"https://api.github.com/repos/alphagov/email-alert-api/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/email-alert-api/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/email-alert-api/tags","blobs_url":"https://api.github.com/repos/alphagov/email-alert-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/email-alert-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/email-alert-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/email-alert-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/email-alert-api/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/email-alert-api/languages","stargazers_url":"https://api.github.com/repos/alphagov/email-alert-api/stargazers","contributors_url":"https://api.github.com/repos/alphagov/email-alert-api/contributors","subscribers_url":"https://api.github.com/repos/alphagov/email-alert-api/subscribers","subscription_url":"https://api.github.com/repos/alphagov/email-alert-api/subscription","commits_url":"https://api.github.com/repos/alphagov/email-alert-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/email-alert-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/email-alert-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/email-alert-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/email-alert-api/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/email-alert-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/email-alert-api/merges","archive_url":"https://api.github.com/repos/alphagov/email-alert-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/email-alert-api/downloads","issues_url":"https://api.github.com/repos/alphagov/email-alert-api/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/email-alert-api/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/email-alert-api/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/email-alert-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/email-alert-api/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/email-alert-api/releases{/id}","created_at":"2014-09-24T10:22:32Z","updated_at":"2015-05-08T08:35:54Z","pushed_at":"2015-10-05T08:39:21Z","git_url":"git://github.com/alphagov/email-alert-api.git","ssh_url":"git@github.com:alphagov/email-alert-api.git","clone_url":"https://github.com/alphagov/email-alert-api.git","svn_url":"https://github.com/alphagov/email-alert-api","homepage":null,"size":1864,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/email-alert-api/pulls/82"},"html":{"href":"https://github.com/alphagov/email-alert-api/pull/82"},"issue":{"href":"https://api.github.com/repos/alphagov/email-alert-api/issues/82"},"comments":{"href":"https://api.github.com/repos/alphagov/email-alert-api/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/email-alert-api/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/email-alert-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/email-alert-api/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/email-alert-api/statuses/e53c8c2319668aaa41d2b5a6bec368b7ea16be6e"}}}}