{"action":"created","comment":{"url":"https://api.github.com/repos/platformsh/platformsh-cli/pulls/comments/28243667","id":28243667,"diff_hunk":"@@ -7,3 +7,25 @@ HOOK=$(platform _completion -g -p platform)\n # See https://github.com/stecman/symfony-console-completion/issues/12\n echo \"$HOOK\" | source /dev/stdin\n source <(echo \"$HOOK\") 2>/dev/null\n+\n+# Run Git in the repository root.\n+function platform_git {\n+  local ROOT=$(platform dir repo)\n+  if [ -z \"$ROOT\" ]; then\n+      echo $0': Project root not found' >&2\n+      return 1;\n+  elif [ ! -d \"$ROOT\" ]; then","path":"platform.rc","position":11,"original_position":11,"commit_id":"02e5f94fe2c92e3b7a6ff4fe56066d8ad7035a86","original_commit_id":"02e5f94fe2c92e3b7a6ff4fe56066d8ad7035a86","user":{"login":"kotnik","id":187705,"avatar_url":"https://avatars.githubusercontent.com/u/187705?v=3","gravatar_id":"","url":"https://api.github.com/users/kotnik","html_url":"https://github.com/kotnik","followers_url":"https://api.github.com/users/kotnik/followers","following_url":"https://api.github.com/users/kotnik/following{/other_user}","gists_url":"https://api.github.com/users/kotnik/gists{/gist_id}","starred_url":"https://api.github.com/users/kotnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotnik/subscriptions","organizations_url":"https://api.github.com/users/kotnik/orgs","repos_url":"https://api.github.com/users/kotnik/repos","events_url":"https://api.github.com/users/kotnik/events{/privacy}","received_events_url":"https://api.github.com/users/kotnik/received_events","type":"User","site_admin":false},"body":"2 or 4 spaces for indent?","created_at":"2015-04-13T14:44:03Z","updated_at":"2015-04-13T14:44:03Z","html_url":"https://github.com/platformsh/platformsh-cli/pull/277#discussion_r28243667","pull_request_url":"https://api.github.com/repos/platformsh/platformsh-cli/pulls/277","_links":{"self":{"href":"https://api.github.com/repos/platformsh/platformsh-cli/pulls/comments/28243667"},"html":{"href":"https://github.com/platformsh/platformsh-cli/pull/277#discussion_r28243667"},"pull_request":{"href":"https://api.github.com/repos/platformsh/platformsh-cli/pulls/277"}}},"pull_request":{"url":"https://api.github.com/repos/platformsh/platformsh-cli/pulls/277","id":33152306,"html_url":"https://github.com/platformsh/platformsh-cli/pull/277","diff_url":"https://github.com/platformsh/platformsh-cli/pull/277.diff","patch_url":"https://github.com/platformsh/platformsh-cli/pull/277.patch","issue_url":"https://api.github.com/repos/platformsh/platformsh-cli/issues/277","number":277,"state":"open","locked":false,"title":"Add local:dir command, and Bash alias 'pgit'","user":{"login":"pjcdawkins","id":1465106,"avatar_url":"https://avatars.githubusercontent.com/u/1465106?v=3","gravatar_id":"","url":"https://api.github.com/users/pjcdawkins","html_url":"https://github.com/pjcdawkins","followers_url":"https://api.github.com/users/pjcdawkins/followers","following_url":"https://api.github.com/users/pjcdawkins/following{/other_user}","gists_url":"https://api.github.com/users/pjcdawkins/gists{/gist_id}","starred_url":"https://api.github.com/users/pjcdawkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjcdawkins/subscriptions","organizations_url":"https://api.github.com/users/pjcdawkins/orgs","repos_url":"https://api.github.com/users/pjcdawkins/repos","events_url":"https://api.github.com/users/pjcdawkins/events{/privacy}","received_events_url":"https://api.github.com/users/pjcdawkins/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-13T10:37:57Z","updated_at":"2015-04-13T14:44:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf7e998ce6a7736328bf1a5ca959768202302db4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/platformsh/platformsh-cli/pulls/277/commits","review_comments_url":"https://api.github.com/repos/platformsh/platformsh-cli/pulls/277/comments","review_comment_url":"https://api.github.com/repos/platformsh/platformsh-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/platformsh/platformsh-cli/issues/277/comments","statuses_url":"https://api.github.com/repos/platformsh/platformsh-cli/statuses/02e5f94fe2c92e3b7a6ff4fe56066d8ad7035a86","head":{"label":"pjcdawkins:local-dir-command","ref":"local-dir-command","sha":"02e5f94fe2c92e3b7a6ff4fe56066d8ad7035a86","user":{"login":"pjcdawkins","id":1465106,"avatar_url":"https://avatars.githubusercontent.com/u/1465106?v=3","gravatar_id":"","url":"https://api.github.com/users/pjcdawkins","html_url":"https://github.com/pjcdawkins","followers_url":"https://api.github.com/users/pjcdawkins/followers","following_url":"https://api.github.com/users/pjcdawkins/following{/other_user}","gists_url":"https://api.github.com/users/pjcdawkins/gists{/gist_id}","starred_url":"https://api.github.com/users/pjcdawkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjcdawkins/subscriptions","organizations_url":"https://api.github.com/users/pjcdawkins/orgs","repos_url":"https://api.github.com/users/pjcdawkins/repos","events_url":"https://api.github.com/users/pjcdawkins/events{/privacy}","received_events_url":"https://api.github.com/users/pjcdawkins/received_events","type":"User","site_admin":false},"repo":{"id":23932603,"name":"platformsh-cli","full_name":"pjcdawkins/platformsh-cli","owner":{"login":"pjcdawkins","id":1465106,"avatar_url":"https://avatars.githubusercontent.com/u/1465106?v=3","gravatar_id":"","url":"https://api.github.com/users/pjcdawkins","html_url":"https://github.com/pjcdawkins","followers_url":"https://api.github.com/users/pjcdawkins/followers","following_url":"https://api.github.com/users/pjcdawkins/following{/other_user}","gists_url":"https://api.github.com/users/pjcdawkins/gists{/gist_id}","starred_url":"https://api.github.com/users/pjcdawkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjcdawkins/subscriptions","organizations_url":"https://api.github.com/users/pjcdawkins/orgs","repos_url":"https://api.github.com/users/pjcdawkins/repos","events_url":"https://api.github.com/users/pjcdawkins/events{/privacy}","received_events_url":"https://api.github.com/users/pjcdawkins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pjcdawkins/platformsh-cli","description":"Platform Command Line Interface (CLI) is a unified tool to manage your Platform services.","fork":true,"url":"https://api.github.com/repos/pjcdawkins/platformsh-cli","forks_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/forks","keys_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/teams","hooks_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/hooks","issue_events_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/issues/events{/number}","events_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/events","assignees_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/assignees{/user}","branches_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/branches{/branch}","tags_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/tags","blobs_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/languages","stargazers_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/stargazers","contributors_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/contributors","subscribers_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/subscribers","subscription_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/subscription","commits_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/contents/{+path}","compare_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/merges","archive_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/downloads","issues_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/issues{/number}","pulls_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/labels{/name}","releases_url":"https://api.github.com/repos/pjcdawkins/platformsh-cli/releases{/id}","created_at":"2014-09-11T19:29:30Z","updated_at":"2015-03-25T18:46:50Z","pushed_at":"2015-04-13T11:50:23Z","git_url":"git://github.com/pjcdawkins/platformsh-cli.git","ssh_url":"git@github.com:pjcdawkins/platformsh-cli.git","clone_url":"https://github.com/pjcdawkins/platformsh-cli.git","svn_url":"https://github.com/pjcdawkins/platformsh-cli","homepage":"","size":3634,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"platformsh:development","ref":"development","sha":"36c8249a18311cd0b194eec206fe8b85eabfed6e","user":{"login":"platformsh","id":7248334,"avatar_url":"https://avatars.githubusercontent.com/u/7248334?v=3","gravatar_id":"","url":"https://api.github.com/users/platformsh","html_url":"https://github.com/platformsh","followers_url":"https://api.github.com/users/platformsh/followers","following_url":"https://api.github.com/users/platformsh/following{/other_user}","gists_url":"https://api.github.com/users/platformsh/gists{/gist_id}","starred_url":"https://api.github.com/users/platformsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/platformsh/subscriptions","organizations_url":"https://api.github.com/users/platformsh/orgs","repos_url":"https://api.github.com/users/platformsh/repos","events_url":"https://api.github.com/users/platformsh/events{/privacy}","received_events_url":"https://api.github.com/users/platformsh/received_events","type":"Organization","site_admin":false},"repo":{"id":16695539,"name":"platformsh-cli","full_name":"platformsh/platformsh-cli","owner":{"login":"platformsh","id":7248334,"avatar_url":"https://avatars.githubusercontent.com/u/7248334?v=3","gravatar_id":"","url":"https://api.github.com/users/platformsh","html_url":"https://github.com/platformsh","followers_url":"https://api.github.com/users/platformsh/followers","following_url":"https://api.github.com/users/platformsh/following{/other_user}","gists_url":"https://api.github.com/users/platformsh/gists{/gist_id}","starred_url":"https://api.github.com/users/platformsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/platformsh/subscriptions","organizations_url":"https://api.github.com/users/platformsh/orgs","repos_url":"https://api.github.com/users/platformsh/repos","events_url":"https://api.github.com/users/platformsh/events{/privacy}","received_events_url":"https://api.github.com/users/platformsh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/platformsh/platformsh-cli","description":"The unified tool for managing your Platform.sh services from the command line.","fork":false,"url":"https://api.github.com/repos/platformsh/platformsh-cli","forks_url":"https://api.github.com/repos/platformsh/platformsh-cli/forks","keys_url":"https://api.github.com/repos/platformsh/platformsh-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/platformsh/platformsh-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/platformsh/platformsh-cli/teams","hooks_url":"https://api.github.com/repos/platformsh/platformsh-cli/hooks","issue_events_url":"https://api.github.com/repos/platformsh/platformsh-cli/issues/events{/number}","events_url":"https://api.github.com/repos/platformsh/platformsh-cli/events","assignees_url":"https://api.github.com/repos/platformsh/platformsh-cli/assignees{/user}","branches_url":"https://api.github.com/repos/platformsh/platformsh-cli/branches{/branch}","tags_url":"https://api.github.com/repos/platformsh/platformsh-cli/tags","blobs_url":"https://api.github.com/repos/platformsh/platformsh-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/platformsh/platformsh-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/platformsh/platformsh-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/platformsh/platformsh-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/platformsh/platformsh-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/platformsh/platformsh-cli/languages","stargazers_url":"https://api.github.com/repos/platformsh/platformsh-cli/stargazers","contributors_url":"https://api.github.com/repos/platformsh/platformsh-cli/contributors","subscribers_url":"https://api.github.com/repos/platformsh/platformsh-cli/subscribers","subscription_url":"https://api.github.com/repos/platformsh/platformsh-cli/subscription","commits_url":"https://api.github.com/repos/platformsh/platformsh-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/platformsh/platformsh-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/platformsh/platformsh-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/platformsh/platformsh-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/platformsh/platformsh-cli/contents/{+path}","compare_url":"https://api.github.com/repos/platformsh/platformsh-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/platformsh/platformsh-cli/merges","archive_url":"https://api.github.com/repos/platformsh/platformsh-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/platformsh/platformsh-cli/downloads","issues_url":"https://api.github.com/repos/platformsh/platformsh-cli/issues{/number}","pulls_url":"https://api.github.com/repos/platformsh/platformsh-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/platformsh/platformsh-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/platformsh/platformsh-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/platformsh/platformsh-cli/labels{/name}","releases_url":"https://api.github.com/repos/platformsh/platformsh-cli/releases{/id}","created_at":"2014-02-10T13:07:58Z","updated_at":"2015-04-13T12:02:40Z","pushed_at":"2015-04-13T12:02:40Z","git_url":"git://github.com/platformsh/platformsh-cli.git","ssh_url":"git@github.com:platformsh/platformsh-cli.git","clone_url":"https://github.com/platformsh/platformsh-cli.git","svn_url":"https://github.com/platformsh/platformsh-cli","homepage":"","size":5037,"stargazers_count":29,"watchers_count":29,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":26,"forks":21,"open_issues":26,"watchers":29,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/platformsh/platformsh-cli/pulls/277"},"html":{"href":"https://github.com/platformsh/platformsh-cli/pull/277"},"issue":{"href":"https://api.github.com/repos/platformsh/platformsh-cli/issues/277"},"comments":{"href":"https://api.github.com/repos/platformsh/platformsh-cli/issues/277/comments"},"review_comments":{"href":"https://api.github.com/repos/platformsh/platformsh-cli/pulls/277/comments"},"review_comment":{"href":"https://api.github.com/repos/platformsh/platformsh-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/platformsh/platformsh-cli/pulls/277/commits"},"statuses":{"href":"https://api.github.com/repos/platformsh/platformsh-cli/statuses/02e5f94fe2c92e3b7a6ff4fe56066d8ad7035a86"}}}}