{"action":"created","comment":{"url":"https://api.github.com/repos/functionalops/zedtech/pulls/comments/26505890","id":26505890,"diff_hunk":"@@ -0,0 +1,53 @@\n+#!/usr/bin/env bash\n+\n+set -e\n+\n+if [ -n \"$Z_LIB\" ]; then\n+    . $Z_LIB/env.sh\n+else\n+    echo \"ERROR Incorrectly configured environment, Z_LIB not set\" >&2\n+    exit 1\n+fi\n+\n+. $Z_LIB/gerrit.functions\n+\n+usage=\"Usage: $(basename $0) [-d] [gerrit_command]\n+  -h - this help\n+  -d - debug\n+  gerrit_command - the command to execute via the gerrit SSH interface\n+\n+Executes the given gerrit command. Details about supported commands\n+can be found in the documentation:\n+https://gerrit.googlecode.com/svn/documentation/2.0/cmd-index.html\"\n+\n+while [ $# -gt 0 ]; do\n+  case \"$1\" in\n+    -h)","path":"bin/z-gerrit","position":25,"original_position":25,"commit_id":"e005d15b5e63cdee553c993790b26a508bc8c7bc","original_commit_id":"e005d15b5e63cdee553c993790b26a508bc8c7bc","user":{"login":"mbbx6spp","id":564,"avatar_url":"https://avatars.githubusercontent.com/u/564?v=3","gravatar_id":"","url":"https://api.github.com/users/mbbx6spp","html_url":"https://github.com/mbbx6spp","followers_url":"https://api.github.com/users/mbbx6spp/followers","following_url":"https://api.github.com/users/mbbx6spp/following{/other_user}","gists_url":"https://api.github.com/users/mbbx6spp/gists{/gist_id}","starred_url":"https://api.github.com/users/mbbx6spp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbbx6spp/subscriptions","organizations_url":"https://api.github.com/users/mbbx6spp/orgs","repos_url":"https://api.github.com/users/mbbx6spp/repos","events_url":"https://api.github.com/users/mbbx6spp/events{/privacy}","received_events_url":"https://api.github.com/users/mbbx6spp/received_events","type":"User","site_admin":false},"body":"Also add long version to case, e.g.:\r\n\r\n```bash\r\ncase \"${1}\" in\r\n  -h|--help) ... ;;\r\n  -d|--debug) ... ;;\r\nesac\r\n```","created_at":"2015-03-16T17:13:48Z","updated_at":"2015-03-16T17:13:48Z","html_url":"https://github.com/functionalops/zedtech/pull/5#discussion_r26505890","pull_request_url":"https://api.github.com/repos/functionalops/zedtech/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/functionalops/zedtech/pulls/comments/26505890"},"html":{"href":"https://github.com/functionalops/zedtech/pull/5#discussion_r26505890"},"pull_request":{"href":"https://api.github.com/repos/functionalops/zedtech/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/functionalops/zedtech/pulls/5","id":31249825,"html_url":"https://github.com/functionalops/zedtech/pull/5","diff_url":"https://github.com/functionalops/zedtech/pull/5.diff","patch_url":"https://github.com/functionalops/zedtech/pull/5.patch","issue_url":"https://api.github.com/repos/functionalops/zedtech/issues/5","number":5,"state":"open","locked":false,"title":"Adds gerrit CLI script and some basic functions like:","user":{"login":"polynomial","id":179775,"avatar_url":"https://avatars.githubusercontent.com/u/179775?v=3","gravatar_id":"","url":"https://api.github.com/users/polynomial","html_url":"https://github.com/polynomial","followers_url":"https://api.github.com/users/polynomial/followers","following_url":"https://api.github.com/users/polynomial/following{/other_user}","gists_url":"https://api.github.com/users/polynomial/gists{/gist_id}","starred_url":"https://api.github.com/users/polynomial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polynomial/subscriptions","organizations_url":"https://api.github.com/users/polynomial/orgs","repos_url":"https://api.github.com/users/polynomial/repos","events_url":"https://api.github.com/users/polynomial/events{/privacy}","received_events_url":"https://api.github.com/users/polynomial/received_events","type":"User","site_admin":false},"body":" * add reviewers to a review\r\n * comment on a review\r\n\r\nNeed feedback on path for z-gerrit/z-review, specifically:\r\n * do we want to abstract this further so z-review knows nothing\r\n   about gerrit and only uses some sort of lib/bash/review.functions\r\n   that talks to gerrit\r\n * do we want to support doing stuff outside the repo by ID only?\r\n * don't think we need it now, but having OWNERS support would be\r\n   awesome, discuss\r\n * should we add functionality that wraps the add/commit process\r\n   too? like git flow 'can' do (protects engineers who can't seem\r\n   to ever remember to rebase first and always ask why they are\r\n   stuck in recursive merge land)","created_at":"2015-03-16T14:49:08Z","updated_at":"2015-03-16T17:13:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad35983cbc9375e66774a2fa71f9dd354c3d33c4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/functionalops/zedtech/pulls/5/commits","review_comments_url":"https://api.github.com/repos/functionalops/zedtech/pulls/5/comments","review_comment_url":"https://api.github.com/repos/functionalops/zedtech/pulls/comments{/number}","comments_url":"https://api.github.com/repos/functionalops/zedtech/issues/5/comments","statuses_url":"https://api.github.com/repos/functionalops/zedtech/statuses/e005d15b5e63cdee553c993790b26a508bc8c7bc","head":{"label":"polynomial:gerrit-flow","ref":"gerrit-flow","sha":"e005d15b5e63cdee553c993790b26a508bc8c7bc","user":{"login":"polynomial","id":179775,"avatar_url":"https://avatars.githubusercontent.com/u/179775?v=3","gravatar_id":"","url":"https://api.github.com/users/polynomial","html_url":"https://github.com/polynomial","followers_url":"https://api.github.com/users/polynomial/followers","following_url":"https://api.github.com/users/polynomial/following{/other_user}","gists_url":"https://api.github.com/users/polynomial/gists{/gist_id}","starred_url":"https://api.github.com/users/polynomial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polynomial/subscriptions","organizations_url":"https://api.github.com/users/polynomial/orgs","repos_url":"https://api.github.com/users/polynomial/repos","events_url":"https://api.github.com/users/polynomial/events{/privacy}","received_events_url":"https://api.github.com/users/polynomial/received_events","type":"User","site_admin":false},"repo":{"id":31979448,"name":"zedtech","full_name":"polynomial/zedtech","owner":{"login":"polynomial","id":179775,"avatar_url":"https://avatars.githubusercontent.com/u/179775?v=3","gravatar_id":"","url":"https://api.github.com/users/polynomial","html_url":"https://github.com/polynomial","followers_url":"https://api.github.com/users/polynomial/followers","following_url":"https://api.github.com/users/polynomial/following{/other_user}","gists_url":"https://api.github.com/users/polynomial/gists{/gist_id}","starred_url":"https://api.github.com/users/polynomial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polynomial/subscriptions","organizations_url":"https://api.github.com/users/polynomial/orgs","repos_url":"https://api.github.com/users/polynomial/repos","events_url":"https://api.github.com/users/polynomial/events{/privacy}","received_events_url":"https://api.github.com/users/polynomial/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/polynomial/zedtech","description":"A set of scripts, automation, and toolkit that provides a way for services and organizations to compose meaningful pipelines with minimal glue","fork":true,"url":"https://api.github.com/repos/polynomial/zedtech","forks_url":"https://api.github.com/repos/polynomial/zedtech/forks","keys_url":"https://api.github.com/repos/polynomial/zedtech/keys{/key_id}","collaborators_url":"https://api.github.com/repos/polynomial/zedtech/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/polynomial/zedtech/teams","hooks_url":"https://api.github.com/repos/polynomial/zedtech/hooks","issue_events_url":"https://api.github.com/repos/polynomial/zedtech/issues/events{/number}","events_url":"https://api.github.com/repos/polynomial/zedtech/events","assignees_url":"https://api.github.com/repos/polynomial/zedtech/assignees{/user}","branches_url":"https://api.github.com/repos/polynomial/zedtech/branches{/branch}","tags_url":"https://api.github.com/repos/polynomial/zedtech/tags","blobs_url":"https://api.github.com/repos/polynomial/zedtech/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/polynomial/zedtech/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/polynomial/zedtech/git/refs{/sha}","trees_url":"https://api.github.com/repos/polynomial/zedtech/git/trees{/sha}","statuses_url":"https://api.github.com/repos/polynomial/zedtech/statuses/{sha}","languages_url":"https://api.github.com/repos/polynomial/zedtech/languages","stargazers_url":"https://api.github.com/repos/polynomial/zedtech/stargazers","contributors_url":"https://api.github.com/repos/polynomial/zedtech/contributors","subscribers_url":"https://api.github.com/repos/polynomial/zedtech/subscribers","subscription_url":"https://api.github.com/repos/polynomial/zedtech/subscription","commits_url":"https://api.github.com/repos/polynomial/zedtech/commits{/sha}","git_commits_url":"https://api.github.com/repos/polynomial/zedtech/git/commits{/sha}","comments_url":"https://api.github.com/repos/polynomial/zedtech/comments{/number}","issue_comment_url":"https://api.github.com/repos/polynomial/zedtech/issues/comments{/number}","contents_url":"https://api.github.com/repos/polynomial/zedtech/contents/{+path}","compare_url":"https://api.github.com/repos/polynomial/zedtech/compare/{base}...{head}","merges_url":"https://api.github.com/repos/polynomial/zedtech/merges","archive_url":"https://api.github.com/repos/polynomial/zedtech/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/polynomial/zedtech/downloads","issues_url":"https://api.github.com/repos/polynomial/zedtech/issues{/number}","pulls_url":"https://api.github.com/repos/polynomial/zedtech/pulls{/number}","milestones_url":"https://api.github.com/repos/polynomial/zedtech/milestones{/number}","notifications_url":"https://api.github.com/repos/polynomial/zedtech/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/polynomial/zedtech/labels{/name}","releases_url":"https://api.github.com/repos/polynomial/zedtech/releases{/id}","created_at":"2015-03-10T20:13:38Z","updated_at":"2015-03-10T20:13:38Z","pushed_at":"2015-03-16T14:48:32Z","git_url":"git://github.com/polynomial/zedtech.git","ssh_url":"git@github.com:polynomial/zedtech.git","clone_url":"https://github.com/polynomial/zedtech.git","svn_url":"https://github.com/polynomial/zedtech","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"functionalops:master","ref":"master","sha":"a9e1d11678d198b115779ed52b8f1ac69df2348a","user":{"login":"functionalops","id":9198338,"avatar_url":"https://avatars.githubusercontent.com/u/9198338?v=3","gravatar_id":"","url":"https://api.github.com/users/functionalops","html_url":"https://github.com/functionalops","followers_url":"https://api.github.com/users/functionalops/followers","following_url":"https://api.github.com/users/functionalops/following{/other_user}","gists_url":"https://api.github.com/users/functionalops/gists{/gist_id}","starred_url":"https://api.github.com/users/functionalops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/functionalops/subscriptions","organizations_url":"https://api.github.com/users/functionalops/orgs","repos_url":"https://api.github.com/users/functionalops/repos","events_url":"https://api.github.com/users/functionalops/events{/privacy}","received_events_url":"https://api.github.com/users/functionalops/received_events","type":"Organization","site_admin":false},"repo":{"id":31975397,"name":"zedtech","full_name":"functionalops/zedtech","owner":{"login":"functionalops","id":9198338,"avatar_url":"https://avatars.githubusercontent.com/u/9198338?v=3","gravatar_id":"","url":"https://api.github.com/users/functionalops","html_url":"https://github.com/functionalops","followers_url":"https://api.github.com/users/functionalops/followers","following_url":"https://api.github.com/users/functionalops/following{/other_user}","gists_url":"https://api.github.com/users/functionalops/gists{/gist_id}","starred_url":"https://api.github.com/users/functionalops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/functionalops/subscriptions","organizations_url":"https://api.github.com/users/functionalops/orgs","repos_url":"https://api.github.com/users/functionalops/repos","events_url":"https://api.github.com/users/functionalops/events{/privacy}","received_events_url":"https://api.github.com/users/functionalops/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/functionalops/zedtech","description":"A set of scripts, automation, and toolkit that provides a way for services and organizations to compose meaningful pipelines with minimal glue","fork":false,"url":"https://api.github.com/repos/functionalops/zedtech","forks_url":"https://api.github.com/repos/functionalops/zedtech/forks","keys_url":"https://api.github.com/repos/functionalops/zedtech/keys{/key_id}","collaborators_url":"https://api.github.com/repos/functionalops/zedtech/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/functionalops/zedtech/teams","hooks_url":"https://api.github.com/repos/functionalops/zedtech/hooks","issue_events_url":"https://api.github.com/repos/functionalops/zedtech/issues/events{/number}","events_url":"https://api.github.com/repos/functionalops/zedtech/events","assignees_url":"https://api.github.com/repos/functionalops/zedtech/assignees{/user}","branches_url":"https://api.github.com/repos/functionalops/zedtech/branches{/branch}","tags_url":"https://api.github.com/repos/functionalops/zedtech/tags","blobs_url":"https://api.github.com/repos/functionalops/zedtech/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/functionalops/zedtech/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/functionalops/zedtech/git/refs{/sha}","trees_url":"https://api.github.com/repos/functionalops/zedtech/git/trees{/sha}","statuses_url":"https://api.github.com/repos/functionalops/zedtech/statuses/{sha}","languages_url":"https://api.github.com/repos/functionalops/zedtech/languages","stargazers_url":"https://api.github.com/repos/functionalops/zedtech/stargazers","contributors_url":"https://api.github.com/repos/functionalops/zedtech/contributors","subscribers_url":"https://api.github.com/repos/functionalops/zedtech/subscribers","subscription_url":"https://api.github.com/repos/functionalops/zedtech/subscription","commits_url":"https://api.github.com/repos/functionalops/zedtech/commits{/sha}","git_commits_url":"https://api.github.com/repos/functionalops/zedtech/git/commits{/sha}","comments_url":"https://api.github.com/repos/functionalops/zedtech/comments{/number}","issue_comment_url":"https://api.github.com/repos/functionalops/zedtech/issues/comments{/number}","contents_url":"https://api.github.com/repos/functionalops/zedtech/contents/{+path}","compare_url":"https://api.github.com/repos/functionalops/zedtech/compare/{base}...{head}","merges_url":"https://api.github.com/repos/functionalops/zedtech/merges","archive_url":"https://api.github.com/repos/functionalops/zedtech/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/functionalops/zedtech/downloads","issues_url":"https://api.github.com/repos/functionalops/zedtech/issues{/number}","pulls_url":"https://api.github.com/repos/functionalops/zedtech/pulls{/number}","milestones_url":"https://api.github.com/repos/functionalops/zedtech/milestones{/number}","notifications_url":"https://api.github.com/repos/functionalops/zedtech/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/functionalops/zedtech/labels{/name}","releases_url":"https://api.github.com/repos/functionalops/zedtech/releases{/id}","created_at":"2015-03-10T18:48:18Z","updated_at":"2015-03-11T14:05:15Z","pushed_at":"2015-03-11T14:05:15Z","git_url":"git://github.com/functionalops/zedtech.git","ssh_url":"git@github.com:functionalops/zedtech.git","clone_url":"https://github.com/functionalops/zedtech.git","svn_url":"https://github.com/functionalops/zedtech","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/functionalops/zedtech/pulls/5"},"html":{"href":"https://github.com/functionalops/zedtech/pull/5"},"issue":{"href":"https://api.github.com/repos/functionalops/zedtech/issues/5"},"comments":{"href":"https://api.github.com/repos/functionalops/zedtech/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/functionalops/zedtech/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/functionalops/zedtech/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/functionalops/zedtech/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/functionalops/zedtech/statuses/e005d15b5e63cdee553c993790b26a508bc8c7bc"}}}}