{"action":"created","comment":{"url":"https://api.github.com/repos/acquia/blt/pulls/comments/78173496","id":78173496,"diff_hunk":"@@ -23,11 +23,22 @@ if [ ! -z \"$DETECTED_PROFILE\" ]; then\n     exit\n   fi\n \n+  while getopts \":y\" arg; do\n+  case $arg in\n+    y)\n+      REPLY=y\n+      ;;\n+    esac\n+  done\n+\n   echo \"BLT can automatically create a Bash alias to make it easier to run BLT tasks.\"\n   echo \"This alias may be created in .bash_profile or .bashrc depending on your system architecture.\"\n   echo \"\"\n-  read -p \"Install alias? (y/n)\" -n 1 -r\n-  echo \"\"\n+\n+  if [ -z $REPLY ]; then\n+    read -p \"Install alias? (y/n)\" -n 1 -r\n+    echo \"\"\n+  fi","path":"scripts/blt/install-alias.sh","position":21,"original_position":21,"commit_id":"98514544085ee1e70302dbbdab5d0475a37458e8","original_commit_id":"98514544085ee1e70302dbbdab5d0475a37458e8","user":{"login":"grasmash","id":539205,"avatar_url":"https://avatars.githubusercontent.com/u/539205?v=3","gravatar_id":"","url":"https://api.github.com/users/grasmash","html_url":"https://github.com/grasmash","followers_url":"https://api.github.com/users/grasmash/followers","following_url":"https://api.github.com/users/grasmash/following{/other_user}","gists_url":"https://api.github.com/users/grasmash/gists{/gist_id}","starred_url":"https://api.github.com/users/grasmash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grasmash/subscriptions","organizations_url":"https://api.github.com/users/grasmash/orgs","repos_url":"https://api.github.com/users/grasmash/repos","events_url":"https://api.github.com/users/grasmash/events{/privacy}","received_events_url":"https://api.github.com/users/grasmash/received_events","type":"User","site_admin":false},"body":"This script already accepts `-y` as an argument. Is it not working?","created_at":"2016-09-09T12:47:52Z","updated_at":"2016-09-09T12:47:52Z","html_url":"https://github.com/acquia/blt/pull/328#discussion_r78173496","pull_request_url":"https://api.github.com/repos/acquia/blt/pulls/328","_links":{"self":{"href":"https://api.github.com/repos/acquia/blt/pulls/comments/78173496"},"html":{"href":"https://github.com/acquia/blt/pull/328#discussion_r78173496"},"pull_request":{"href":"https://api.github.com/repos/acquia/blt/pulls/328"}}},"pull_request":{"url":"https://api.github.com/repos/acquia/blt/pulls/328","id":82743426,"html_url":"https://github.com/acquia/blt/pull/328","diff_url":"https://github.com/acquia/blt/pull/328.diff","patch_url":"https://github.com/acquia/blt/pull/328.patch","issue_url":"https://api.github.com/repos/acquia/blt/issues/328","number":328,"state":"open","locked":false,"title":"Add script to install BLT alias to template composer.json script, upd…","user":{"login":"pixlkat","id":8460082,"avatar_url":"https://avatars.githubusercontent.com/u/8460082?v=3","gravatar_id":"","url":"https://api.github.com/users/pixlkat","html_url":"https://github.com/pixlkat","followers_url":"https://api.github.com/users/pixlkat/followers","following_url":"https://api.github.com/users/pixlkat/following{/other_user}","gists_url":"https://api.github.com/users/pixlkat/gists{/gist_id}","starred_url":"https://api.github.com/users/pixlkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixlkat/subscriptions","organizations_url":"https://api.github.com/users/pixlkat/orgs","repos_url":"https://api.github.com/users/pixlkat/repos","events_url":"https://api.github.com/users/pixlkat/events{/privacy}","received_events_url":"https://api.github.com/users/pixlkat/received_events","type":"User","site_admin":false},"body":"…ate setup instructions in onboarding.md. (#284).\r\n\r\nThe simplest solution seemed to be to add the script to the template composer.json. I modified the script itself to accept a \"-y\" flag to automatically install the alias since composer does not support interactive scripts. This does not add the script to existing projects, but I think that is not necessary since it is really only a one-time thing.","created_at":"2016-08-25T15:39:12Z","updated_at":"2016-09-09T12:47:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5e0f604c8cdd69bb295f16f0765f9282c00f4f6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/acquia/blt/pulls/328/commits","review_comments_url":"https://api.github.com/repos/acquia/blt/pulls/328/comments","review_comment_url":"https://api.github.com/repos/acquia/blt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acquia/blt/issues/328/comments","statuses_url":"https://api.github.com/repos/acquia/blt/statuses/98514544085ee1e70302dbbdab5d0475a37458e8","head":{"label":"pixlkat:auto-install-blt-alias","ref":"auto-install-blt-alias","sha":"98514544085ee1e70302dbbdab5d0475a37458e8","user":{"login":"pixlkat","id":8460082,"avatar_url":"https://avatars.githubusercontent.com/u/8460082?v=3","gravatar_id":"","url":"https://api.github.com/users/pixlkat","html_url":"https://github.com/pixlkat","followers_url":"https://api.github.com/users/pixlkat/followers","following_url":"https://api.github.com/users/pixlkat/following{/other_user}","gists_url":"https://api.github.com/users/pixlkat/gists{/gist_id}","starred_url":"https://api.github.com/users/pixlkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixlkat/subscriptions","organizations_url":"https://api.github.com/users/pixlkat/orgs","repos_url":"https://api.github.com/users/pixlkat/repos","events_url":"https://api.github.com/users/pixlkat/events{/privacy}","received_events_url":"https://api.github.com/users/pixlkat/received_events","type":"User","site_admin":false},"repo":{"id":63700014,"name":"blt","full_name":"pixlkat/blt","owner":{"login":"pixlkat","id":8460082,"avatar_url":"https://avatars.githubusercontent.com/u/8460082?v=3","gravatar_id":"","url":"https://api.github.com/users/pixlkat","html_url":"https://github.com/pixlkat","followers_url":"https://api.github.com/users/pixlkat/followers","following_url":"https://api.github.com/users/pixlkat/following{/other_user}","gists_url":"https://api.github.com/users/pixlkat/gists{/gist_id}","starred_url":"https://api.github.com/users/pixlkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixlkat/subscriptions","organizations_url":"https://api.github.com/users/pixlkat/orgs","repos_url":"https://api.github.com/users/pixlkat/repos","events_url":"https://api.github.com/users/pixlkat/events{/privacy}","received_events_url":"https://api.github.com/users/pixlkat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pixlkat/blt","description":"BLT is a tool that generates new Drupal projects using a standardized template derived from Acquia Professional Services' best practices.","fork":true,"url":"https://api.github.com/repos/pixlkat/blt","forks_url":"https://api.github.com/repos/pixlkat/blt/forks","keys_url":"https://api.github.com/repos/pixlkat/blt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pixlkat/blt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pixlkat/blt/teams","hooks_url":"https://api.github.com/repos/pixlkat/blt/hooks","issue_events_url":"https://api.github.com/repos/pixlkat/blt/issues/events{/number}","events_url":"https://api.github.com/repos/pixlkat/blt/events","assignees_url":"https://api.github.com/repos/pixlkat/blt/assignees{/user}","branches_url":"https://api.github.com/repos/pixlkat/blt/branches{/branch}","tags_url":"https://api.github.com/repos/pixlkat/blt/tags","blobs_url":"https://api.github.com/repos/pixlkat/blt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pixlkat/blt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pixlkat/blt/git/refs{/sha}","trees_url":"https://api.github.com/repos/pixlkat/blt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pixlkat/blt/statuses/{sha}","languages_url":"https://api.github.com/repos/pixlkat/blt/languages","stargazers_url":"https://api.github.com/repos/pixlkat/blt/stargazers","contributors_url":"https://api.github.com/repos/pixlkat/blt/contributors","subscribers_url":"https://api.github.com/repos/pixlkat/blt/subscribers","subscription_url":"https://api.github.com/repos/pixlkat/blt/subscription","commits_url":"https://api.github.com/repos/pixlkat/blt/commits{/sha}","git_commits_url":"https://api.github.com/repos/pixlkat/blt/git/commits{/sha}","comments_url":"https://api.github.com/repos/pixlkat/blt/comments{/number}","issue_comment_url":"https://api.github.com/repos/pixlkat/blt/issues/comments{/number}","contents_url":"https://api.github.com/repos/pixlkat/blt/contents/{+path}","compare_url":"https://api.github.com/repos/pixlkat/blt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pixlkat/blt/merges","archive_url":"https://api.github.com/repos/pixlkat/blt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pixlkat/blt/downloads","issues_url":"https://api.github.com/repos/pixlkat/blt/issues{/number}","pulls_url":"https://api.github.com/repos/pixlkat/blt/pulls{/number}","milestones_url":"https://api.github.com/repos/pixlkat/blt/milestones{/number}","notifications_url":"https://api.github.com/repos/pixlkat/blt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pixlkat/blt/labels{/name}","releases_url":"https://api.github.com/repos/pixlkat/blt/releases{/id}","deployments_url":"https://api.github.com/repos/pixlkat/blt/deployments","created_at":"2016-07-19T14:18:53Z","updated_at":"2016-07-19T14:18:54Z","pushed_at":"2016-08-25T15:32:29Z","git_url":"git://github.com/pixlkat/blt.git","ssh_url":"git@github.com:pixlkat/blt.git","clone_url":"https://github.com/pixlkat/blt.git","svn_url":"https://github.com/pixlkat/blt","homepage":"","size":630,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"8.x"}},"base":{"label":"acquia:8.x","ref":"8.x","sha":"827af6e0d9644fe3f6c94aec45ba6adf670beb18","user":{"login":"acquia","id":514789,"avatar_url":"https://avatars.githubusercontent.com/u/514789?v=3","gravatar_id":"","url":"https://api.github.com/users/acquia","html_url":"https://github.com/acquia","followers_url":"https://api.github.com/users/acquia/followers","following_url":"https://api.github.com/users/acquia/following{/other_user}","gists_url":"https://api.github.com/users/acquia/gists{/gist_id}","starred_url":"https://api.github.com/users/acquia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquia/subscriptions","organizations_url":"https://api.github.com/users/acquia/orgs","repos_url":"https://api.github.com/users/acquia/repos","events_url":"https://api.github.com/users/acquia/events{/privacy}","received_events_url":"https://api.github.com/users/acquia/received_events","type":"Organization","site_admin":false},"repo":{"id":57239027,"name":"blt","full_name":"acquia/blt","owner":{"login":"acquia","id":514789,"avatar_url":"https://avatars.githubusercontent.com/u/514789?v=3","gravatar_id":"","url":"https://api.github.com/users/acquia","html_url":"https://github.com/acquia","followers_url":"https://api.github.com/users/acquia/followers","following_url":"https://api.github.com/users/acquia/following{/other_user}","gists_url":"https://api.github.com/users/acquia/gists{/gist_id}","starred_url":"https://api.github.com/users/acquia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquia/subscriptions","organizations_url":"https://api.github.com/users/acquia/orgs","repos_url":"https://api.github.com/users/acquia/repos","events_url":"https://api.github.com/users/acquia/events{/privacy}","received_events_url":"https://api.github.com/users/acquia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acquia/blt","description":"BLT is a tool that generates new Drupal projects using a standardized template derived from Acquia Professional Services' best practices.","fork":false,"url":"https://api.github.com/repos/acquia/blt","forks_url":"https://api.github.com/repos/acquia/blt/forks","keys_url":"https://api.github.com/repos/acquia/blt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acquia/blt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acquia/blt/teams","hooks_url":"https://api.github.com/repos/acquia/blt/hooks","issue_events_url":"https://api.github.com/repos/acquia/blt/issues/events{/number}","events_url":"https://api.github.com/repos/acquia/blt/events","assignees_url":"https://api.github.com/repos/acquia/blt/assignees{/user}","branches_url":"https://api.github.com/repos/acquia/blt/branches{/branch}","tags_url":"https://api.github.com/repos/acquia/blt/tags","blobs_url":"https://api.github.com/repos/acquia/blt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acquia/blt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acquia/blt/git/refs{/sha}","trees_url":"https://api.github.com/repos/acquia/blt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acquia/blt/statuses/{sha}","languages_url":"https://api.github.com/repos/acquia/blt/languages","stargazers_url":"https://api.github.com/repos/acquia/blt/stargazers","contributors_url":"https://api.github.com/repos/acquia/blt/contributors","subscribers_url":"https://api.github.com/repos/acquia/blt/subscribers","subscription_url":"https://api.github.com/repos/acquia/blt/subscription","commits_url":"https://api.github.com/repos/acquia/blt/commits{/sha}","git_commits_url":"https://api.github.com/repos/acquia/blt/git/commits{/sha}","comments_url":"https://api.github.com/repos/acquia/blt/comments{/number}","issue_comment_url":"https://api.github.com/repos/acquia/blt/issues/comments{/number}","contents_url":"https://api.github.com/repos/acquia/blt/contents/{+path}","compare_url":"https://api.github.com/repos/acquia/blt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acquia/blt/merges","archive_url":"https://api.github.com/repos/acquia/blt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acquia/blt/downloads","issues_url":"https://api.github.com/repos/acquia/blt/issues{/number}","pulls_url":"https://api.github.com/repos/acquia/blt/pulls{/number}","milestones_url":"https://api.github.com/repos/acquia/blt/milestones{/number}","notifications_url":"https://api.github.com/repos/acquia/blt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acquia/blt/labels{/name}","releases_url":"https://api.github.com/repos/acquia/blt/releases{/id}","deployments_url":"https://api.github.com/repos/acquia/blt/deployments","created_at":"2016-04-27T19:04:48Z","updated_at":"2016-09-08T13:24:04Z","pushed_at":"2016-09-09T01:45:30Z","git_url":"git://github.com/acquia/blt.git","ssh_url":"git@github.com:acquia/blt.git","clone_url":"https://github.com/acquia/blt.git","svn_url":"https://github.com/acquia/blt","homepage":"","size":1613,"stargazers_count":96,"watchers_count":96,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":17,"forks":61,"open_issues":17,"watchers":96,"default_branch":"8.x"}},"_links":{"self":{"href":"https://api.github.com/repos/acquia/blt/pulls/328"},"html":{"href":"https://github.com/acquia/blt/pull/328"},"issue":{"href":"https://api.github.com/repos/acquia/blt/issues/328"},"comments":{"href":"https://api.github.com/repos/acquia/blt/issues/328/comments"},"review_comments":{"href":"https://api.github.com/repos/acquia/blt/pulls/328/comments"},"review_comment":{"href":"https://api.github.com/repos/acquia/blt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acquia/blt/pulls/328/commits"},"statuses":{"href":"https://api.github.com/repos/acquia/blt/statuses/98514544085ee1e70302dbbdab5d0475a37458e8"}}}}
{"actor":{"display_login":"grasmash"}}