{"action":"created","comment":{"url":"https://api.github.com/repos/AGILEDROP/create-project/pulls/comments/70040491","id":70040491,"diff_hunk":"@@ -141,7 +144,34 @@ while [ -z \"$PROJECT_NAME\" ]; do\n done\n # Ask for the project environment if not specified in the arguments\n while [ -z \"$PROJECT_ENV\" ]; do\n-\tread -p \"Enter your project environment [dev]/[prod]: \" PROJECT_ENV\n+\tread -p \"Enter your project environment [DEV]/[prod]: \" PROJECT_ENV\n+\tif [ -z $PROJECT_ENV ]; then\t# If the user presses enter choose the default environment \"dev\"\n+\t\tPROJECT_ENV=\"dev\"\n+\tfi\n+\tPROJECT_ENV=${PROJECT_ENV,,} # Make the input lower case\n+\twhile [ \"$PROJECT_ENV\" != \"prod\" ] && [ \"$PROJECT_ENV\" != \"dev\" ]; do  # Chech if the input is correct\n+\t\tread -p \"Enter your project environment [DEV]/[prod]): \" PROJECT_ENV\n+\t\tif [ -z $PROJECT_ENV ]; then\t# If the user presses enter choose the default environment \"dev\"\n+\t\t\tPROJECT_ENV=\"dev\"\n+\t\tfi\n+\t\tPROJECT_ENV=${PROJECT_ENV,,} # Make the input lower case\n+\tdone\n+done\n+\n+# Ask for jenkins usage\n+while [ -z \"$JENKINS\" ]; do","path":"create-project.sh","position":46,"original_position":37,"commit_id":"4012b11246a3b6622ed0660894f13439f40f1615","original_commit_id":"4012b11246a3b6622ed0660894f13439f40f1615","user":{"login":"jzavrl","id":4910773,"avatar_url":"https://avatars.githubusercontent.com/u/4910773?v=3","gravatar_id":"","url":"https://api.github.com/users/jzavrl","html_url":"https://github.com/jzavrl","followers_url":"https://api.github.com/users/jzavrl/followers","following_url":"https://api.github.com/users/jzavrl/following{/other_user}","gists_url":"https://api.github.com/users/jzavrl/gists{/gist_id}","starred_url":"https://api.github.com/users/jzavrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzavrl/subscriptions","organizations_url":"https://api.github.com/users/jzavrl/orgs","repos_url":"https://api.github.com/users/jzavrl/repos","events_url":"https://api.github.com/users/jzavrl/events{/privacy}","received_events_url":"https://api.github.com/users/jzavrl/received_events","type":"User","site_admin":false},"body":"We can only use the drupal-permissions.sh script if we have the realpath package installed. So I would wrap this part where it asks for Jenkins in an IF statement to check if the package exists. I think something like \"dpkg -l {package_name}\" should do it.","created_at":"2016-07-08T08:20:31Z","updated_at":"2016-07-08T08:20:31Z","html_url":"https://github.com/AGILEDROP/create-project/pull/2#discussion_r70040491","pull_request_url":"https://api.github.com/repos/AGILEDROP/create-project/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/AGILEDROP/create-project/pulls/comments/70040491"},"html":{"href":"https://github.com/AGILEDROP/create-project/pull/2#discussion_r70040491"},"pull_request":{"href":"https://api.github.com/repos/AGILEDROP/create-project/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/AGILEDROP/create-project/pulls/2","id":76587889,"html_url":"https://github.com/AGILEDROP/create-project/pull/2","diff_url":"https://github.com/AGILEDROP/create-project/pull/2.diff","patch_url":"https://github.com/AGILEDROP/create-project/pull/2.patch","issue_url":"https://api.github.com/repos/AGILEDROP/create-project/issues/2","number":2,"state":"open","locked":false,"title":"Added environment argument","user":{"login":"alecsmrekar","id":20174058,"avatar_url":"https://avatars.githubusercontent.com/u/20174058?v=3","gravatar_id":"","url":"https://api.github.com/users/alecsmrekar","html_url":"https://github.com/alecsmrekar","followers_url":"https://api.github.com/users/alecsmrekar/followers","following_url":"https://api.github.com/users/alecsmrekar/following{/other_user}","gists_url":"https://api.github.com/users/alecsmrekar/gists{/gist_id}","starred_url":"https://api.github.com/users/alecsmrekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecsmrekar/subscriptions","organizations_url":"https://api.github.com/users/alecsmrekar/orgs","repos_url":"https://api.github.com/users/alecsmrekar/repos","events_url":"https://api.github.com/users/alecsmrekar/events{/privacy}","received_events_url":"https://api.github.com/users/alecsmrekar/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-07T12:39:52Z","updated_at":"2016-07-08T08:20:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"460337dd2b1879d1d54a4885967a3a0573f1e1c2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AGILEDROP/create-project/pulls/2/commits","review_comments_url":"https://api.github.com/repos/AGILEDROP/create-project/pulls/2/comments","review_comment_url":"https://api.github.com/repos/AGILEDROP/create-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AGILEDROP/create-project/issues/2/comments","statuses_url":"https://api.github.com/repos/AGILEDROP/create-project/statuses/4012b11246a3b6622ed0660894f13439f40f1615","head":{"label":"alecsmrekar:master","ref":"master","sha":"4012b11246a3b6622ed0660894f13439f40f1615","user":{"login":"alecsmrekar","id":20174058,"avatar_url":"https://avatars.githubusercontent.com/u/20174058?v=3","gravatar_id":"","url":"https://api.github.com/users/alecsmrekar","html_url":"https://github.com/alecsmrekar","followers_url":"https://api.github.com/users/alecsmrekar/followers","following_url":"https://api.github.com/users/alecsmrekar/following{/other_user}","gists_url":"https://api.github.com/users/alecsmrekar/gists{/gist_id}","starred_url":"https://api.github.com/users/alecsmrekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecsmrekar/subscriptions","organizations_url":"https://api.github.com/users/alecsmrekar/orgs","repos_url":"https://api.github.com/users/alecsmrekar/repos","events_url":"https://api.github.com/users/alecsmrekar/events{/privacy}","received_events_url":"https://api.github.com/users/alecsmrekar/received_events","type":"User","site_admin":false},"repo":{"id":62555607,"name":"create-project","full_name":"alecsmrekar/create-project","owner":{"login":"alecsmrekar","id":20174058,"avatar_url":"https://avatars.githubusercontent.com/u/20174058?v=3","gravatar_id":"","url":"https://api.github.com/users/alecsmrekar","html_url":"https://github.com/alecsmrekar","followers_url":"https://api.github.com/users/alecsmrekar/followers","following_url":"https://api.github.com/users/alecsmrekar/following{/other_user}","gists_url":"https://api.github.com/users/alecsmrekar/gists{/gist_id}","starred_url":"https://api.github.com/users/alecsmrekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecsmrekar/subscriptions","organizations_url":"https://api.github.com/users/alecsmrekar/orgs","repos_url":"https://api.github.com/users/alecsmrekar/repos","events_url":"https://api.github.com/users/alecsmrekar/events{/privacy}","received_events_url":"https://api.github.com/users/alecsmrekar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alecsmrekar/create-project","description":"Bash script for quickly creating a new Drupal project","fork":true,"url":"https://api.github.com/repos/alecsmrekar/create-project","forks_url":"https://api.github.com/repos/alecsmrekar/create-project/forks","keys_url":"https://api.github.com/repos/alecsmrekar/create-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alecsmrekar/create-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alecsmrekar/create-project/teams","hooks_url":"https://api.github.com/repos/alecsmrekar/create-project/hooks","issue_events_url":"https://api.github.com/repos/alecsmrekar/create-project/issues/events{/number}","events_url":"https://api.github.com/repos/alecsmrekar/create-project/events","assignees_url":"https://api.github.com/repos/alecsmrekar/create-project/assignees{/user}","branches_url":"https://api.github.com/repos/alecsmrekar/create-project/branches{/branch}","tags_url":"https://api.github.com/repos/alecsmrekar/create-project/tags","blobs_url":"https://api.github.com/repos/alecsmrekar/create-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alecsmrekar/create-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alecsmrekar/create-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/alecsmrekar/create-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alecsmrekar/create-project/statuses/{sha}","languages_url":"https://api.github.com/repos/alecsmrekar/create-project/languages","stargazers_url":"https://api.github.com/repos/alecsmrekar/create-project/stargazers","contributors_url":"https://api.github.com/repos/alecsmrekar/create-project/contributors","subscribers_url":"https://api.github.com/repos/alecsmrekar/create-project/subscribers","subscription_url":"https://api.github.com/repos/alecsmrekar/create-project/subscription","commits_url":"https://api.github.com/repos/alecsmrekar/create-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/alecsmrekar/create-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/alecsmrekar/create-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/alecsmrekar/create-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/alecsmrekar/create-project/contents/{+path}","compare_url":"https://api.github.com/repos/alecsmrekar/create-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alecsmrekar/create-project/merges","archive_url":"https://api.github.com/repos/alecsmrekar/create-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alecsmrekar/create-project/downloads","issues_url":"https://api.github.com/repos/alecsmrekar/create-project/issues{/number}","pulls_url":"https://api.github.com/repos/alecsmrekar/create-project/pulls{/number}","milestones_url":"https://api.github.com/repos/alecsmrekar/create-project/milestones{/number}","notifications_url":"https://api.github.com/repos/alecsmrekar/create-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alecsmrekar/create-project/labels{/name}","releases_url":"https://api.github.com/repos/alecsmrekar/create-project/releases{/id}","deployments_url":"https://api.github.com/repos/alecsmrekar/create-project/deployments","created_at":"2016-07-04T11:00:33Z","updated_at":"2016-07-04T11:00:34Z","pushed_at":"2016-07-07T14:29:16Z","git_url":"git://github.com/alecsmrekar/create-project.git","ssh_url":"git@github.com:alecsmrekar/create-project.git","clone_url":"https://github.com/alecsmrekar/create-project.git","svn_url":"https://github.com/alecsmrekar/create-project","homepage":null,"size":10,"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":"AGILEDROP:master","ref":"master","sha":"d464b87d061d2f4cf8f34471bdde305c7f71a439","user":{"login":"AGILEDROP","id":10221535,"avatar_url":"https://avatars.githubusercontent.com/u/10221535?v=3","gravatar_id":"","url":"https://api.github.com/users/AGILEDROP","html_url":"https://github.com/AGILEDROP","followers_url":"https://api.github.com/users/AGILEDROP/followers","following_url":"https://api.github.com/users/AGILEDROP/following{/other_user}","gists_url":"https://api.github.com/users/AGILEDROP/gists{/gist_id}","starred_url":"https://api.github.com/users/AGILEDROP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AGILEDROP/subscriptions","organizations_url":"https://api.github.com/users/AGILEDROP/orgs","repos_url":"https://api.github.com/users/AGILEDROP/repos","events_url":"https://api.github.com/users/AGILEDROP/events{/privacy}","received_events_url":"https://api.github.com/users/AGILEDROP/received_events","type":"Organization","site_admin":false},"repo":{"id":33358435,"name":"create-project","full_name":"AGILEDROP/create-project","owner":{"login":"AGILEDROP","id":10221535,"avatar_url":"https://avatars.githubusercontent.com/u/10221535?v=3","gravatar_id":"","url":"https://api.github.com/users/AGILEDROP","html_url":"https://github.com/AGILEDROP","followers_url":"https://api.github.com/users/AGILEDROP/followers","following_url":"https://api.github.com/users/AGILEDROP/following{/other_user}","gists_url":"https://api.github.com/users/AGILEDROP/gists{/gist_id}","starred_url":"https://api.github.com/users/AGILEDROP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AGILEDROP/subscriptions","organizations_url":"https://api.github.com/users/AGILEDROP/orgs","repos_url":"https://api.github.com/users/AGILEDROP/repos","events_url":"https://api.github.com/users/AGILEDROP/events{/privacy}","received_events_url":"https://api.github.com/users/AGILEDROP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AGILEDROP/create-project","description":"Bash script for quickly creating a new Drupal project","fork":false,"url":"https://api.github.com/repos/AGILEDROP/create-project","forks_url":"https://api.github.com/repos/AGILEDROP/create-project/forks","keys_url":"https://api.github.com/repos/AGILEDROP/create-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AGILEDROP/create-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AGILEDROP/create-project/teams","hooks_url":"https://api.github.com/repos/AGILEDROP/create-project/hooks","issue_events_url":"https://api.github.com/repos/AGILEDROP/create-project/issues/events{/number}","events_url":"https://api.github.com/repos/AGILEDROP/create-project/events","assignees_url":"https://api.github.com/repos/AGILEDROP/create-project/assignees{/user}","branches_url":"https://api.github.com/repos/AGILEDROP/create-project/branches{/branch}","tags_url":"https://api.github.com/repos/AGILEDROP/create-project/tags","blobs_url":"https://api.github.com/repos/AGILEDROP/create-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AGILEDROP/create-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AGILEDROP/create-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/AGILEDROP/create-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AGILEDROP/create-project/statuses/{sha}","languages_url":"https://api.github.com/repos/AGILEDROP/create-project/languages","stargazers_url":"https://api.github.com/repos/AGILEDROP/create-project/stargazers","contributors_url":"https://api.github.com/repos/AGILEDROP/create-project/contributors","subscribers_url":"https://api.github.com/repos/AGILEDROP/create-project/subscribers","subscription_url":"https://api.github.com/repos/AGILEDROP/create-project/subscription","commits_url":"https://api.github.com/repos/AGILEDROP/create-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/AGILEDROP/create-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/AGILEDROP/create-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/AGILEDROP/create-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/AGILEDROP/create-project/contents/{+path}","compare_url":"https://api.github.com/repos/AGILEDROP/create-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AGILEDROP/create-project/merges","archive_url":"https://api.github.com/repos/AGILEDROP/create-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AGILEDROP/create-project/downloads","issues_url":"https://api.github.com/repos/AGILEDROP/create-project/issues{/number}","pulls_url":"https://api.github.com/repos/AGILEDROP/create-project/pulls{/number}","milestones_url":"https://api.github.com/repos/AGILEDROP/create-project/milestones{/number}","notifications_url":"https://api.github.com/repos/AGILEDROP/create-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AGILEDROP/create-project/labels{/name}","releases_url":"https://api.github.com/repos/AGILEDROP/create-project/releases{/id}","deployments_url":"https://api.github.com/repos/AGILEDROP/create-project/deployments","created_at":"2015-04-03T10:21:00Z","updated_at":"2016-02-10T09:55:38Z","pushed_at":"2016-07-07T14:29:16Z","git_url":"git://github.com/AGILEDROP/create-project.git","ssh_url":"git@github.com:AGILEDROP/create-project.git","clone_url":"https://github.com/AGILEDROP/create-project.git","svn_url":"https://github.com/AGILEDROP/create-project","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AGILEDROP/create-project/pulls/2"},"html":{"href":"https://github.com/AGILEDROP/create-project/pull/2"},"issue":{"href":"https://api.github.com/repos/AGILEDROP/create-project/issues/2"},"comments":{"href":"https://api.github.com/repos/AGILEDROP/create-project/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/AGILEDROP/create-project/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/AGILEDROP/create-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AGILEDROP/create-project/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/AGILEDROP/create-project/statuses/4012b11246a3b6622ed0660894f13439f40f1615"}}}}
{"actor":{"display_login":"jzavrl"}}