{"action":"created","comment":{"url":"https://api.github.com/repos/google/startup-os/pulls/comments/190166487","pull_request_review_id":122484850,"id":190166487,"diff_hunk":"@@ -68,4 +71,50 @@ public static String getCurrentWorkspaceName(\n       throw new RuntimeException(\"You're not in a workspace\");\n     }\n   }\n+\n+  private static final Integer NOT_A_VALUE = -1024;","path":"tools/aa/AaModule.java","position":20,"original_position":20,"commit_id":"3b8acf107cf6877e4c02e680485b1b0708a391df","original_commit_id":"3b8acf107cf6877e4c02e680485b1b0708a391df","user":{"login":"oferb","id":5137671,"avatar_url":"https://avatars1.githubusercontent.com/u/5137671?v=4","gravatar_id":"","url":"https://api.github.com/users/oferb","html_url":"https://github.com/oferb","followers_url":"https://api.github.com/users/oferb/followers","following_url":"https://api.github.com/users/oferb/following{/other_user}","gists_url":"https://api.github.com/users/oferb/gists{/gist_id}","starred_url":"https://api.github.com/users/oferb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oferb/subscriptions","organizations_url":"https://api.github.com/users/oferb/orgs","repos_url":"https://api.github.com/users/oferb/repos","events_url":"https://api.github.com/users/oferb/events{/privacy}","received_events_url":"https://api.github.com/users/oferb/received_events","type":"User","site_admin":false},"body":"-1?\r\n:)\r\nThen you can avoid the `static final`.\r\nI would document that the method returns -1 on invalid inputs and maybe rename to `safeParsePositiveInt`","created_at":"2018-05-23T08:42:09Z","updated_at":"2018-05-23T08:43:56Z","html_url":"https://github.com/google/startup-os/pull/77#discussion_r190166487","pull_request_url":"https://api.github.com/repos/google/startup-os/pulls/77","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/google/startup-os/pulls/comments/190166487"},"html":{"href":"https://github.com/google/startup-os/pull/77#discussion_r190166487"},"pull_request":{"href":"https://api.github.com/repos/google/startup-os/pulls/77"}}},"pull_request":{"url":"https://api.github.com/repos/google/startup-os/pulls/77","id":189437394,"html_url":"https://github.com/google/startup-os/pull/77","diff_url":"https://github.com/google/startup-os/pull/77.diff","patch_url":"https://github.com/google/startup-os/pull/77.patch","issue_url":"https://api.github.com/repos/google/startup-os/issues/77","number":77,"state":"open","locked":false,"title":"DiffCommand: implement updating diff","user":{"login":"vmax","id":499267,"avatar_url":"https://avatars1.githubusercontent.com/u/499267?v=4","gravatar_id":"","url":"https://api.github.com/users/vmax","html_url":"https://github.com/vmax","followers_url":"https://api.github.com/users/vmax/followers","following_url":"https://api.github.com/users/vmax/following{/other_user}","gists_url":"https://api.github.com/users/vmax/gists{/gist_id}","starred_url":"https://api.github.com/users/vmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmax/subscriptions","organizations_url":"https://api.github.com/users/vmax/orgs","repos_url":"https://api.github.com/users/vmax/repos","events_url":"https://api.github.com/users/vmax/events{/privacy}","received_events_url":"https://api.github.com/users/vmax/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-21T17:14:23Z","updated_at":"2018-05-23T08:43:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"935645efd3ace6c53f6d02158f21aadfb8b65337","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/startup-os/pulls/77/commits","review_comments_url":"https://api.github.com/repos/google/startup-os/pulls/77/comments","review_comment_url":"https://api.github.com/repos/google/startup-os/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/startup-os/issues/77/comments","statuses_url":"https://api.github.com/repos/google/startup-os/statuses/3b8acf107cf6877e4c02e680485b1b0708a391df","head":{"label":"google:aa-diff-modify-impl","ref":"aa-diff-modify-impl","sha":"3b8acf107cf6877e4c02e680485b1b0708a391df","user":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":122602787,"name":"startup-os","full_name":"google/startup-os","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/startup-os","description":"Working examples of Google's Open Source tools and Cloud","fork":false,"url":"https://api.github.com/repos/google/startup-os","forks_url":"https://api.github.com/repos/google/startup-os/forks","keys_url":"https://api.github.com/repos/google/startup-os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/startup-os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/startup-os/teams","hooks_url":"https://api.github.com/repos/google/startup-os/hooks","issue_events_url":"https://api.github.com/repos/google/startup-os/issues/events{/number}","events_url":"https://api.github.com/repos/google/startup-os/events","assignees_url":"https://api.github.com/repos/google/startup-os/assignees{/user}","branches_url":"https://api.github.com/repos/google/startup-os/branches{/branch}","tags_url":"https://api.github.com/repos/google/startup-os/tags","blobs_url":"https://api.github.com/repos/google/startup-os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/startup-os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/startup-os/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/startup-os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/startup-os/statuses/{sha}","languages_url":"https://api.github.com/repos/google/startup-os/languages","stargazers_url":"https://api.github.com/repos/google/startup-os/stargazers","contributors_url":"https://api.github.com/repos/google/startup-os/contributors","subscribers_url":"https://api.github.com/repos/google/startup-os/subscribers","subscription_url":"https://api.github.com/repos/google/startup-os/subscription","commits_url":"https://api.github.com/repos/google/startup-os/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/startup-os/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/startup-os/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/startup-os/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/startup-os/contents/{+path}","compare_url":"https://api.github.com/repos/google/startup-os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/startup-os/merges","archive_url":"https://api.github.com/repos/google/startup-os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/startup-os/downloads","issues_url":"https://api.github.com/repos/google/startup-os/issues{/number}","pulls_url":"https://api.github.com/repos/google/startup-os/pulls{/number}","milestones_url":"https://api.github.com/repos/google/startup-os/milestones{/number}","notifications_url":"https://api.github.com/repos/google/startup-os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/startup-os/labels{/name}","releases_url":"https://api.github.com/repos/google/startup-os/releases{/id}","deployments_url":"https://api.github.com/repos/google/startup-os/deployments","created_at":"2018-02-23T09:48:29Z","updated_at":"2018-05-23T07:08:07Z","pushed_at":"2018-05-23T07:08:05Z","git_url":"git://github.com/google/startup-os.git","ssh_url":"git@github.com:google/startup-os.git","clone_url":"https://github.com/google/startup-os.git","svn_url":"https://github.com/google/startup-os","homepage":"","size":692,"stargazers_count":44,"watchers_count":44,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":10,"open_issues":13,"watchers":44,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"3018d9d297f5848ab4e60b77ed2159443c311906","user":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":122602787,"name":"startup-os","full_name":"google/startup-os","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/startup-os","description":"Working examples of Google's Open Source tools and Cloud","fork":false,"url":"https://api.github.com/repos/google/startup-os","forks_url":"https://api.github.com/repos/google/startup-os/forks","keys_url":"https://api.github.com/repos/google/startup-os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/startup-os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/startup-os/teams","hooks_url":"https://api.github.com/repos/google/startup-os/hooks","issue_events_url":"https://api.github.com/repos/google/startup-os/issues/events{/number}","events_url":"https://api.github.com/repos/google/startup-os/events","assignees_url":"https://api.github.com/repos/google/startup-os/assignees{/user}","branches_url":"https://api.github.com/repos/google/startup-os/branches{/branch}","tags_url":"https://api.github.com/repos/google/startup-os/tags","blobs_url":"https://api.github.com/repos/google/startup-os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/startup-os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/startup-os/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/startup-os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/startup-os/statuses/{sha}","languages_url":"https://api.github.com/repos/google/startup-os/languages","stargazers_url":"https://api.github.com/repos/google/startup-os/stargazers","contributors_url":"https://api.github.com/repos/google/startup-os/contributors","subscribers_url":"https://api.github.com/repos/google/startup-os/subscribers","subscription_url":"https://api.github.com/repos/google/startup-os/subscription","commits_url":"https://api.github.com/repos/google/startup-os/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/startup-os/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/startup-os/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/startup-os/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/startup-os/contents/{+path}","compare_url":"https://api.github.com/repos/google/startup-os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/startup-os/merges","archive_url":"https://api.github.com/repos/google/startup-os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/startup-os/downloads","issues_url":"https://api.github.com/repos/google/startup-os/issues{/number}","pulls_url":"https://api.github.com/repos/google/startup-os/pulls{/number}","milestones_url":"https://api.github.com/repos/google/startup-os/milestones{/number}","notifications_url":"https://api.github.com/repos/google/startup-os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/startup-os/labels{/name}","releases_url":"https://api.github.com/repos/google/startup-os/releases{/id}","deployments_url":"https://api.github.com/repos/google/startup-os/deployments","created_at":"2018-02-23T09:48:29Z","updated_at":"2018-05-23T07:08:07Z","pushed_at":"2018-05-23T07:08:05Z","git_url":"git://github.com/google/startup-os.git","ssh_url":"git@github.com:google/startup-os.git","clone_url":"https://github.com/google/startup-os.git","svn_url":"https://github.com/google/startup-os","homepage":"","size":692,"stargazers_count":44,"watchers_count":44,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":10,"open_issues":13,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/startup-os/pulls/77"},"html":{"href":"https://github.com/google/startup-os/pull/77"},"issue":{"href":"https://api.github.com/repos/google/startup-os/issues/77"},"comments":{"href":"https://api.github.com/repos/google/startup-os/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/google/startup-os/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/google/startup-os/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/startup-os/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/google/startup-os/statuses/3b8acf107cf6877e4c02e680485b1b0708a391df"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"oferb"}}