{"action":"created","comment":{"url":"https://api.github.com/repos/Originate/tertestrial-server/pulls/comments/76482448","id":76482448,"diff_hunk":"@@ -0,0 +1,29 @@\n+require! {\n+  'child_process' : {exec-sync}\n+}\n+\n+\n+function get-process-cwd process-id\n+  exec-sync \"lsof -p #{process-id} -d cwd -a -Fn\", encoding: 'utf8'\n+    .split('\\n')[1]\n+    .slice 1\n+\n+\n+function get-tertestrial-process-ids\n+  exec-sync 'ps -o command,pid', encoding: 'utf8'\n+    .split '\\n'\n+    .slice 1\n+    .map (.split /\\s+(?=\\S*$)/)\n+    .map ([command, pid]) -> {command, pid}\n+    .filter (.command is 'tertestrial')\n+    .map (.pid)\n+\n+\n+module.exports = function is-duplicate\n+  my-pid = process.pid.toString!\n+  my-cwd = process.cwd!\n+  get-tertestrial-process-ids!\n+    .filter (pid) -> pid isnt my-pid\n+    .map get-process-cwd\n+    .filter (cwd) -> cwd is my-cwd","path":"src/helpers/is-duplicate-checker.ls","position":null,"original_position":28,"commit_id":"6668c39f556270842ddf7a038f79b7fed4390464","original_commit_id":"3b1e3bbcd8104d2da62af01fd9c10e755bca3718","user":{"login":"charlierudolph","id":1676758,"avatar_url":"https://avatars.githubusercontent.com/u/1676758?v=3","gravatar_id":"","url":"https://api.github.com/users/charlierudolph","html_url":"https://github.com/charlierudolph","followers_url":"https://api.github.com/users/charlierudolph/followers","following_url":"https://api.github.com/users/charlierudolph/following{/other_user}","gists_url":"https://api.github.com/users/charlierudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/charlierudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlierudolph/subscriptions","organizations_url":"https://api.github.com/users/charlierudolph/orgs","repos_url":"https://api.github.com/users/charlierudolph/repos","events_url":"https://api.github.com/users/charlierudolph/events{/privacy}","received_events_url":"https://api.github.com/users/charlierudolph/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2016-08-26T20:24:45Z","updated_at":"2016-08-26T20:24:45Z","html_url":"https://github.com/Originate/tertestrial-server/pull/38#discussion_r76482448","pull_request_url":"https://api.github.com/repos/Originate/tertestrial-server/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/Originate/tertestrial-server/pulls/comments/76482448"},"html":{"href":"https://github.com/Originate/tertestrial-server/pull/38#discussion_r76482448"},"pull_request":{"href":"https://api.github.com/repos/Originate/tertestrial-server/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/Originate/tertestrial-server/pulls/38","id":82836483,"html_url":"https://github.com/Originate/tertestrial-server/pull/38","diff_url":"https://github.com/Originate/tertestrial-server/pull/38.diff","patch_url":"https://github.com/Originate/tertestrial-server/pull/38.patch","issue_url":"https://api.github.com/repos/Originate/tertestrial-server/issues/38","number":38,"state":"open","locked":false,"title":"abort on duplicate process","user":{"login":"charlierudolph","id":1676758,"avatar_url":"https://avatars.githubusercontent.com/u/1676758?v=3","gravatar_id":"","url":"https://api.github.com/users/charlierudolph","html_url":"https://github.com/charlierudolph","followers_url":"https://api.github.com/users/charlierudolph/followers","following_url":"https://api.github.com/users/charlierudolph/following{/other_user}","gists_url":"https://api.github.com/users/charlierudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/charlierudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlierudolph/subscriptions","organizations_url":"https://api.github.com/users/charlierudolph/orgs","repos_url":"https://api.github.com/users/charlierudolph/repos","events_url":"https://api.github.com/users/charlierudolph/events{/privacy}","received_events_url":"https://api.github.com/users/charlierudolph/received_events","type":"User","site_admin":false},"body":"@kevgo \r\n\r\nresolves #35","created_at":"2016-08-26T06:10:11Z","updated_at":"2016-08-26T20:24:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a44677e526dc170a08312afbf289d13b6eecec04","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Originate/tertestrial-server/pulls/38/commits","review_comments_url":"https://api.github.com/repos/Originate/tertestrial-server/pulls/38/comments","review_comment_url":"https://api.github.com/repos/Originate/tertestrial-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Originate/tertestrial-server/issues/38/comments","statuses_url":"https://api.github.com/repos/Originate/tertestrial-server/statuses/6668c39f556270842ddf7a038f79b7fed4390464","head":{"label":"Originate:cr-background","ref":"cr-background","sha":"6668c39f556270842ddf7a038f79b7fed4390464","user":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"repo":{"id":58867051,"name":"tertestrial-server","full_name":"Originate/tertestrial-server","owner":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Originate/tertestrial-server","description":"Server component for the Tertestrial system","fork":false,"url":"https://api.github.com/repos/Originate/tertestrial-server","forks_url":"https://api.github.com/repos/Originate/tertestrial-server/forks","keys_url":"https://api.github.com/repos/Originate/tertestrial-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Originate/tertestrial-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Originate/tertestrial-server/teams","hooks_url":"https://api.github.com/repos/Originate/tertestrial-server/hooks","issue_events_url":"https://api.github.com/repos/Originate/tertestrial-server/issues/events{/number}","events_url":"https://api.github.com/repos/Originate/tertestrial-server/events","assignees_url":"https://api.github.com/repos/Originate/tertestrial-server/assignees{/user}","branches_url":"https://api.github.com/repos/Originate/tertestrial-server/branches{/branch}","tags_url":"https://api.github.com/repos/Originate/tertestrial-server/tags","blobs_url":"https://api.github.com/repos/Originate/tertestrial-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Originate/tertestrial-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Originate/tertestrial-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/Originate/tertestrial-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Originate/tertestrial-server/statuses/{sha}","languages_url":"https://api.github.com/repos/Originate/tertestrial-server/languages","stargazers_url":"https://api.github.com/repos/Originate/tertestrial-server/stargazers","contributors_url":"https://api.github.com/repos/Originate/tertestrial-server/contributors","subscribers_url":"https://api.github.com/repos/Originate/tertestrial-server/subscribers","subscription_url":"https://api.github.com/repos/Originate/tertestrial-server/subscription","commits_url":"https://api.github.com/repos/Originate/tertestrial-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/Originate/tertestrial-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/Originate/tertestrial-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/Originate/tertestrial-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/Originate/tertestrial-server/contents/{+path}","compare_url":"https://api.github.com/repos/Originate/tertestrial-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Originate/tertestrial-server/merges","archive_url":"https://api.github.com/repos/Originate/tertestrial-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Originate/tertestrial-server/downloads","issues_url":"https://api.github.com/repos/Originate/tertestrial-server/issues{/number}","pulls_url":"https://api.github.com/repos/Originate/tertestrial-server/pulls{/number}","milestones_url":"https://api.github.com/repos/Originate/tertestrial-server/milestones{/number}","notifications_url":"https://api.github.com/repos/Originate/tertestrial-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Originate/tertestrial-server/labels{/name}","releases_url":"https://api.github.com/repos/Originate/tertestrial-server/releases{/id}","deployments_url":"https://api.github.com/repos/Originate/tertestrial-server/deployments","created_at":"2016-05-15T14:47:50Z","updated_at":"2016-08-26T04:57:12Z","pushed_at":"2016-08-26T20:24:33Z","git_url":"git://github.com/Originate/tertestrial-server.git","ssh_url":"git@github.com:Originate/tertestrial-server.git","clone_url":"https://github.com/Originate/tertestrial-server.git","svn_url":"https://github.com/Originate/tertestrial-server","homepage":null,"size":595,"stargazers_count":5,"watchers_count":5,"language":"Cucumber","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":5,"default_branch":"master"}},"base":{"label":"Originate:master","ref":"master","sha":"bdd2323d348dc337cd815c2a15e50c6009cab324","user":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"repo":{"id":58867051,"name":"tertestrial-server","full_name":"Originate/tertestrial-server","owner":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Originate/tertestrial-server","description":"Server component for the Tertestrial system","fork":false,"url":"https://api.github.com/repos/Originate/tertestrial-server","forks_url":"https://api.github.com/repos/Originate/tertestrial-server/forks","keys_url":"https://api.github.com/repos/Originate/tertestrial-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Originate/tertestrial-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Originate/tertestrial-server/teams","hooks_url":"https://api.github.com/repos/Originate/tertestrial-server/hooks","issue_events_url":"https://api.github.com/repos/Originate/tertestrial-server/issues/events{/number}","events_url":"https://api.github.com/repos/Originate/tertestrial-server/events","assignees_url":"https://api.github.com/repos/Originate/tertestrial-server/assignees{/user}","branches_url":"https://api.github.com/repos/Originate/tertestrial-server/branches{/branch}","tags_url":"https://api.github.com/repos/Originate/tertestrial-server/tags","blobs_url":"https://api.github.com/repos/Originate/tertestrial-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Originate/tertestrial-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Originate/tertestrial-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/Originate/tertestrial-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Originate/tertestrial-server/statuses/{sha}","languages_url":"https://api.github.com/repos/Originate/tertestrial-server/languages","stargazers_url":"https://api.github.com/repos/Originate/tertestrial-server/stargazers","contributors_url":"https://api.github.com/repos/Originate/tertestrial-server/contributors","subscribers_url":"https://api.github.com/repos/Originate/tertestrial-server/subscribers","subscription_url":"https://api.github.com/repos/Originate/tertestrial-server/subscription","commits_url":"https://api.github.com/repos/Originate/tertestrial-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/Originate/tertestrial-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/Originate/tertestrial-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/Originate/tertestrial-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/Originate/tertestrial-server/contents/{+path}","compare_url":"https://api.github.com/repos/Originate/tertestrial-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Originate/tertestrial-server/merges","archive_url":"https://api.github.com/repos/Originate/tertestrial-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Originate/tertestrial-server/downloads","issues_url":"https://api.github.com/repos/Originate/tertestrial-server/issues{/number}","pulls_url":"https://api.github.com/repos/Originate/tertestrial-server/pulls{/number}","milestones_url":"https://api.github.com/repos/Originate/tertestrial-server/milestones{/number}","notifications_url":"https://api.github.com/repos/Originate/tertestrial-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Originate/tertestrial-server/labels{/name}","releases_url":"https://api.github.com/repos/Originate/tertestrial-server/releases{/id}","deployments_url":"https://api.github.com/repos/Originate/tertestrial-server/deployments","created_at":"2016-05-15T14:47:50Z","updated_at":"2016-08-26T04:57:12Z","pushed_at":"2016-08-26T20:24:33Z","git_url":"git://github.com/Originate/tertestrial-server.git","ssh_url":"git@github.com:Originate/tertestrial-server.git","clone_url":"https://github.com/Originate/tertestrial-server.git","svn_url":"https://github.com/Originate/tertestrial-server","homepage":null,"size":595,"stargazers_count":5,"watchers_count":5,"language":"Cucumber","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Originate/tertestrial-server/pulls/38"},"html":{"href":"https://github.com/Originate/tertestrial-server/pull/38"},"issue":{"href":"https://api.github.com/repos/Originate/tertestrial-server/issues/38"},"comments":{"href":"https://api.github.com/repos/Originate/tertestrial-server/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/Originate/tertestrial-server/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/Originate/tertestrial-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Originate/tertestrial-server/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/Originate/tertestrial-server/statuses/6668c39f556270842ddf7a038f79b7fed4390464"}}}}
{"actor":{"display_login":"charlierudolph"}}