{"action":"created","comment":{"url":"https://api.github.com/repos/postcss/postcss-reporter/pulls/comments/32885324","id":32885324,"diff_hunk":"@@ -0,0 +1,45 @@\n+var chalk = require('chalk');\n+var path = require('path');\n+\n+module.exports = function() {\n+  return function(input) {","path":"lib/defaultFormatter.js","position":5,"original_position":5,"commit_id":"7b2f3321a38923c16c4e72ddd40c7684e7d86b1a","original_commit_id":"1109c6a9cece2e57affcc645f7c93eac232ba291","user":{"login":"ben-eb","id":1282980,"avatar_url":"https://avatars.githubusercontent.com/u/1282980?v=3","gravatar_id":"","url":"https://api.github.com/users/ben-eb","html_url":"https://github.com/ben-eb","followers_url":"https://api.github.com/users/ben-eb/followers","following_url":"https://api.github.com/users/ben-eb/following{/other_user}","gists_url":"https://api.github.com/users/ben-eb/gists{/gist_id}","starred_url":"https://api.github.com/users/ben-eb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben-eb/subscriptions","organizations_url":"https://api.github.com/users/ben-eb/orgs","repos_url":"https://api.github.com/users/ben-eb/repos","events_url":"https://api.github.com/users/ben-eb/events{/privacy}","received_events_url":"https://api.github.com/users/ben-eb/received_events","type":"User","site_admin":false},"body":"Yep, makes sense. :+1:","created_at":"2015-06-20T15:29:08Z","updated_at":"2015-06-20T15:29:08Z","html_url":"https://github.com/postcss/postcss-reporter/pull/2#discussion_r32885324","pull_request_url":"https://api.github.com/repos/postcss/postcss-reporter/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/postcss/postcss-reporter/pulls/comments/32885324"},"html":{"href":"https://github.com/postcss/postcss-reporter/pull/2#discussion_r32885324"},"pull_request":{"href":"https://api.github.com/repos/postcss/postcss-reporter/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/postcss/postcss-reporter/pulls/2","id":38159513,"html_url":"https://github.com/postcss/postcss-reporter/pull/2","diff_url":"https://github.com/postcss/postcss-reporter/pull/2.diff","patch_url":"https://github.com/postcss/postcss-reporter/pull/2.patch","issue_url":"https://api.github.com/repos/postcss/postcss-reporter/issues/2","number":2,"state":"open","locked":false,"title":"Reporter","user":{"login":"davidtheclark","id":628431,"avatar_url":"https://avatars.githubusercontent.com/u/628431?v=3","gravatar_id":"","url":"https://api.github.com/users/davidtheclark","html_url":"https://github.com/davidtheclark","followers_url":"https://api.github.com/users/davidtheclark/followers","following_url":"https://api.github.com/users/davidtheclark/following{/other_user}","gists_url":"https://api.github.com/users/davidtheclark/gists{/gist_id}","starred_url":"https://api.github.com/users/davidtheclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidtheclark/subscriptions","organizations_url":"https://api.github.com/users/davidtheclark/orgs","repos_url":"https://api.github.com/users/davidtheclark/repos","events_url":"https://api.github.com/users/davidtheclark/events{/privacy}","received_events_url":"https://api.github.com/users/davidtheclark/received_events","type":"User","site_admin":false},"body":"@postcss/owners I've revamped the codebase. Please take a look and offer any feedback you have.\r\n\r\nOne important decision: What I'm currently expecting from a \"formatter\" is a function that accepts an object like this ...\r\n\r\n```js\r\n{\r\n  messages: [ .. ] // set of messages from the PostCSS result\r\n  source: 'probably/some/path.css'\r\n}\r\n```\r\n\r\n... and then (for this reporter) returns a string.\r\n\r\nDoes that make sense? I figure that making the signature a simple object would leave plenty of space for variation with other reporters.","created_at":"2015-06-20T00:46:55Z","updated_at":"2015-06-20T15:29:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4096442cb2f6bed5ed3f4f2761fe40ca65258d6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/postcss/postcss-reporter/pulls/2/commits","review_comments_url":"https://api.github.com/repos/postcss/postcss-reporter/pulls/2/comments","review_comment_url":"https://api.github.com/repos/postcss/postcss-reporter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/postcss/postcss-reporter/issues/2/comments","statuses_url":"https://api.github.com/repos/postcss/postcss-reporter/statuses/7b2f3321a38923c16c4e72ddd40c7684e7d86b1a","head":{"label":"postcss:reporter","ref":"reporter","sha":"7b2f3321a38923c16c4e72ddd40c7684e7d86b1a","user":{"login":"postcss","id":8296347,"avatar_url":"https://avatars.githubusercontent.com/u/8296347?v=3","gravatar_id":"","url":"https://api.github.com/users/postcss","html_url":"https://github.com/postcss","followers_url":"https://api.github.com/users/postcss/followers","following_url":"https://api.github.com/users/postcss/following{/other_user}","gists_url":"https://api.github.com/users/postcss/gists{/gist_id}","starred_url":"https://api.github.com/users/postcss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postcss/subscriptions","organizations_url":"https://api.github.com/users/postcss/orgs","repos_url":"https://api.github.com/users/postcss/repos","events_url":"https://api.github.com/users/postcss/events{/privacy}","received_events_url":"https://api.github.com/users/postcss/received_events","type":"Organization","site_admin":false},"repo":{"id":37040512,"name":"postcss-reporter","full_name":"postcss/postcss-reporter","owner":{"login":"postcss","id":8296347,"avatar_url":"https://avatars.githubusercontent.com/u/8296347?v=3","gravatar_id":"","url":"https://api.github.com/users/postcss","html_url":"https://github.com/postcss","followers_url":"https://api.github.com/users/postcss/followers","following_url":"https://api.github.com/users/postcss/following{/other_user}","gists_url":"https://api.github.com/users/postcss/gists{/gist_id}","starred_url":"https://api.github.com/users/postcss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postcss/subscriptions","organizations_url":"https://api.github.com/users/postcss/orgs","repos_url":"https://api.github.com/users/postcss/repos","events_url":"https://api.github.com/users/postcss/events{/privacy}","received_events_url":"https://api.github.com/users/postcss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/postcss/postcss-reporter","description":"Log PostCSS messages in the console","fork":false,"url":"https://api.github.com/repos/postcss/postcss-reporter","forks_url":"https://api.github.com/repos/postcss/postcss-reporter/forks","keys_url":"https://api.github.com/repos/postcss/postcss-reporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/postcss/postcss-reporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/postcss/postcss-reporter/teams","hooks_url":"https://api.github.com/repos/postcss/postcss-reporter/hooks","issue_events_url":"https://api.github.com/repos/postcss/postcss-reporter/issues/events{/number}","events_url":"https://api.github.com/repos/postcss/postcss-reporter/events","assignees_url":"https://api.github.com/repos/postcss/postcss-reporter/assignees{/user}","branches_url":"https://api.github.com/repos/postcss/postcss-reporter/branches{/branch}","tags_url":"https://api.github.com/repos/postcss/postcss-reporter/tags","blobs_url":"https://api.github.com/repos/postcss/postcss-reporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/postcss/postcss-reporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/postcss/postcss-reporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/postcss/postcss-reporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/postcss/postcss-reporter/statuses/{sha}","languages_url":"https://api.github.com/repos/postcss/postcss-reporter/languages","stargazers_url":"https://api.github.com/repos/postcss/postcss-reporter/stargazers","contributors_url":"https://api.github.com/repos/postcss/postcss-reporter/contributors","subscribers_url":"https://api.github.com/repos/postcss/postcss-reporter/subscribers","subscription_url":"https://api.github.com/repos/postcss/postcss-reporter/subscription","commits_url":"https://api.github.com/repos/postcss/postcss-reporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/postcss/postcss-reporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/postcss/postcss-reporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/postcss/postcss-reporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/postcss/postcss-reporter/contents/{+path}","compare_url":"https://api.github.com/repos/postcss/postcss-reporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/postcss/postcss-reporter/merges","archive_url":"https://api.github.com/repos/postcss/postcss-reporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/postcss/postcss-reporter/downloads","issues_url":"https://api.github.com/repos/postcss/postcss-reporter/issues{/number}","pulls_url":"https://api.github.com/repos/postcss/postcss-reporter/pulls{/number}","milestones_url":"https://api.github.com/repos/postcss/postcss-reporter/milestones{/number}","notifications_url":"https://api.github.com/repos/postcss/postcss-reporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/postcss/postcss-reporter/labels{/name}","releases_url":"https://api.github.com/repos/postcss/postcss-reporter/releases{/id}","created_at":"2015-06-08T01:52:53Z","updated_at":"2015-06-10T13:22:49Z","pushed_at":"2015-06-20T15:26:34Z","git_url":"git://github.com/postcss/postcss-reporter.git","ssh_url":"git@github.com:postcss/postcss-reporter.git","clone_url":"https://github.com/postcss/postcss-reporter.git","svn_url":"https://github.com/postcss/postcss-reporter","homepage":null,"size":160,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"postcss:master","ref":"master","sha":"1219a92c0479ef0cace925355b0897cbdd47aad0","user":{"login":"postcss","id":8296347,"avatar_url":"https://avatars.githubusercontent.com/u/8296347?v=3","gravatar_id":"","url":"https://api.github.com/users/postcss","html_url":"https://github.com/postcss","followers_url":"https://api.github.com/users/postcss/followers","following_url":"https://api.github.com/users/postcss/following{/other_user}","gists_url":"https://api.github.com/users/postcss/gists{/gist_id}","starred_url":"https://api.github.com/users/postcss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postcss/subscriptions","organizations_url":"https://api.github.com/users/postcss/orgs","repos_url":"https://api.github.com/users/postcss/repos","events_url":"https://api.github.com/users/postcss/events{/privacy}","received_events_url":"https://api.github.com/users/postcss/received_events","type":"Organization","site_admin":false},"repo":{"id":37040512,"name":"postcss-reporter","full_name":"postcss/postcss-reporter","owner":{"login":"postcss","id":8296347,"avatar_url":"https://avatars.githubusercontent.com/u/8296347?v=3","gravatar_id":"","url":"https://api.github.com/users/postcss","html_url":"https://github.com/postcss","followers_url":"https://api.github.com/users/postcss/followers","following_url":"https://api.github.com/users/postcss/following{/other_user}","gists_url":"https://api.github.com/users/postcss/gists{/gist_id}","starred_url":"https://api.github.com/users/postcss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postcss/subscriptions","organizations_url":"https://api.github.com/users/postcss/orgs","repos_url":"https://api.github.com/users/postcss/repos","events_url":"https://api.github.com/users/postcss/events{/privacy}","received_events_url":"https://api.github.com/users/postcss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/postcss/postcss-reporter","description":"Log PostCSS messages in the console","fork":false,"url":"https://api.github.com/repos/postcss/postcss-reporter","forks_url":"https://api.github.com/repos/postcss/postcss-reporter/forks","keys_url":"https://api.github.com/repos/postcss/postcss-reporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/postcss/postcss-reporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/postcss/postcss-reporter/teams","hooks_url":"https://api.github.com/repos/postcss/postcss-reporter/hooks","issue_events_url":"https://api.github.com/repos/postcss/postcss-reporter/issues/events{/number}","events_url":"https://api.github.com/repos/postcss/postcss-reporter/events","assignees_url":"https://api.github.com/repos/postcss/postcss-reporter/assignees{/user}","branches_url":"https://api.github.com/repos/postcss/postcss-reporter/branches{/branch}","tags_url":"https://api.github.com/repos/postcss/postcss-reporter/tags","blobs_url":"https://api.github.com/repos/postcss/postcss-reporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/postcss/postcss-reporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/postcss/postcss-reporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/postcss/postcss-reporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/postcss/postcss-reporter/statuses/{sha}","languages_url":"https://api.github.com/repos/postcss/postcss-reporter/languages","stargazers_url":"https://api.github.com/repos/postcss/postcss-reporter/stargazers","contributors_url":"https://api.github.com/repos/postcss/postcss-reporter/contributors","subscribers_url":"https://api.github.com/repos/postcss/postcss-reporter/subscribers","subscription_url":"https://api.github.com/repos/postcss/postcss-reporter/subscription","commits_url":"https://api.github.com/repos/postcss/postcss-reporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/postcss/postcss-reporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/postcss/postcss-reporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/postcss/postcss-reporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/postcss/postcss-reporter/contents/{+path}","compare_url":"https://api.github.com/repos/postcss/postcss-reporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/postcss/postcss-reporter/merges","archive_url":"https://api.github.com/repos/postcss/postcss-reporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/postcss/postcss-reporter/downloads","issues_url":"https://api.github.com/repos/postcss/postcss-reporter/issues{/number}","pulls_url":"https://api.github.com/repos/postcss/postcss-reporter/pulls{/number}","milestones_url":"https://api.github.com/repos/postcss/postcss-reporter/milestones{/number}","notifications_url":"https://api.github.com/repos/postcss/postcss-reporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/postcss/postcss-reporter/labels{/name}","releases_url":"https://api.github.com/repos/postcss/postcss-reporter/releases{/id}","created_at":"2015-06-08T01:52:53Z","updated_at":"2015-06-10T13:22:49Z","pushed_at":"2015-06-20T15:26:34Z","git_url":"git://github.com/postcss/postcss-reporter.git","ssh_url":"git@github.com:postcss/postcss-reporter.git","clone_url":"https://github.com/postcss/postcss-reporter.git","svn_url":"https://github.com/postcss/postcss-reporter","homepage":null,"size":160,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/postcss/postcss-reporter/pulls/2"},"html":{"href":"https://github.com/postcss/postcss-reporter/pull/2"},"issue":{"href":"https://api.github.com/repos/postcss/postcss-reporter/issues/2"},"comments":{"href":"https://api.github.com/repos/postcss/postcss-reporter/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/postcss/postcss-reporter/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/postcss/postcss-reporter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/postcss/postcss-reporter/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/postcss/postcss-reporter/statuses/7b2f3321a38923c16c4e72ddd40c7684e7d86b1a"}}}}