{"action":"created","comment":{"url":"https://api.github.com/repos/AtomLinter/atom-linter/pulls/comments/33057895","id":33057895,"diff_hunk":"@@ -0,0 +1,91 @@\n+ChildProcess = require 'child_process'\n+Path = require 'path'\n+FS = require 'fs'\n+{XRegExp} = require 'xregexp'\n+\n+class Helpers\n+  @findFile: (directory, fileName) ->\n+    climb = directory.split(Path.sep)\n+    while climb.length\n+      target = Path.join(climb.join(Path.sep), fileName)\n+      if FS.existsSync(target)\n+        return target\n+      climb.pop()\n+  @exec: (command, cwd, stdin) ->","path":"lib/helper.coffee","position":14,"original_position":14,"commit_id":"b9d9040756bd085b7ffeeb354ed87e54170bd46f","original_commit_id":"b9d9040756bd085b7ffeeb354ed87e54170bd46f","user":{"login":"AsaAyers","id":324999,"avatar_url":"https://avatars.githubusercontent.com/u/324999?v=3","gravatar_id":"","url":"https://api.github.com/users/AsaAyers","html_url":"https://github.com/AsaAyers","followers_url":"https://api.github.com/users/AsaAyers/followers","following_url":"https://api.github.com/users/AsaAyers/following{/other_user}","gists_url":"https://api.github.com/users/AsaAyers/gists{/gist_id}","starred_url":"https://api.github.com/users/AsaAyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsaAyers/subscriptions","organizations_url":"https://api.github.com/users/AsaAyers/orgs","repos_url":"https://api.github.com/users/AsaAyers/repos","events_url":"https://api.github.com/users/AsaAyers/events{/privacy}","received_events_url":"https://api.github.com/users/AsaAyers/received_events","type":"User","site_admin":false},"body":"We should have command and arguments so that we don't run into problems where paths with spaces break arguments into pieces","created_at":"2015-06-23T15:58:55Z","updated_at":"2015-06-23T15:58:55Z","html_url":"https://github.com/AtomLinter/atom-linter/pull/1#discussion_r33057895","pull_request_url":"https://api.github.com/repos/AtomLinter/atom-linter/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/AtomLinter/atom-linter/pulls/comments/33057895"},"html":{"href":"https://github.com/AtomLinter/atom-linter/pull/1#discussion_r33057895"},"pull_request":{"href":"https://api.github.com/repos/AtomLinter/atom-linter/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/AtomLinter/atom-linter/pulls/1","id":38277423,"html_url":"https://github.com/AtomLinter/atom-linter/pull/1","diff_url":"https://github.com/AtomLinter/atom-linter/pull/1.diff","patch_url":"https://github.com/AtomLinter/atom-linter/pull/1.patch","issue_url":"https://api.github.com/repos/AtomLinter/atom-linter/issues/1","number":1,"state":"open","locked":false,"title":"Initial Version","user":{"login":"steelbrain","id":4278113,"avatar_url":"https://avatars.githubusercontent.com/u/4278113?v=3","gravatar_id":"","url":"https://api.github.com/users/steelbrain","html_url":"https://github.com/steelbrain","followers_url":"https://api.github.com/users/steelbrain/followers","following_url":"https://api.github.com/users/steelbrain/following{/other_user}","gists_url":"https://api.github.com/users/steelbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/steelbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steelbrain/subscriptions","organizations_url":"https://api.github.com/users/steelbrain/orgs","repos_url":"https://api.github.com/users/steelbrain/repos","events_url":"https://api.github.com/users/steelbrain/events{/privacy}","received_events_url":"https://api.github.com/users/steelbrain/received_events","type":"User","site_admin":false},"body":"Demo: https://gist.github.com/steelbrain/8b5e6be173a26810cd1b","created_at":"2015-06-22T21:16:11Z","updated_at":"2015-06-23T15:58:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86574207b4a78fac34be19fdbf789ada8aa27c84","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AtomLinter/atom-linter/pulls/1/commits","review_comments_url":"https://api.github.com/repos/AtomLinter/atom-linter/pulls/1/comments","review_comment_url":"https://api.github.com/repos/AtomLinter/atom-linter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AtomLinter/atom-linter/issues/1/comments","statuses_url":"https://api.github.com/repos/AtomLinter/atom-linter/statuses/b9d9040756bd085b7ffeeb354ed87e54170bd46f","head":{"label":"AtomLinter:steelbrain/stuff","ref":"steelbrain/stuff","sha":"b9d9040756bd085b7ffeeb354ed87e54170bd46f","user":{"login":"AtomLinter","id":7242824,"avatar_url":"https://avatars.githubusercontent.com/u/7242824?v=3","gravatar_id":"","url":"https://api.github.com/users/AtomLinter","html_url":"https://github.com/AtomLinter","followers_url":"https://api.github.com/users/AtomLinter/followers","following_url":"https://api.github.com/users/AtomLinter/following{/other_user}","gists_url":"https://api.github.com/users/AtomLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/AtomLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtomLinter/subscriptions","organizations_url":"https://api.github.com/users/AtomLinter/orgs","repos_url":"https://api.github.com/users/AtomLinter/repos","events_url":"https://api.github.com/users/AtomLinter/events{/privacy}","received_events_url":"https://api.github.com/users/AtomLinter/received_events","type":"Organization","site_admin":false},"repo":{"id":36517670,"name":"atom-linter","full_name":"AtomLinter/atom-linter","owner":{"login":"AtomLinter","id":7242824,"avatar_url":"https://avatars.githubusercontent.com/u/7242824?v=3","gravatar_id":"","url":"https://api.github.com/users/AtomLinter","html_url":"https://github.com/AtomLinter","followers_url":"https://api.github.com/users/AtomLinter/followers","following_url":"https://api.github.com/users/AtomLinter/following{/other_user}","gists_url":"https://api.github.com/users/AtomLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/AtomLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtomLinter/subscriptions","organizations_url":"https://api.github.com/users/AtomLinter/orgs","repos_url":"https://api.github.com/users/AtomLinter/repos","events_url":"https://api.github.com/users/AtomLinter/events{/privacy}","received_events_url":"https://api.github.com/users/AtomLinter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AtomLinter/atom-linter","description":"","fork":false,"url":"https://api.github.com/repos/AtomLinter/atom-linter","forks_url":"https://api.github.com/repos/AtomLinter/atom-linter/forks","keys_url":"https://api.github.com/repos/AtomLinter/atom-linter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AtomLinter/atom-linter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AtomLinter/atom-linter/teams","hooks_url":"https://api.github.com/repos/AtomLinter/atom-linter/hooks","issue_events_url":"https://api.github.com/repos/AtomLinter/atom-linter/issues/events{/number}","events_url":"https://api.github.com/repos/AtomLinter/atom-linter/events","assignees_url":"https://api.github.com/repos/AtomLinter/atom-linter/assignees{/user}","branches_url":"https://api.github.com/repos/AtomLinter/atom-linter/branches{/branch}","tags_url":"https://api.github.com/repos/AtomLinter/atom-linter/tags","blobs_url":"https://api.github.com/repos/AtomLinter/atom-linter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AtomLinter/atom-linter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AtomLinter/atom-linter/git/refs{/sha}","trees_url":"https://api.github.com/repos/AtomLinter/atom-linter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AtomLinter/atom-linter/statuses/{sha}","languages_url":"https://api.github.com/repos/AtomLinter/atom-linter/languages","stargazers_url":"https://api.github.com/repos/AtomLinter/atom-linter/stargazers","contributors_url":"https://api.github.com/repos/AtomLinter/atom-linter/contributors","subscribers_url":"https://api.github.com/repos/AtomLinter/atom-linter/subscribers","subscription_url":"https://api.github.com/repos/AtomLinter/atom-linter/subscription","commits_url":"https://api.github.com/repos/AtomLinter/atom-linter/commits{/sha}","git_commits_url":"https://api.github.com/repos/AtomLinter/atom-linter/git/commits{/sha}","comments_url":"https://api.github.com/repos/AtomLinter/atom-linter/comments{/number}","issue_comment_url":"https://api.github.com/repos/AtomLinter/atom-linter/issues/comments{/number}","contents_url":"https://api.github.com/repos/AtomLinter/atom-linter/contents/{+path}","compare_url":"https://api.github.com/repos/AtomLinter/atom-linter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AtomLinter/atom-linter/merges","archive_url":"https://api.github.com/repos/AtomLinter/atom-linter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AtomLinter/atom-linter/downloads","issues_url":"https://api.github.com/repos/AtomLinter/atom-linter/issues{/number}","pulls_url":"https://api.github.com/repos/AtomLinter/atom-linter/pulls{/number}","milestones_url":"https://api.github.com/repos/AtomLinter/atom-linter/milestones{/number}","notifications_url":"https://api.github.com/repos/AtomLinter/atom-linter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AtomLinter/atom-linter/labels{/name}","releases_url":"https://api.github.com/repos/AtomLinter/atom-linter/releases{/id}","created_at":"2015-05-29T17:02:53Z","updated_at":"2015-05-29T18:10:46Z","pushed_at":"2015-06-22T21:16:11Z","git_url":"git://github.com/AtomLinter/atom-linter.git","ssh_url":"git@github.com:AtomLinter/atom-linter.git","clone_url":"https://github.com/AtomLinter/atom-linter.git","svn_url":"https://github.com/AtomLinter/atom-linter","homepage":null,"size":103,"stargazers_count":1,"watchers_count":1,"language":null,"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":"AtomLinter:master","ref":"master","sha":"b722635ef3c559bfd82b941a83a61d2a51e1a540","user":{"login":"AtomLinter","id":7242824,"avatar_url":"https://avatars.githubusercontent.com/u/7242824?v=3","gravatar_id":"","url":"https://api.github.com/users/AtomLinter","html_url":"https://github.com/AtomLinter","followers_url":"https://api.github.com/users/AtomLinter/followers","following_url":"https://api.github.com/users/AtomLinter/following{/other_user}","gists_url":"https://api.github.com/users/AtomLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/AtomLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtomLinter/subscriptions","organizations_url":"https://api.github.com/users/AtomLinter/orgs","repos_url":"https://api.github.com/users/AtomLinter/repos","events_url":"https://api.github.com/users/AtomLinter/events{/privacy}","received_events_url":"https://api.github.com/users/AtomLinter/received_events","type":"Organization","site_admin":false},"repo":{"id":36517670,"name":"atom-linter","full_name":"AtomLinter/atom-linter","owner":{"login":"AtomLinter","id":7242824,"avatar_url":"https://avatars.githubusercontent.com/u/7242824?v=3","gravatar_id":"","url":"https://api.github.com/users/AtomLinter","html_url":"https://github.com/AtomLinter","followers_url":"https://api.github.com/users/AtomLinter/followers","following_url":"https://api.github.com/users/AtomLinter/following{/other_user}","gists_url":"https://api.github.com/users/AtomLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/AtomLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtomLinter/subscriptions","organizations_url":"https://api.github.com/users/AtomLinter/orgs","repos_url":"https://api.github.com/users/AtomLinter/repos","events_url":"https://api.github.com/users/AtomLinter/events{/privacy}","received_events_url":"https://api.github.com/users/AtomLinter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AtomLinter/atom-linter","description":"","fork":false,"url":"https://api.github.com/repos/AtomLinter/atom-linter","forks_url":"https://api.github.com/repos/AtomLinter/atom-linter/forks","keys_url":"https://api.github.com/repos/AtomLinter/atom-linter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AtomLinter/atom-linter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AtomLinter/atom-linter/teams","hooks_url":"https://api.github.com/repos/AtomLinter/atom-linter/hooks","issue_events_url":"https://api.github.com/repos/AtomLinter/atom-linter/issues/events{/number}","events_url":"https://api.github.com/repos/AtomLinter/atom-linter/events","assignees_url":"https://api.github.com/repos/AtomLinter/atom-linter/assignees{/user}","branches_url":"https://api.github.com/repos/AtomLinter/atom-linter/branches{/branch}","tags_url":"https://api.github.com/repos/AtomLinter/atom-linter/tags","blobs_url":"https://api.github.com/repos/AtomLinter/atom-linter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AtomLinter/atom-linter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AtomLinter/atom-linter/git/refs{/sha}","trees_url":"https://api.github.com/repos/AtomLinter/atom-linter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AtomLinter/atom-linter/statuses/{sha}","languages_url":"https://api.github.com/repos/AtomLinter/atom-linter/languages","stargazers_url":"https://api.github.com/repos/AtomLinter/atom-linter/stargazers","contributors_url":"https://api.github.com/repos/AtomLinter/atom-linter/contributors","subscribers_url":"https://api.github.com/repos/AtomLinter/atom-linter/subscribers","subscription_url":"https://api.github.com/repos/AtomLinter/atom-linter/subscription","commits_url":"https://api.github.com/repos/AtomLinter/atom-linter/commits{/sha}","git_commits_url":"https://api.github.com/repos/AtomLinter/atom-linter/git/commits{/sha}","comments_url":"https://api.github.com/repos/AtomLinter/atom-linter/comments{/number}","issue_comment_url":"https://api.github.com/repos/AtomLinter/atom-linter/issues/comments{/number}","contents_url":"https://api.github.com/repos/AtomLinter/atom-linter/contents/{+path}","compare_url":"https://api.github.com/repos/AtomLinter/atom-linter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AtomLinter/atom-linter/merges","archive_url":"https://api.github.com/repos/AtomLinter/atom-linter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AtomLinter/atom-linter/downloads","issues_url":"https://api.github.com/repos/AtomLinter/atom-linter/issues{/number}","pulls_url":"https://api.github.com/repos/AtomLinter/atom-linter/pulls{/number}","milestones_url":"https://api.github.com/repos/AtomLinter/atom-linter/milestones{/number}","notifications_url":"https://api.github.com/repos/AtomLinter/atom-linter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AtomLinter/atom-linter/labels{/name}","releases_url":"https://api.github.com/repos/AtomLinter/atom-linter/releases{/id}","created_at":"2015-05-29T17:02:53Z","updated_at":"2015-05-29T18:10:46Z","pushed_at":"2015-06-22T21:16:11Z","git_url":"git://github.com/AtomLinter/atom-linter.git","ssh_url":"git@github.com:AtomLinter/atom-linter.git","clone_url":"https://github.com/AtomLinter/atom-linter.git","svn_url":"https://github.com/AtomLinter/atom-linter","homepage":null,"size":103,"stargazers_count":1,"watchers_count":1,"language":null,"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/AtomLinter/atom-linter/pulls/1"},"html":{"href":"https://github.com/AtomLinter/atom-linter/pull/1"},"issue":{"href":"https://api.github.com/repos/AtomLinter/atom-linter/issues/1"},"comments":{"href":"https://api.github.com/repos/AtomLinter/atom-linter/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/AtomLinter/atom-linter/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/AtomLinter/atom-linter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AtomLinter/atom-linter/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/AtomLinter/atom-linter/statuses/b9d9040756bd085b7ffeeb354ed87e54170bd46f"}}}}