{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/code-push/pulls/comments/65754234","id":65754234,"diff_hunk":"@@ -41,10 +42,23 @@ function updateCheck(): void {\n \n function accessKeyAdd(commandName: string, yargs: yargs.Argv): void {\n     isValidCommand = true;\n-    yargs.usage(USAGE_PREFIX + \" access-key \" + commandName + \" <description>\")\n-        .demand(/*count*/ 3, /*max*/ 3)  // Require exactly two non-option arguments.\n-        .example(\"access-key \" + commandName + \" \\\"VSO Integration\\\"\", \"Creates a new access key with the description \\\"VSO Integration\\\"\");\n+    yargs.usage(USAGE_PREFIX + \" access-key \" + commandName + \" <accessKeyName>\")\n+        .demand(/*count*/ 3, /*max*/ 3)  // Require exactly three non-option arguments.\n+        .example(\"access-key \" + commandName + \" \\\"VSTS Integration\\\"\", \"Creates a new access key with the name \\\"VSO Integration\\\" which expires by default in 60 days\")","path":"cli/script/command-parser.ts","position":17,"original_position":17,"commit_id":"fa096189086b7090b0013067311d5ceb8aff2d66","original_commit_id":"fa096189086b7090b0013067311d5ceb8aff2d66","user":{"login":"dtivel","id":12734758,"avatar_url":"https://avatars.githubusercontent.com/u/12734758?v=3","gravatar_id":"","url":"https://api.github.com/users/dtivel","html_url":"https://github.com/dtivel","followers_url":"https://api.github.com/users/dtivel/followers","following_url":"https://api.github.com/users/dtivel/following{/other_user}","gists_url":"https://api.github.com/users/dtivel/gists{/gist_id}","starred_url":"https://api.github.com/users/dtivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtivel/subscriptions","organizations_url":"https://api.github.com/users/dtivel/orgs","repos_url":"https://api.github.com/users/dtivel/repos","events_url":"https://api.github.com/users/dtivel/events{/privacy}","received_events_url":"https://api.github.com/users/dtivel/received_events","type":"User","site_admin":false},"body":"VSTS","created_at":"2016-06-03T18:26:28Z","updated_at":"2016-06-03T18:26:28Z","html_url":"https://github.com/Microsoft/code-push/pull/245#discussion_r65754234","pull_request_url":"https://api.github.com/repos/Microsoft/code-push/pulls/245","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/code-push/pulls/comments/65754234"},"html":{"href":"https://github.com/Microsoft/code-push/pull/245#discussion_r65754234"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/code-push/pulls/245"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/code-push/pulls/245","id":72272384,"html_url":"https://github.com/Microsoft/code-push/pull/245","diff_url":"https://github.com/Microsoft/code-push/pull/245.diff","patch_url":"https://github.com/Microsoft/code-push/pull/245.patch","issue_url":"https://api.github.com/repos/Microsoft/code-push/issues/245","number":245,"state":"open","locked":false,"title":"Access key changes","user":{"login":"geof90","id":8598682,"avatar_url":"https://avatars.githubusercontent.com/u/8598682?v=3","gravatar_id":"","url":"https://api.github.com/users/geof90","html_url":"https://github.com/geof90","followers_url":"https://api.github.com/users/geof90/followers","following_url":"https://api.github.com/users/geof90/following{/other_user}","gists_url":"https://api.github.com/users/geof90/gists{/gist_id}","starred_url":"https://api.github.com/users/geof90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geof90/subscriptions","organizations_url":"https://api.github.com/users/geof90/orgs","repos_url":"https://api.github.com/users/geof90/repos","events_url":"https://api.github.com/users/geof90/events{/privacy}","received_events_url":"https://api.github.com/users/geof90/received_events","type":"User","site_admin":false},"body":"This PR:\r\n\r\n- Adds the ability to specify an expiry to access keys. If unspecified, keys will be created with a default expiry (60 days, subject to change) on the server side.\r\n   ```\r\n$ code-push access-key add \"Temporary key\" --maxAge 5m\r\n\r\nSuccessfully created a new access key \"Temporary key\": NnPx5-nmPnooZeMJygxmcqUd6wptVJx1XOClg\r\n(Expires: Wed Jun 01 2016 16:59:19 GMT-0700 (PDT))\r\n   ```\r\n- Adds the ability to edit the name and expiry of your access keys.\r\n\r\n   ```\r\n$ code-push access-key edit \"Old name\" --name \"New name\" --maxAge \"7h 15m\"\r\nSuccessfully renamed the access key \"Old name\" to \"New name\" and changed its expiry to Thu Jun 02 2016 00:21:43 GMT-0700 (PDT).\r\n   ```\r\n\r\n- Adds the ability to see the expiry of all your keys. In an upcoming server change, the server will no longer show the actual key strings anymore when the CLI tries to list access keys, the only time the actual key string will be displayed is during creation.\r\n\r\n   ```\r\n$ code-push access-key ls\r\n   ```\r\n![image](https://cloud.githubusercontent.com/assets/8598682/15729792/29566c1a-281c-11e6-9f4b-97409b10bed4.png)\r\n\r\n@lostintangent ","created_at":"2016-06-02T00:13:36Z","updated_at":"2016-06-03T18:26:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99b22c42087df527089d7abbee011c0c4f516b01","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/code-push/pulls/245/commits","review_comments_url":"https://api.github.com/repos/Microsoft/code-push/pulls/245/comments","review_comment_url":"https://api.github.com/repos/Microsoft/code-push/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/code-push/issues/245/comments","statuses_url":"https://api.github.com/repos/Microsoft/code-push/statuses/fa096189086b7090b0013067311d5ceb8aff2d66","head":{"label":"Microsoft:access-key-changes","ref":"access-key-changes","sha":"fa096189086b7090b0013067311d5ceb8aff2d66","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":43459513,"name":"code-push","full_name":"Microsoft/code-push","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/code-push","description":"A cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices.","fork":false,"url":"https://api.github.com/repos/Microsoft/code-push","forks_url":"https://api.github.com/repos/Microsoft/code-push/forks","keys_url":"https://api.github.com/repos/Microsoft/code-push/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/code-push/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/code-push/teams","hooks_url":"https://api.github.com/repos/Microsoft/code-push/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/code-push/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/code-push/events","assignees_url":"https://api.github.com/repos/Microsoft/code-push/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/code-push/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/code-push/tags","blobs_url":"https://api.github.com/repos/Microsoft/code-push/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/code-push/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/code-push/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/code-push/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/code-push/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/code-push/languages","stargazers_url":"https://api.github.com/repos/Microsoft/code-push/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/code-push/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/code-push/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/code-push/subscription","commits_url":"https://api.github.com/repos/Microsoft/code-push/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/code-push/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/code-push/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/code-push/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/code-push/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/code-push/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/code-push/merges","archive_url":"https://api.github.com/repos/Microsoft/code-push/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/code-push/downloads","issues_url":"https://api.github.com/repos/Microsoft/code-push/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/code-push/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/code-push/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/code-push/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/code-push/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/code-push/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/code-push/deployments","created_at":"2015-09-30T21:12:55Z","updated_at":"2016-06-03T15:37:27Z","pushed_at":"2016-06-03T17:50:00Z","git_url":"git://github.com/Microsoft/code-push.git","ssh_url":"git@github.com:Microsoft/code-push.git","clone_url":"https://github.com/Microsoft/code-push.git","svn_url":"https://github.com/Microsoft/code-push","homepage":"http://codepush.tools","size":7906,"stargazers_count":1425,"watchers_count":1425,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":103,"mirror_url":null,"open_issues_count":6,"forks":103,"open_issues":6,"watchers":1425,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"0758d6345f01ee443ba3c8c2b6b442540fbb84d9","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":43459513,"name":"code-push","full_name":"Microsoft/code-push","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/code-push","description":"A cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices.","fork":false,"url":"https://api.github.com/repos/Microsoft/code-push","forks_url":"https://api.github.com/repos/Microsoft/code-push/forks","keys_url":"https://api.github.com/repos/Microsoft/code-push/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/code-push/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/code-push/teams","hooks_url":"https://api.github.com/repos/Microsoft/code-push/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/code-push/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/code-push/events","assignees_url":"https://api.github.com/repos/Microsoft/code-push/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/code-push/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/code-push/tags","blobs_url":"https://api.github.com/repos/Microsoft/code-push/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/code-push/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/code-push/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/code-push/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/code-push/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/code-push/languages","stargazers_url":"https://api.github.com/repos/Microsoft/code-push/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/code-push/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/code-push/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/code-push/subscription","commits_url":"https://api.github.com/repos/Microsoft/code-push/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/code-push/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/code-push/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/code-push/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/code-push/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/code-push/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/code-push/merges","archive_url":"https://api.github.com/repos/Microsoft/code-push/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/code-push/downloads","issues_url":"https://api.github.com/repos/Microsoft/code-push/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/code-push/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/code-push/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/code-push/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/code-push/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/code-push/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/code-push/deployments","created_at":"2015-09-30T21:12:55Z","updated_at":"2016-06-03T15:37:27Z","pushed_at":"2016-06-03T17:50:00Z","git_url":"git://github.com/Microsoft/code-push.git","ssh_url":"git@github.com:Microsoft/code-push.git","clone_url":"https://github.com/Microsoft/code-push.git","svn_url":"https://github.com/Microsoft/code-push","homepage":"http://codepush.tools","size":7906,"stargazers_count":1425,"watchers_count":1425,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":103,"mirror_url":null,"open_issues_count":6,"forks":103,"open_issues":6,"watchers":1425,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/code-push/pulls/245"},"html":{"href":"https://github.com/Microsoft/code-push/pull/245"},"issue":{"href":"https://api.github.com/repos/Microsoft/code-push/issues/245"},"comments":{"href":"https://api.github.com/repos/Microsoft/code-push/issues/245/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/code-push/pulls/245/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/code-push/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/code-push/pulls/245/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/code-push/statuses/fa096189086b7090b0013067311d5ceb8aff2d66"}}}}
{"actor":{"display_login":"dtivel"}}