{"action":"created","comment":{"url":"https://api.github.com/repos/jekyll/jekyll/pulls/comments/29559695","id":29559695,"diff_hunk":"@@ -158,7 +164,6 @@ def render\n         end\n       end\n \n-      payload = site_payload","path":"lib/jekyll/site.rb","position":31,"original_position":31,"commit_id":"736e6a78f14e3096fd212f8ac8c7925761d97076","original_commit_id":"245d9677d73fe481e6b3e1d3ad878d85d5b3303d","user":{"login":"stevecrozz","id":133328,"avatar_url":"https://avatars.githubusercontent.com/u/133328?v=3","gravatar_id":"","url":"https://api.github.com/users/stevecrozz","html_url":"https://github.com/stevecrozz","followers_url":"https://api.github.com/users/stevecrozz/followers","following_url":"https://api.github.com/users/stevecrozz/following{/other_user}","gists_url":"https://api.github.com/users/stevecrozz/gists{/gist_id}","starred_url":"https://api.github.com/users/stevecrozz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevecrozz/subscriptions","organizations_url":"https://api.github.com/users/stevecrozz/orgs","repos_url":"https://api.github.com/users/stevecrozz/repos","events_url":"https://api.github.com/users/stevecrozz/events{/privacy}","received_events_url":"https://api.github.com/users/stevecrozz/received_events","type":"User","site_admin":false},"body":"No prob. I just don't want to accidentally introduce a big performance issue","created_at":"2015-05-03T20:08:27Z","updated_at":"2015-05-03T20:08:27Z","html_url":"https://github.com/jekyll/jekyll/pull/3553#discussion_r29559695","pull_request_url":"https://api.github.com/repos/jekyll/jekyll/pulls/3553","_links":{"self":{"href":"https://api.github.com/repos/jekyll/jekyll/pulls/comments/29559695"},"html":{"href":"https://github.com/jekyll/jekyll/pull/3553#discussion_r29559695"},"pull_request":{"href":"https://api.github.com/repos/jekyll/jekyll/pulls/3553"}}},"pull_request":{"url":"https://api.github.com/repos/jekyll/jekyll/pulls/3553","id":30711624,"html_url":"https://github.com/jekyll/jekyll/pull/3553","diff_url":"https://github.com/jekyll/jekyll/pull/3553.diff","patch_url":"https://github.com/jekyll/jekyll/pull/3553.patch","issue_url":"https://api.github.com/repos/jekyll/jekyll/issues/3553","number":3553,"state":"open","locked":false,"title":"prototype of jekyll hooks, encapsulated","user":{"login":"stevecrozz","id":133328,"avatar_url":"https://avatars.githubusercontent.com/u/133328?v=3","gravatar_id":"","url":"https://api.github.com/users/stevecrozz","html_url":"https://github.com/stevecrozz","followers_url":"https://api.github.com/users/stevecrozz/followers","following_url":"https://api.github.com/users/stevecrozz/following{/other_user}","gists_url":"https://api.github.com/users/stevecrozz/gists{/gist_id}","starred_url":"https://api.github.com/users/stevecrozz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevecrozz/subscriptions","organizations_url":"https://api.github.com/users/stevecrozz/orgs","repos_url":"https://api.github.com/users/stevecrozz/repos","events_url":"https://api.github.com/users/stevecrozz/events{/privacy}","received_events_url":"https://api.github.com/users/stevecrozz/received_events","type":"User","site_admin":false},"body":"This is a second attempt at #3498 (adding hooks to Jekyll). In my last attempt @envygeeks had some complaints about the lack of encapsulation. This PR is an attempt to address those concerns and try out a new idea. This is definitely not ready to merge, but I wanted to get some eyes on it before I implement and write tests for the whole thing. The hooks concept is inspired by, but in this instance not perfectly compatible with octopress-hooks, so it's a bit of a departure from #3392 by @parkr, but I think it nicely encapsulates the hook logic.\r\n\r\nHere's a practical example of how you could use one of these hooks to do something useful: https://github.com/stevecrozz/featherblade","created_at":"2015-03-07T23:47:57Z","updated_at":"2015-05-03T20:08:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b44a6024b64a33ad9b5302e45be00e4a7c545b9f","assignee":null,"milestone":{"url":"https://api.github.com/repos/jekyll/jekyll/milestones/19","html_url":"https://github.com/jekyll/jekyll/milestones/3.0","labels_url":"https://api.github.com/repos/jekyll/jekyll/milestones/19/labels","id":547667,"number":19,"title":"3.0","description":null,"creator":{"login":"parkr","id":237985,"avatar_url":"https://avatars.githubusercontent.com/u/237985?v=3","gravatar_id":"","url":"https://api.github.com/users/parkr","html_url":"https://github.com/parkr","followers_url":"https://api.github.com/users/parkr/followers","following_url":"https://api.github.com/users/parkr/following{/other_user}","gists_url":"https://api.github.com/users/parkr/gists{/gist_id}","starred_url":"https://api.github.com/users/parkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkr/subscriptions","organizations_url":"https://api.github.com/users/parkr/orgs","repos_url":"https://api.github.com/users/parkr/repos","events_url":"https://api.github.com/users/parkr/events{/privacy}","received_events_url":"https://api.github.com/users/parkr/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":44,"state":"open","created_at":"2014-01-25T21:57:45Z","updated_at":"2015-04-29T20:47:35Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/jekyll/jekyll/pulls/3553/commits","review_comments_url":"https://api.github.com/repos/jekyll/jekyll/pulls/3553/comments","review_comment_url":"https://api.github.com/repos/jekyll/jekyll/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/3553/comments","statuses_url":"https://api.github.com/repos/jekyll/jekyll/statuses/736e6a78f14e3096fd212f8ac8c7925761d97076","head":{"label":"stevecrozz:jekyll-hooks","ref":"jekyll-hooks","sha":"736e6a78f14e3096fd212f8ac8c7925761d97076","user":{"login":"stevecrozz","id":133328,"avatar_url":"https://avatars.githubusercontent.com/u/133328?v=3","gravatar_id":"","url":"https://api.github.com/users/stevecrozz","html_url":"https://github.com/stevecrozz","followers_url":"https://api.github.com/users/stevecrozz/followers","following_url":"https://api.github.com/users/stevecrozz/following{/other_user}","gists_url":"https://api.github.com/users/stevecrozz/gists{/gist_id}","starred_url":"https://api.github.com/users/stevecrozz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevecrozz/subscriptions","organizations_url":"https://api.github.com/users/stevecrozz/orgs","repos_url":"https://api.github.com/users/stevecrozz/repos","events_url":"https://api.github.com/users/stevecrozz/events{/privacy}","received_events_url":"https://api.github.com/users/stevecrozz/received_events","type":"User","site_admin":false},"repo":{"id":31174716,"name":"jekyll","full_name":"stevecrozz/jekyll","owner":{"login":"stevecrozz","id":133328,"avatar_url":"https://avatars.githubusercontent.com/u/133328?v=3","gravatar_id":"","url":"https://api.github.com/users/stevecrozz","html_url":"https://github.com/stevecrozz","followers_url":"https://api.github.com/users/stevecrozz/followers","following_url":"https://api.github.com/users/stevecrozz/following{/other_user}","gists_url":"https://api.github.com/users/stevecrozz/gists{/gist_id}","starred_url":"https://api.github.com/users/stevecrozz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevecrozz/subscriptions","organizations_url":"https://api.github.com/users/stevecrozz/orgs","repos_url":"https://api.github.com/users/stevecrozz/repos","events_url":"https://api.github.com/users/stevecrozz/events{/privacy}","received_events_url":"https://api.github.com/users/stevecrozz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stevecrozz/jekyll","description":"Jekyll is a blog-aware, static site generator in Ruby","fork":true,"url":"https://api.github.com/repos/stevecrozz/jekyll","forks_url":"https://api.github.com/repos/stevecrozz/jekyll/forks","keys_url":"https://api.github.com/repos/stevecrozz/jekyll/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stevecrozz/jekyll/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stevecrozz/jekyll/teams","hooks_url":"https://api.github.com/repos/stevecrozz/jekyll/hooks","issue_events_url":"https://api.github.com/repos/stevecrozz/jekyll/issues/events{/number}","events_url":"https://api.github.com/repos/stevecrozz/jekyll/events","assignees_url":"https://api.github.com/repos/stevecrozz/jekyll/assignees{/user}","branches_url":"https://api.github.com/repos/stevecrozz/jekyll/branches{/branch}","tags_url":"https://api.github.com/repos/stevecrozz/jekyll/tags","blobs_url":"https://api.github.com/repos/stevecrozz/jekyll/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stevecrozz/jekyll/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stevecrozz/jekyll/git/refs{/sha}","trees_url":"https://api.github.com/repos/stevecrozz/jekyll/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stevecrozz/jekyll/statuses/{sha}","languages_url":"https://api.github.com/repos/stevecrozz/jekyll/languages","stargazers_url":"https://api.github.com/repos/stevecrozz/jekyll/stargazers","contributors_url":"https://api.github.com/repos/stevecrozz/jekyll/contributors","subscribers_url":"https://api.github.com/repos/stevecrozz/jekyll/subscribers","subscription_url":"https://api.github.com/repos/stevecrozz/jekyll/subscription","commits_url":"https://api.github.com/repos/stevecrozz/jekyll/commits{/sha}","git_commits_url":"https://api.github.com/repos/stevecrozz/jekyll/git/commits{/sha}","comments_url":"https://api.github.com/repos/stevecrozz/jekyll/comments{/number}","issue_comment_url":"https://api.github.com/repos/stevecrozz/jekyll/issues/comments{/number}","contents_url":"https://api.github.com/repos/stevecrozz/jekyll/contents/{+path}","compare_url":"https://api.github.com/repos/stevecrozz/jekyll/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stevecrozz/jekyll/merges","archive_url":"https://api.github.com/repos/stevecrozz/jekyll/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stevecrozz/jekyll/downloads","issues_url":"https://api.github.com/repos/stevecrozz/jekyll/issues{/number}","pulls_url":"https://api.github.com/repos/stevecrozz/jekyll/pulls{/number}","milestones_url":"https://api.github.com/repos/stevecrozz/jekyll/milestones{/number}","notifications_url":"https://api.github.com/repos/stevecrozz/jekyll/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stevecrozz/jekyll/labels{/name}","releases_url":"https://api.github.com/repos/stevecrozz/jekyll/releases{/id}","created_at":"2015-02-22T18:49:57Z","updated_at":"2015-02-22T18:50:01Z","pushed_at":"2015-05-02T22:57:48Z","git_url":"git://github.com/stevecrozz/jekyll.git","ssh_url":"git@github.com:stevecrozz/jekyll.git","clone_url":"https://github.com/stevecrozz/jekyll.git","svn_url":"https://github.com/stevecrozz/jekyll","homepage":"http://jekyllrb.com","size":9124,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jekyll:master","ref":"master","sha":"ae584e43ed11467290ab40b8557c77c07db17feb","user":{"login":"jekyll","id":3083652,"avatar_url":"https://avatars.githubusercontent.com/u/3083652?v=3","gravatar_id":"","url":"https://api.github.com/users/jekyll","html_url":"https://github.com/jekyll","followers_url":"https://api.github.com/users/jekyll/followers","following_url":"https://api.github.com/users/jekyll/following{/other_user}","gists_url":"https://api.github.com/users/jekyll/gists{/gist_id}","starred_url":"https://api.github.com/users/jekyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jekyll/subscriptions","organizations_url":"https://api.github.com/users/jekyll/orgs","repos_url":"https://api.github.com/users/jekyll/repos","events_url":"https://api.github.com/users/jekyll/events{/privacy}","received_events_url":"https://api.github.com/users/jekyll/received_events","type":"Organization","site_admin":false},"repo":{"id":65252,"name":"jekyll","full_name":"jekyll/jekyll","owner":{"login":"jekyll","id":3083652,"avatar_url":"https://avatars.githubusercontent.com/u/3083652?v=3","gravatar_id":"","url":"https://api.github.com/users/jekyll","html_url":"https://github.com/jekyll","followers_url":"https://api.github.com/users/jekyll/followers","following_url":"https://api.github.com/users/jekyll/following{/other_user}","gists_url":"https://api.github.com/users/jekyll/gists{/gist_id}","starred_url":"https://api.github.com/users/jekyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jekyll/subscriptions","organizations_url":"https://api.github.com/users/jekyll/orgs","repos_url":"https://api.github.com/users/jekyll/repos","events_url":"https://api.github.com/users/jekyll/events{/privacy}","received_events_url":"https://api.github.com/users/jekyll/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jekyll/jekyll","description":"Jekyll is a blog-aware, static site generator in Ruby","fork":false,"url":"https://api.github.com/repos/jekyll/jekyll","forks_url":"https://api.github.com/repos/jekyll/jekyll/forks","keys_url":"https://api.github.com/repos/jekyll/jekyll/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jekyll/jekyll/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jekyll/jekyll/teams","hooks_url":"https://api.github.com/repos/jekyll/jekyll/hooks","issue_events_url":"https://api.github.com/repos/jekyll/jekyll/issues/events{/number}","events_url":"https://api.github.com/repos/jekyll/jekyll/events","assignees_url":"https://api.github.com/repos/jekyll/jekyll/assignees{/user}","branches_url":"https://api.github.com/repos/jekyll/jekyll/branches{/branch}","tags_url":"https://api.github.com/repos/jekyll/jekyll/tags","blobs_url":"https://api.github.com/repos/jekyll/jekyll/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jekyll/jekyll/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jekyll/jekyll/git/refs{/sha}","trees_url":"https://api.github.com/repos/jekyll/jekyll/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jekyll/jekyll/statuses/{sha}","languages_url":"https://api.github.com/repos/jekyll/jekyll/languages","stargazers_url":"https://api.github.com/repos/jekyll/jekyll/stargazers","contributors_url":"https://api.github.com/repos/jekyll/jekyll/contributors","subscribers_url":"https://api.github.com/repos/jekyll/jekyll/subscribers","subscription_url":"https://api.github.com/repos/jekyll/jekyll/subscription","commits_url":"https://api.github.com/repos/jekyll/jekyll/commits{/sha}","git_commits_url":"https://api.github.com/repos/jekyll/jekyll/git/commits{/sha}","comments_url":"https://api.github.com/repos/jekyll/jekyll/comments{/number}","issue_comment_url":"https://api.github.com/repos/jekyll/jekyll/issues/comments{/number}","contents_url":"https://api.github.com/repos/jekyll/jekyll/contents/{+path}","compare_url":"https://api.github.com/repos/jekyll/jekyll/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jekyll/jekyll/merges","archive_url":"https://api.github.com/repos/jekyll/jekyll/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jekyll/jekyll/downloads","issues_url":"https://api.github.com/repos/jekyll/jekyll/issues{/number}","pulls_url":"https://api.github.com/repos/jekyll/jekyll/pulls{/number}","milestones_url":"https://api.github.com/repos/jekyll/jekyll/milestones{/number}","notifications_url":"https://api.github.com/repos/jekyll/jekyll/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jekyll/jekyll/labels{/name}","releases_url":"https://api.github.com/repos/jekyll/jekyll/releases{/id}","created_at":"2008-10-20T06:29:03Z","updated_at":"2015-05-03T19:56:58Z","pushed_at":"2015-05-02T22:57:52Z","git_url":"git://github.com/jekyll/jekyll.git","ssh_url":"git@github.com:jekyll/jekyll.git","clone_url":"https://github.com/jekyll/jekyll.git","svn_url":"https://github.com/jekyll/jekyll","homepage":"http://jekyllrb.com","size":36484,"stargazers_count":19593,"watchers_count":19593,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4049,"mirror_url":null,"open_issues_count":81,"forks":4049,"open_issues":81,"watchers":19593,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jekyll/jekyll/pulls/3553"},"html":{"href":"https://github.com/jekyll/jekyll/pull/3553"},"issue":{"href":"https://api.github.com/repos/jekyll/jekyll/issues/3553"},"comments":{"href":"https://api.github.com/repos/jekyll/jekyll/issues/3553/comments"},"review_comments":{"href":"https://api.github.com/repos/jekyll/jekyll/pulls/3553/comments"},"review_comment":{"href":"https://api.github.com/repos/jekyll/jekyll/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jekyll/jekyll/pulls/3553/commits"},"statuses":{"href":"https://api.github.com/repos/jekyll/jekyll/statuses/736e6a78f14e3096fd212f8ac8c7925761d97076"}}}}