{"action":"created","comment":{"url":"https://api.github.com/repos/mdn/discord/pulls/comments/33729514","id":33729514,"diff_hunk":"@@ -0,0 +1,68 @@\n+'use strict';\n+\n+var doiuse = require('doiuse');\n+var github = require('octonode');\n+var postcss = require('postcss');\n+var sourceMap = require('source-map');\n+var stylus = require('stylus');\n+var logger = require('./logger');\n+\n+function processCSS(originRepo, originBranch, file, config, handleIncompatibility) {\n+    var repoClient = github.client().repo(originRepo);\n+\n+    repoClient.contents(file.filename, originBranch, function(error, fileContentsMetadata) {\n+        var fileContents;\n+\n+        if (error) return logger.error('Error reading CSS file contents:', error);\n+\n+        fileContents = new Buffer(fileContentsMetadata.content, 'base64').toString();\n+\n+        postcss(doiuse({\n+            browsers: config,\n+            onFeatureUsage: handleIncompatibility\n+        })).process(fileContents, {\n+            from: '/' + file.filename\n+        }).then(function(response) {});","path":"processor.js","position":25,"original_position":25,"commit_id":"acee844bdb2f519161f929d498fcd9880b335e8b","original_commit_id":"acee844bdb2f519161f929d498fcd9880b335e8b","user":{"login":"darkwing","id":46655,"avatar_url":"https://avatars.githubusercontent.com/u/46655?v=3","gravatar_id":"","url":"https://api.github.com/users/darkwing","html_url":"https://github.com/darkwing","followers_url":"https://api.github.com/users/darkwing/followers","following_url":"https://api.github.com/users/darkwing/following{/other_user}","gists_url":"https://api.github.com/users/darkwing/gists{/gist_id}","starred_url":"https://api.github.com/users/darkwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkwing/subscriptions","organizations_url":"https://api.github.com/users/darkwing/orgs","repos_url":"https://api.github.com/users/darkwing/repos","events_url":"https://api.github.com/users/darkwing/events{/privacy}","received_events_url":"https://api.github.com/users/darkwing/received_events","type":"User","site_admin":false},"body":"...whaaaaa","created_at":"2015-07-01T22:00:08Z","updated_at":"2015-07-01T22:00:08Z","html_url":"https://github.com/mdn/discord/pull/86#discussion_r33729514","pull_request_url":"https://api.github.com/repos/mdn/discord/pulls/86","_links":{"self":{"href":"https://api.github.com/repos/mdn/discord/pulls/comments/33729514"},"html":{"href":"https://github.com/mdn/discord/pull/86#discussion_r33729514"},"pull_request":{"href":"https://api.github.com/repos/mdn/discord/pulls/86"}}},"pull_request":{"url":"https://api.github.com/repos/mdn/discord/pulls/86","id":39026839,"html_url":"https://github.com/mdn/discord/pull/86","diff_url":"https://github.com/mdn/discord/pull/86.diff","patch_url":"https://github.com/mdn/discord/pull/86.patch","issue_url":"https://api.github.com/repos/mdn/discord/issues/86","number":86,"state":"open","locked":false,"title":"Miscellaneous refactoring","user":{"login":"openjck","id":933396,"avatar_url":"https://avatars.githubusercontent.com/u/933396?v=3","gravatar_id":"","url":"https://api.github.com/users/openjck","html_url":"https://github.com/openjck","followers_url":"https://api.github.com/users/openjck/followers","following_url":"https://api.github.com/users/openjck/following{/other_user}","gists_url":"https://api.github.com/users/openjck/gists{/gist_id}","starred_url":"https://api.github.com/users/openjck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openjck/subscriptions","organizations_url":"https://api.github.com/users/openjck/orgs","repos_url":"https://api.github.com/users/openjck/repos","events_url":"https://api.github.com/users/openjck/events{/privacy}","received_events_url":"https://api.github.com/users/openjck/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-01T21:24:21Z","updated_at":"2015-07-01T22:00:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2331ce8a858ac646c9f13ff22dc690cd4b56a50e","assignee":{"login":"darkwing","id":46655,"avatar_url":"https://avatars.githubusercontent.com/u/46655?v=3","gravatar_id":"","url":"https://api.github.com/users/darkwing","html_url":"https://github.com/darkwing","followers_url":"https://api.github.com/users/darkwing/followers","following_url":"https://api.github.com/users/darkwing/following{/other_user}","gists_url":"https://api.github.com/users/darkwing/gists{/gist_id}","starred_url":"https://api.github.com/users/darkwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkwing/subscriptions","organizations_url":"https://api.github.com/users/darkwing/orgs","repos_url":"https://api.github.com/users/darkwing/repos","events_url":"https://api.github.com/users/darkwing/events{/privacy}","received_events_url":"https://api.github.com/users/darkwing/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mdn/discord/pulls/86/commits","review_comments_url":"https://api.github.com/repos/mdn/discord/pulls/86/comments","review_comment_url":"https://api.github.com/repos/mdn/discord/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mdn/discord/issues/86/comments","statuses_url":"https://api.github.com/repos/mdn/discord/statuses/acee844bdb2f519161f929d498fcd9880b335e8b","head":{"label":"openjck:misc-refactoring-2","ref":"misc-refactoring-2","sha":"acee844bdb2f519161f929d498fcd9880b335e8b","user":{"login":"openjck","id":933396,"avatar_url":"https://avatars.githubusercontent.com/u/933396?v=3","gravatar_id":"","url":"https://api.github.com/users/openjck","html_url":"https://github.com/openjck","followers_url":"https://api.github.com/users/openjck/followers","following_url":"https://api.github.com/users/openjck/following{/other_user}","gists_url":"https://api.github.com/users/openjck/gists{/gist_id}","starred_url":"https://api.github.com/users/openjck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openjck/subscriptions","organizations_url":"https://api.github.com/users/openjck/orgs","repos_url":"https://api.github.com/users/openjck/repos","events_url":"https://api.github.com/users/openjck/events{/privacy}","received_events_url":"https://api.github.com/users/openjck/received_events","type":"User","site_admin":false},"repo":{"id":35890362,"name":"discord","full_name":"openjck/discord","owner":{"login":"openjck","id":933396,"avatar_url":"https://avatars.githubusercontent.com/u/933396?v=3","gravatar_id":"","url":"https://api.github.com/users/openjck","html_url":"https://github.com/openjck","followers_url":"https://api.github.com/users/openjck/followers","following_url":"https://api.github.com/users/openjck/following{/other_user}","gists_url":"https://api.github.com/users/openjck/gists{/gist_id}","starred_url":"https://api.github.com/users/openjck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openjck/subscriptions","organizations_url":"https://api.github.com/users/openjck/orgs","repos_url":"https://api.github.com/users/openjck/repos","events_url":"https://api.github.com/users/openjck/events{/privacy}","received_events_url":"https://api.github.com/users/openjck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/openjck/discord","description":"GitHub webhook for catching browser compatibility issues.","fork":true,"url":"https://api.github.com/repos/openjck/discord","forks_url":"https://api.github.com/repos/openjck/discord/forks","keys_url":"https://api.github.com/repos/openjck/discord/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openjck/discord/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openjck/discord/teams","hooks_url":"https://api.github.com/repos/openjck/discord/hooks","issue_events_url":"https://api.github.com/repos/openjck/discord/issues/events{/number}","events_url":"https://api.github.com/repos/openjck/discord/events","assignees_url":"https://api.github.com/repos/openjck/discord/assignees{/user}","branches_url":"https://api.github.com/repos/openjck/discord/branches{/branch}","tags_url":"https://api.github.com/repos/openjck/discord/tags","blobs_url":"https://api.github.com/repos/openjck/discord/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openjck/discord/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openjck/discord/git/refs{/sha}","trees_url":"https://api.github.com/repos/openjck/discord/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openjck/discord/statuses/{sha}","languages_url":"https://api.github.com/repos/openjck/discord/languages","stargazers_url":"https://api.github.com/repos/openjck/discord/stargazers","contributors_url":"https://api.github.com/repos/openjck/discord/contributors","subscribers_url":"https://api.github.com/repos/openjck/discord/subscribers","subscription_url":"https://api.github.com/repos/openjck/discord/subscription","commits_url":"https://api.github.com/repos/openjck/discord/commits{/sha}","git_commits_url":"https://api.github.com/repos/openjck/discord/git/commits{/sha}","comments_url":"https://api.github.com/repos/openjck/discord/comments{/number}","issue_comment_url":"https://api.github.com/repos/openjck/discord/issues/comments{/number}","contents_url":"https://api.github.com/repos/openjck/discord/contents/{+path}","compare_url":"https://api.github.com/repos/openjck/discord/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openjck/discord/merges","archive_url":"https://api.github.com/repos/openjck/discord/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openjck/discord/downloads","issues_url":"https://api.github.com/repos/openjck/discord/issues{/number}","pulls_url":"https://api.github.com/repos/openjck/discord/pulls{/number}","milestones_url":"https://api.github.com/repos/openjck/discord/milestones{/number}","notifications_url":"https://api.github.com/repos/openjck/discord/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openjck/discord/labels{/name}","releases_url":"https://api.github.com/repos/openjck/discord/releases{/id}","created_at":"2015-05-19T15:18:19Z","updated_at":"2015-06-22T21:01:09Z","pushed_at":"2015-07-01T21:28:17Z","git_url":"git://github.com/openjck/discord.git","ssh_url":"git@github.com:openjck/discord.git","clone_url":"https://github.com/openjck/discord.git","svn_url":"https://github.com/openjck/discord","homepage":null,"size":323,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"mdn:master","ref":"master","sha":"81e6eb016ee716918c1249d5d6684ff20f3366b0","user":{"login":"mdn","id":7565578,"avatar_url":"https://avatars.githubusercontent.com/u/7565578?v=3","gravatar_id":"","url":"https://api.github.com/users/mdn","html_url":"https://github.com/mdn","followers_url":"https://api.github.com/users/mdn/followers","following_url":"https://api.github.com/users/mdn/following{/other_user}","gists_url":"https://api.github.com/users/mdn/gists{/gist_id}","starred_url":"https://api.github.com/users/mdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdn/subscriptions","organizations_url":"https://api.github.com/users/mdn/orgs","repos_url":"https://api.github.com/users/mdn/repos","events_url":"https://api.github.com/users/mdn/events{/privacy}","received_events_url":"https://api.github.com/users/mdn/received_events","type":"Organization","site_admin":false},"repo":{"id":35843555,"name":"discord","full_name":"mdn/discord","owner":{"login":"mdn","id":7565578,"avatar_url":"https://avatars.githubusercontent.com/u/7565578?v=3","gravatar_id":"","url":"https://api.github.com/users/mdn","html_url":"https://github.com/mdn","followers_url":"https://api.github.com/users/mdn/followers","following_url":"https://api.github.com/users/mdn/following{/other_user}","gists_url":"https://api.github.com/users/mdn/gists{/gist_id}","starred_url":"https://api.github.com/users/mdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdn/subscriptions","organizations_url":"https://api.github.com/users/mdn/orgs","repos_url":"https://api.github.com/users/mdn/repos","events_url":"https://api.github.com/users/mdn/events{/privacy}","received_events_url":"https://api.github.com/users/mdn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mdn/discord","description":"GitHub webhook for catching browser compatibility issues","fork":false,"url":"https://api.github.com/repos/mdn/discord","forks_url":"https://api.github.com/repos/mdn/discord/forks","keys_url":"https://api.github.com/repos/mdn/discord/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdn/discord/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdn/discord/teams","hooks_url":"https://api.github.com/repos/mdn/discord/hooks","issue_events_url":"https://api.github.com/repos/mdn/discord/issues/events{/number}","events_url":"https://api.github.com/repos/mdn/discord/events","assignees_url":"https://api.github.com/repos/mdn/discord/assignees{/user}","branches_url":"https://api.github.com/repos/mdn/discord/branches{/branch}","tags_url":"https://api.github.com/repos/mdn/discord/tags","blobs_url":"https://api.github.com/repos/mdn/discord/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdn/discord/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdn/discord/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdn/discord/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdn/discord/statuses/{sha}","languages_url":"https://api.github.com/repos/mdn/discord/languages","stargazers_url":"https://api.github.com/repos/mdn/discord/stargazers","contributors_url":"https://api.github.com/repos/mdn/discord/contributors","subscribers_url":"https://api.github.com/repos/mdn/discord/subscribers","subscription_url":"https://api.github.com/repos/mdn/discord/subscription","commits_url":"https://api.github.com/repos/mdn/discord/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdn/discord/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdn/discord/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdn/discord/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdn/discord/contents/{+path}","compare_url":"https://api.github.com/repos/mdn/discord/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdn/discord/merges","archive_url":"https://api.github.com/repos/mdn/discord/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdn/discord/downloads","issues_url":"https://api.github.com/repos/mdn/discord/issues{/number}","pulls_url":"https://api.github.com/repos/mdn/discord/pulls{/number}","milestones_url":"https://api.github.com/repos/mdn/discord/milestones{/number}","notifications_url":"https://api.github.com/repos/mdn/discord/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdn/discord/labels{/name}","releases_url":"https://api.github.com/repos/mdn/discord/releases{/id}","created_at":"2015-05-18T21:28:04Z","updated_at":"2015-06-29T22:32:20Z","pushed_at":"2015-07-01T21:28:18Z","git_url":"git://github.com/mdn/discord.git","ssh_url":"git@github.com:mdn/discord.git","clone_url":"https://github.com/mdn/discord.git","svn_url":"https://github.com/mdn/discord","homepage":"http://mdn-discord.herokuapp.com/","size":527,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":18,"forks":5,"open_issues":18,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mdn/discord/pulls/86"},"html":{"href":"https://github.com/mdn/discord/pull/86"},"issue":{"href":"https://api.github.com/repos/mdn/discord/issues/86"},"comments":{"href":"https://api.github.com/repos/mdn/discord/issues/86/comments"},"review_comments":{"href":"https://api.github.com/repos/mdn/discord/pulls/86/comments"},"review_comment":{"href":"https://api.github.com/repos/mdn/discord/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mdn/discord/pulls/86/commits"},"statuses":{"href":"https://api.github.com/repos/mdn/discord/statuses/acee844bdb2f519161f929d498fcd9880b335e8b"}}}}