{"action":"created","comment":{"url":"https://api.github.com/repos/biola/news-publisher/pulls/comments/30724076","id":30724076,"diff_hunk":"@@ -7,10 +7,19 @@ class PublicationsController < ApplicationController\n \n   def index\n     @publications = policy_scope(Publication)\n-    @publications = @publications.custom_search(params[:q]) if params[:q]\n-    @publications = @publications.published if params[:published]\n-    @publications = @publications.by_last_change(params[:last_change]) if params[:last_change]\n-    @publications = @publications.order('created_at DESC').page(params[:page]).per(15)\n+    unless @publications.blank?","path":"app/controllers/publications_controller.rb","position":8,"original_position":8,"commit_id":"c6ecf3de0a7bd7155773c8fec6881ee4300c4b8d","original_commit_id":"c6ecf3de0a7bd7155773c8fec6881ee4300c4b8d","user":{"login":"halloffame","id":957859,"avatar_url":"https://avatars.githubusercontent.com/u/957859?v=3","gravatar_id":"","url":"https://api.github.com/users/halloffame","html_url":"https://github.com/halloffame","followers_url":"https://api.github.com/users/halloffame/followers","following_url":"https://api.github.com/users/halloffame/following{/other_user}","gists_url":"https://api.github.com/users/halloffame/gists{/gist_id}","starred_url":"https://api.github.com/users/halloffame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halloffame/subscriptions","organizations_url":"https://api.github.com/users/halloffame/orgs","repos_url":"https://api.github.com/users/halloffame/repos","events_url":"https://api.github.com/users/halloffame/events{/privacy}","received_events_url":"https://api.github.com/users/halloffame/received_events","type":"User","site_admin":false},"body":"Same question as on https://github.com/biola/wcms-publisher/pull/7","created_at":"2015-05-20T17:02:23Z","updated_at":"2015-05-20T17:02:23Z","html_url":"https://github.com/biola/news-publisher/pull/104#discussion_r30724076","pull_request_url":"https://api.github.com/repos/biola/news-publisher/pulls/104","_links":{"self":{"href":"https://api.github.com/repos/biola/news-publisher/pulls/comments/30724076"},"html":{"href":"https://github.com/biola/news-publisher/pull/104#discussion_r30724076"},"pull_request":{"href":"https://api.github.com/repos/biola/news-publisher/pulls/104"}}},"pull_request":{"url":"https://api.github.com/repos/biola/news-publisher/pulls/104","id":35797666,"html_url":"https://github.com/biola/news-publisher/pull/104","diff_url":"https://github.com/biola/news-publisher/pull/104.diff","patch_url":"https://github.com/biola/news-publisher/pull/104.patch","issue_url":"https://api.github.com/repos/biola/news-publisher/issues/104","number":104,"state":"open","locked":false,"title":"added publication filters","user":{"login":"jesilz","id":129303,"avatar_url":"https://avatars.githubusercontent.com/u/129303?v=3","gravatar_id":"","url":"https://api.github.com/users/jesilz","html_url":"https://github.com/jesilz","followers_url":"https://api.github.com/users/jesilz/followers","following_url":"https://api.github.com/users/jesilz/following{/other_user}","gists_url":"https://api.github.com/users/jesilz/gists{/gist_id}","starred_url":"https://api.github.com/users/jesilz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesilz/subscriptions","organizations_url":"https://api.github.com/users/jesilz/orgs","repos_url":"https://api.github.com/users/jesilz/repos","events_url":"https://api.github.com/users/jesilz/events{/privacy}","received_events_url":"https://api.github.com/users/jesilz/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-20T04:38:23Z","updated_at":"2015-05-20T17:02:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa6e8acc88920dca0c3f0e016d172a7fbf92e0a8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/biola/news-publisher/pulls/104/commits","review_comments_url":"https://api.github.com/repos/biola/news-publisher/pulls/104/comments","review_comment_url":"https://api.github.com/repos/biola/news-publisher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biola/news-publisher/issues/104/comments","statuses_url":"https://api.github.com/repos/biola/news-publisher/statuses/c6ecf3de0a7bd7155773c8fec6881ee4300c4b8d","head":{"label":"biola:publication_filters","ref":"publication_filters","sha":"c6ecf3de0a7bd7155773c8fec6881ee4300c4b8d","user":{"login":"biola","id":395114,"avatar_url":"https://avatars.githubusercontent.com/u/395114?v=3","gravatar_id":"","url":"https://api.github.com/users/biola","html_url":"https://github.com/biola","followers_url":"https://api.github.com/users/biola/followers","following_url":"https://api.github.com/users/biola/following{/other_user}","gists_url":"https://api.github.com/users/biola/gists{/gist_id}","starred_url":"https://api.github.com/users/biola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biola/subscriptions","organizations_url":"https://api.github.com/users/biola/orgs","repos_url":"https://api.github.com/users/biola/repos","events_url":"https://api.github.com/users/biola/events{/privacy}","received_events_url":"https://api.github.com/users/biola/received_events","type":"Organization","site_admin":false},"repo":{"id":21878120,"name":"news-publisher","full_name":"biola/news-publisher","owner":{"login":"biola","id":395114,"avatar_url":"https://avatars.githubusercontent.com/u/395114?v=3","gravatar_id":"","url":"https://api.github.com/users/biola","html_url":"https://github.com/biola","followers_url":"https://api.github.com/users/biola/followers","following_url":"https://api.github.com/users/biola/following{/other_user}","gists_url":"https://api.github.com/users/biola/gists{/gist_id}","starred_url":"https://api.github.com/users/biola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biola/subscriptions","organizations_url":"https://api.github.com/users/biola/orgs","repos_url":"https://api.github.com/users/biola/repos","events_url":"https://api.github.com/users/biola/events{/privacy}","received_events_url":"https://api.github.com/users/biola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biola/news-publisher","description":"Biola News Publisher","fork":false,"url":"https://api.github.com/repos/biola/news-publisher","forks_url":"https://api.github.com/repos/biola/news-publisher/forks","keys_url":"https://api.github.com/repos/biola/news-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biola/news-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biola/news-publisher/teams","hooks_url":"https://api.github.com/repos/biola/news-publisher/hooks","issue_events_url":"https://api.github.com/repos/biola/news-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/biola/news-publisher/events","assignees_url":"https://api.github.com/repos/biola/news-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/biola/news-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/biola/news-publisher/tags","blobs_url":"https://api.github.com/repos/biola/news-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biola/news-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biola/news-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/biola/news-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biola/news-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/biola/news-publisher/languages","stargazers_url":"https://api.github.com/repos/biola/news-publisher/stargazers","contributors_url":"https://api.github.com/repos/biola/news-publisher/contributors","subscribers_url":"https://api.github.com/repos/biola/news-publisher/subscribers","subscription_url":"https://api.github.com/repos/biola/news-publisher/subscription","commits_url":"https://api.github.com/repos/biola/news-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/biola/news-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/biola/news-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/biola/news-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/biola/news-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/biola/news-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biola/news-publisher/merges","archive_url":"https://api.github.com/repos/biola/news-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biola/news-publisher/downloads","issues_url":"https://api.github.com/repos/biola/news-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/biola/news-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/biola/news-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/biola/news-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biola/news-publisher/labels{/name}","releases_url":"https://api.github.com/repos/biola/news-publisher/releases{/id}","created_at":"2014-07-15T22:27:51Z","updated_at":"2015-05-07T18:05:37Z","pushed_at":"2015-05-20T04:38:23Z","git_url":"git://github.com/biola/news-publisher.git","ssh_url":"git@github.com:biola/news-publisher.git","clone_url":"https://github.com/biola/news-publisher.git","svn_url":"https://github.com/biola/news-publisher","homepage":null,"size":2592,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"biola:master","ref":"master","sha":"c8449d873870d48493e99671923894a728b2fc3b","user":{"login":"biola","id":395114,"avatar_url":"https://avatars.githubusercontent.com/u/395114?v=3","gravatar_id":"","url":"https://api.github.com/users/biola","html_url":"https://github.com/biola","followers_url":"https://api.github.com/users/biola/followers","following_url":"https://api.github.com/users/biola/following{/other_user}","gists_url":"https://api.github.com/users/biola/gists{/gist_id}","starred_url":"https://api.github.com/users/biola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biola/subscriptions","organizations_url":"https://api.github.com/users/biola/orgs","repos_url":"https://api.github.com/users/biola/repos","events_url":"https://api.github.com/users/biola/events{/privacy}","received_events_url":"https://api.github.com/users/biola/received_events","type":"Organization","site_admin":false},"repo":{"id":21878120,"name":"news-publisher","full_name":"biola/news-publisher","owner":{"login":"biola","id":395114,"avatar_url":"https://avatars.githubusercontent.com/u/395114?v=3","gravatar_id":"","url":"https://api.github.com/users/biola","html_url":"https://github.com/biola","followers_url":"https://api.github.com/users/biola/followers","following_url":"https://api.github.com/users/biola/following{/other_user}","gists_url":"https://api.github.com/users/biola/gists{/gist_id}","starred_url":"https://api.github.com/users/biola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biola/subscriptions","organizations_url":"https://api.github.com/users/biola/orgs","repos_url":"https://api.github.com/users/biola/repos","events_url":"https://api.github.com/users/biola/events{/privacy}","received_events_url":"https://api.github.com/users/biola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biola/news-publisher","description":"Biola News Publisher","fork":false,"url":"https://api.github.com/repos/biola/news-publisher","forks_url":"https://api.github.com/repos/biola/news-publisher/forks","keys_url":"https://api.github.com/repos/biola/news-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biola/news-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biola/news-publisher/teams","hooks_url":"https://api.github.com/repos/biola/news-publisher/hooks","issue_events_url":"https://api.github.com/repos/biola/news-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/biola/news-publisher/events","assignees_url":"https://api.github.com/repos/biola/news-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/biola/news-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/biola/news-publisher/tags","blobs_url":"https://api.github.com/repos/biola/news-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biola/news-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biola/news-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/biola/news-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biola/news-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/biola/news-publisher/languages","stargazers_url":"https://api.github.com/repos/biola/news-publisher/stargazers","contributors_url":"https://api.github.com/repos/biola/news-publisher/contributors","subscribers_url":"https://api.github.com/repos/biola/news-publisher/subscribers","subscription_url":"https://api.github.com/repos/biola/news-publisher/subscription","commits_url":"https://api.github.com/repos/biola/news-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/biola/news-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/biola/news-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/biola/news-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/biola/news-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/biola/news-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biola/news-publisher/merges","archive_url":"https://api.github.com/repos/biola/news-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biola/news-publisher/downloads","issues_url":"https://api.github.com/repos/biola/news-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/biola/news-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/biola/news-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/biola/news-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biola/news-publisher/labels{/name}","releases_url":"https://api.github.com/repos/biola/news-publisher/releases{/id}","created_at":"2014-07-15T22:27:51Z","updated_at":"2015-05-07T18:05:37Z","pushed_at":"2015-05-20T04:38:23Z","git_url":"git://github.com/biola/news-publisher.git","ssh_url":"git@github.com:biola/news-publisher.git","clone_url":"https://github.com/biola/news-publisher.git","svn_url":"https://github.com/biola/news-publisher","homepage":null,"size":2592,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biola/news-publisher/pulls/104"},"html":{"href":"https://github.com/biola/news-publisher/pull/104"},"issue":{"href":"https://api.github.com/repos/biola/news-publisher/issues/104"},"comments":{"href":"https://api.github.com/repos/biola/news-publisher/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/biola/news-publisher/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/biola/news-publisher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biola/news-publisher/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/biola/news-publisher/statuses/c6ecf3de0a7bd7155773c8fec6881ee4300c4b8d"}}}}