{"action":"created","comment":{"url":"https://api.github.com/repos/tessel/t2-cli/pulls/comments/76884967","id":76884967,"diff_hunk":"@@ -206,6 +206,28 @@ exports['CrashReporter.submit'] = {\n       test.done();\n     });\n   },\n+\n+  forwardsArgv: function(test) {\n+    test.expect(2);\n+\n+    this.crPost.restore();\n+    this.crPost = this.sandbox.stub(CrashReporter, 'post').returns(Promise.resolve());\n+\n+    var original = process.argv[2];\n+\n+    process.argv[2] = 'foo';\n+    CrashReporter.submit(new Error('This happened'), {\n+      silent: true\n+    }).then(() => {\n+      test.equal(this.crPost.callCount, 1);\n+      test.equal(this.crPost.lastCall.args[2], 'foo');\n+      process.argv[2] = original;\n+      test.done();\n+    }).catch(error => {\n+      test.ok(false, error.message);\n+      test.done();\n+    });\n+  },","path":"test/unit/crash-reporter.js","position":25,"original_position":25,"commit_id":"7b4a2b2790e32012e9663a358d78bf27ff076974","original_commit_id":"7b4a2b2790e32012e9663a358d78bf27ff076974","user":{"login":"rwaldron","id":27985,"avatar_url":"https://avatars.githubusercontent.com/u/27985?v=3","gravatar_id":"","url":"https://api.github.com/users/rwaldron","html_url":"https://github.com/rwaldron","followers_url":"https://api.github.com/users/rwaldron/followers","following_url":"https://api.github.com/users/rwaldron/following{/other_user}","gists_url":"https://api.github.com/users/rwaldron/gists{/gist_id}","starred_url":"https://api.github.com/users/rwaldron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwaldron/subscriptions","organizations_url":"https://api.github.com/users/rwaldron/orgs","repos_url":"https://api.github.com/users/rwaldron/repos","events_url":"https://api.github.com/users/rwaldron/events{/privacy}","received_events_url":"https://api.github.com/users/rwaldron/received_events","type":"User","site_admin":false},"body":"@HipsterBrown @johnnyman727 test added. ","created_at":"2016-08-30T21:41:58Z","updated_at":"2016-08-30T21:41:58Z","html_url":"https://github.com/tessel/t2-cli/pull/834#discussion_r76884967","pull_request_url":"https://api.github.com/repos/tessel/t2-cli/pulls/834","_links":{"self":{"href":"https://api.github.com/repos/tessel/t2-cli/pulls/comments/76884967"},"html":{"href":"https://github.com/tessel/t2-cli/pull/834#discussion_r76884967"},"pull_request":{"href":"https://api.github.com/repos/tessel/t2-cli/pulls/834"}}},"pull_request":{"url":"https://api.github.com/repos/tessel/t2-cli/pulls/834","id":82379091,"html_url":"https://github.com/tessel/t2-cli/pull/834","diff_url":"https://github.com/tessel/t2-cli/pull/834.diff","patch_url":"https://github.com/tessel/t2-cli/pull/834.patch","issue_url":"https://api.github.com/repos/tessel/t2-cli/issues/834","number":834,"state":"open","locked":false,"title":"t2 crash-reporter: adds argv (sans first two entries)","user":{"login":"rwaldron","id":27985,"avatar_url":"https://avatars.githubusercontent.com/u/27985?v=3","gravatar_id":"","url":"https://api.github.com/users/rwaldron","html_url":"https://github.com/rwaldron","followers_url":"https://api.github.com/users/rwaldron/followers","following_url":"https://api.github.com/users/rwaldron/following{/other_user}","gists_url":"https://api.github.com/users/rwaldron/gists{/gist_id}","starred_url":"https://api.github.com/users/rwaldron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwaldron/subscriptions","organizations_url":"https://api.github.com/users/rwaldron/orgs","repos_url":"https://api.github.com/users/rwaldron/repos","events_url":"https://api.github.com/users/rwaldron/events{/privacy}","received_events_url":"https://api.github.com/users/rwaldron/received_events","type":"User","site_admin":false},"body":"@tikurahul what do you think about this? There will be a new `argv` property that gets posted to the crash report server. We can try it out for a bit before I write a bunch of tests.\r\n\r\nSigned-off-by: Rick Waldron <waldron.rick@gmail.com>","created_at":"2016-08-23T14:47:34Z","updated_at":"2016-08-30T21:41:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6ec7acf6d41271d1ddd4b73cd5e84b0e7ca824f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tessel/t2-cli/pulls/834/commits","review_comments_url":"https://api.github.com/repos/tessel/t2-cli/pulls/834/comments","review_comment_url":"https://api.github.com/repos/tessel/t2-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tessel/t2-cli/issues/834/comments","statuses_url":"https://api.github.com/repos/tessel/t2-cli/statuses/7b4a2b2790e32012e9663a358d78bf27ff076974","head":{"label":"rwaldron:833","ref":"833","sha":"7b4a2b2790e32012e9663a358d78bf27ff076974","user":{"login":"rwaldron","id":27985,"avatar_url":"https://avatars.githubusercontent.com/u/27985?v=3","gravatar_id":"","url":"https://api.github.com/users/rwaldron","html_url":"https://github.com/rwaldron","followers_url":"https://api.github.com/users/rwaldron/followers","following_url":"https://api.github.com/users/rwaldron/following{/other_user}","gists_url":"https://api.github.com/users/rwaldron/gists{/gist_id}","starred_url":"https://api.github.com/users/rwaldron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwaldron/subscriptions","organizations_url":"https://api.github.com/users/rwaldron/orgs","repos_url":"https://api.github.com/users/rwaldron/repos","events_url":"https://api.github.com/users/rwaldron/events{/privacy}","received_events_url":"https://api.github.com/users/rwaldron/received_events","type":"User","site_admin":false},"repo":{"id":34642706,"name":"t2-cli","full_name":"rwaldron/t2-cli","owner":{"login":"rwaldron","id":27985,"avatar_url":"https://avatars.githubusercontent.com/u/27985?v=3","gravatar_id":"","url":"https://api.github.com/users/rwaldron","html_url":"https://github.com/rwaldron","followers_url":"https://api.github.com/users/rwaldron/followers","following_url":"https://api.github.com/users/rwaldron/following{/other_user}","gists_url":"https://api.github.com/users/rwaldron/gists{/gist_id}","starred_url":"https://api.github.com/users/rwaldron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwaldron/subscriptions","organizations_url":"https://api.github.com/users/rwaldron/orgs","repos_url":"https://api.github.com/users/rwaldron/repos","events_url":"https://api.github.com/users/rwaldron/events{/privacy}","received_events_url":"https://api.github.com/users/rwaldron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rwaldron/t2-cli","description":"Command line interface to Tessel 2.","fork":true,"url":"https://api.github.com/repos/rwaldron/t2-cli","forks_url":"https://api.github.com/repos/rwaldron/t2-cli/forks","keys_url":"https://api.github.com/repos/rwaldron/t2-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rwaldron/t2-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rwaldron/t2-cli/teams","hooks_url":"https://api.github.com/repos/rwaldron/t2-cli/hooks","issue_events_url":"https://api.github.com/repos/rwaldron/t2-cli/issues/events{/number}","events_url":"https://api.github.com/repos/rwaldron/t2-cli/events","assignees_url":"https://api.github.com/repos/rwaldron/t2-cli/assignees{/user}","branches_url":"https://api.github.com/repos/rwaldron/t2-cli/branches{/branch}","tags_url":"https://api.github.com/repos/rwaldron/t2-cli/tags","blobs_url":"https://api.github.com/repos/rwaldron/t2-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rwaldron/t2-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rwaldron/t2-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/rwaldron/t2-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rwaldron/t2-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/rwaldron/t2-cli/languages","stargazers_url":"https://api.github.com/repos/rwaldron/t2-cli/stargazers","contributors_url":"https://api.github.com/repos/rwaldron/t2-cli/contributors","subscribers_url":"https://api.github.com/repos/rwaldron/t2-cli/subscribers","subscription_url":"https://api.github.com/repos/rwaldron/t2-cli/subscription","commits_url":"https://api.github.com/repos/rwaldron/t2-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/rwaldron/t2-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/rwaldron/t2-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/rwaldron/t2-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/rwaldron/t2-cli/contents/{+path}","compare_url":"https://api.github.com/repos/rwaldron/t2-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rwaldron/t2-cli/merges","archive_url":"https://api.github.com/repos/rwaldron/t2-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rwaldron/t2-cli/downloads","issues_url":"https://api.github.com/repos/rwaldron/t2-cli/issues{/number}","pulls_url":"https://api.github.com/repos/rwaldron/t2-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/rwaldron/t2-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/rwaldron/t2-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rwaldron/t2-cli/labels{/name}","releases_url":"https://api.github.com/repos/rwaldron/t2-cli/releases{/id}","deployments_url":"https://api.github.com/repos/rwaldron/t2-cli/deployments","created_at":"2015-04-27T02:53:48Z","updated_at":"2016-06-13T17:47:24Z","pushed_at":"2016-08-30T21:40:58Z","git_url":"git://github.com/rwaldron/t2-cli.git","ssh_url":"git@github.com:rwaldron/t2-cli.git","clone_url":"https://github.com/rwaldron/t2-cli.git","svn_url":"https://github.com/rwaldron/t2-cli","homepage":"","size":1642,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tessel:master","ref":"master","sha":"55c354f4628f486382fc1b6abfd5318a746ac381","user":{"login":"tessel","id":5573563,"avatar_url":"https://avatars.githubusercontent.com/u/5573563?v=3","gravatar_id":"","url":"https://api.github.com/users/tessel","html_url":"https://github.com/tessel","followers_url":"https://api.github.com/users/tessel/followers","following_url":"https://api.github.com/users/tessel/following{/other_user}","gists_url":"https://api.github.com/users/tessel/gists{/gist_id}","starred_url":"https://api.github.com/users/tessel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tessel/subscriptions","organizations_url":"https://api.github.com/users/tessel/orgs","repos_url":"https://api.github.com/users/tessel/repos","events_url":"https://api.github.com/users/tessel/events{/privacy}","received_events_url":"https://api.github.com/users/tessel/received_events","type":"Organization","site_admin":false},"repo":{"id":30388450,"name":"t2-cli","full_name":"tessel/t2-cli","owner":{"login":"tessel","id":5573563,"avatar_url":"https://avatars.githubusercontent.com/u/5573563?v=3","gravatar_id":"","url":"https://api.github.com/users/tessel","html_url":"https://github.com/tessel","followers_url":"https://api.github.com/users/tessel/followers","following_url":"https://api.github.com/users/tessel/following{/other_user}","gists_url":"https://api.github.com/users/tessel/gists{/gist_id}","starred_url":"https://api.github.com/users/tessel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tessel/subscriptions","organizations_url":"https://api.github.com/users/tessel/orgs","repos_url":"https://api.github.com/users/tessel/repos","events_url":"https://api.github.com/users/tessel/events{/privacy}","received_events_url":"https://api.github.com/users/tessel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tessel/t2-cli","description":"Command line interface to Tessel 2.","fork":false,"url":"https://api.github.com/repos/tessel/t2-cli","forks_url":"https://api.github.com/repos/tessel/t2-cli/forks","keys_url":"https://api.github.com/repos/tessel/t2-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tessel/t2-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tessel/t2-cli/teams","hooks_url":"https://api.github.com/repos/tessel/t2-cli/hooks","issue_events_url":"https://api.github.com/repos/tessel/t2-cli/issues/events{/number}","events_url":"https://api.github.com/repos/tessel/t2-cli/events","assignees_url":"https://api.github.com/repos/tessel/t2-cli/assignees{/user}","branches_url":"https://api.github.com/repos/tessel/t2-cli/branches{/branch}","tags_url":"https://api.github.com/repos/tessel/t2-cli/tags","blobs_url":"https://api.github.com/repos/tessel/t2-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tessel/t2-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tessel/t2-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/tessel/t2-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tessel/t2-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/tessel/t2-cli/languages","stargazers_url":"https://api.github.com/repos/tessel/t2-cli/stargazers","contributors_url":"https://api.github.com/repos/tessel/t2-cli/contributors","subscribers_url":"https://api.github.com/repos/tessel/t2-cli/subscribers","subscription_url":"https://api.github.com/repos/tessel/t2-cli/subscription","commits_url":"https://api.github.com/repos/tessel/t2-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/tessel/t2-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/tessel/t2-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/tessel/t2-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/tessel/t2-cli/contents/{+path}","compare_url":"https://api.github.com/repos/tessel/t2-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tessel/t2-cli/merges","archive_url":"https://api.github.com/repos/tessel/t2-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tessel/t2-cli/downloads","issues_url":"https://api.github.com/repos/tessel/t2-cli/issues{/number}","pulls_url":"https://api.github.com/repos/tessel/t2-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/tessel/t2-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/tessel/t2-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tessel/t2-cli/labels{/name}","releases_url":"https://api.github.com/repos/tessel/t2-cli/releases{/id}","deployments_url":"https://api.github.com/repos/tessel/t2-cli/deployments","created_at":"2015-02-06T01:27:53Z","updated_at":"2016-08-23T01:10:48Z","pushed_at":"2016-08-30T21:40:58Z","git_url":"git://github.com/tessel/t2-cli.git","ssh_url":"git@github.com:tessel/t2-cli.git","clone_url":"https://github.com/tessel/t2-cli.git","svn_url":"https://github.com/tessel/t2-cli","homepage":"","size":2045,"stargazers_count":68,"watchers_count":68,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":64,"forks":38,"open_issues":64,"watchers":68,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tessel/t2-cli/pulls/834"},"html":{"href":"https://github.com/tessel/t2-cli/pull/834"},"issue":{"href":"https://api.github.com/repos/tessel/t2-cli/issues/834"},"comments":{"href":"https://api.github.com/repos/tessel/t2-cli/issues/834/comments"},"review_comments":{"href":"https://api.github.com/repos/tessel/t2-cli/pulls/834/comments"},"review_comment":{"href":"https://api.github.com/repos/tessel/t2-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tessel/t2-cli/pulls/834/commits"},"statuses":{"href":"https://api.github.com/repos/tessel/t2-cli/statuses/7b4a2b2790e32012e9663a358d78bf27ff076974"}}}}
{"actor":{"display_login":"rwaldron"}}