{"action":"created","comment":{"url":"https://api.github.com/repos/shopsys/shopsys/pulls/comments/298936248","pull_request_review_id":256201213,"id":298936248,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5ODkzNjI0OA==","diff_hunk":"@@ -0,0 +1,81 @@\n+#!/bin/bash -e\n+\n+INSTALL_DIR=\"$( cd \"$(dirname \"$0\")\" ; pwd -P )\"\n+PROJECT_BASE_PATH=`[ -d \"$PWD/project-base\" ] && echo \"$PWD/project-base\" || echo \"$PWD\"`\n+\n+## TODO check that the ${PROJECT_BASE_PATH} is correct project-base\n+\n+echo \"Copying FOS REST configuration...\"\n+cp ${INSTALL_DIR}/app/config/packages/fos_rest.yml ${PROJECT_BASE_PATH}/app/config/packages/fos_rest.yml\n+echo \"Done\"\n+\n+echo \"Copying OAuth2 configuration...\"\n+cp ${INSTALL_DIR}/app/config/packages/trikoder_oauth2.yml ${PROJECT_BASE_PATH}/app/config/packages/trikoder_oauth2.yml\n+mkdir -p ${PROJECT_BASE_PATH}/app/config/packages/oauth2\n+cp ${INSTALL_DIR}/app/config/packages/oauth2/.gitignore ${PROJECT_BASE_PATH}/app/config/packages/oauth2/.gitignore\n+cp ${INSTALL_DIR}/app/config/packages/oauth2/parameters_oauth.yml.dist ${PROJECT_BASE_PATH}/app/config/packages/oauth2/parameters_oauth.yml.dist\n+echo \"Done\"\n+\n+echo \"Creating directory src/Shopsys/ShopBundle/Controller/Api/V1...\"\n+mkdir -p ${PROJECT_BASE_PATH}/src/Shopsys/ShopBundle/Controller/Api/V1\n+touch ${PROJECT_BASE_PATH}/src/Shopsys/ShopBundle/Controller/Api/V1/.gitkeep\n+echo \"Done\"\n+\n+echo \"Copying tests...\"\n+cp ${INSTALL_DIR}/tests/ShopBundle/Smoke/BackendApiTest.php ${PROJECT_BASE_PATH}/tests/ShopBundle/Smoke/BackendApiTest.php\n+cp ${INSTALL_DIR}/tests/ShopBundle/Test/OauthTestCase.php ${PROJECT_BASE_PATH}/tests/ShopBundle/Test/OauthTestCase.php\n+echo \"Done\"\n+\n+function apply_patch () {\n+    if [ -z $1 ]\n+    then\n+        echo \"Please provide path as first parameter of apply_patch function\"\n+        exit 1\n+    fi\n+    \n+    local FILE_PATH=$1\n+    local SOURCE_FILE_PATH=$1\n+\n+    if [ ! -z $2 ]\n+    then\n+        SOURCE_FILE_PATH=$2\n+    fi\n+\n+    echo \"Applying patch for ${FILE_PATH}...\"\n+    local PATCH_DRY_RUN=`patch -st --dry-run ${PROJECT_BASE_PATH}/${FILE_PATH} ${INSTALL_DIR}/${SOURCE_FILE_PATH}.patch`\n+    local PATCH_REVERSED=`grep \"Reversed\" <<< ${PATCH_DRY_RUN}`\n+    local PATCH_FAIL=`grep \"FAILED\" <<< ${PATCH_DRY_RUN}`\n+\n+    if [ ! -z \"${PATCH_REVERSED}\" ]\n+    then\n+        echo \"Applied patch detected: patch for ${FILE_PATH} already applied. Doing nothing\"\n+    elif [ ! -z \"${PATCH_FAIL}\" ]\n+    then\n+        echo ${PATCH_FAIL}","path":"packages/backend-api/install/install.sh","position":70,"original_position":54,"commit_id":"72194651fd54f4ffb86878792cab0bcdfca2491a","original_commit_id":"7838a56ab77f39a393aa680c2ed3a590902c82f6","user":{"login":"grossmannmartin","id":1177414,"node_id":"MDQ6VXNlcjExNzc0MTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1177414?v=4","gravatar_id":"","url":"https://api.github.com/users/grossmannmartin","html_url":"https://github.com/grossmannmartin","followers_url":"https://api.github.com/users/grossmannmartin/followers","following_url":"https://api.github.com/users/grossmannmartin/following{/other_user}","gists_url":"https://api.github.com/users/grossmannmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/grossmannmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grossmannmartin/subscriptions","organizations_url":"https://api.github.com/users/grossmannmartin/orgs","repos_url":"https://api.github.com/users/grossmannmartin/repos","events_url":"https://api.github.com/users/grossmannmartin/events{/privacy}","received_events_url":"https://api.github.com/users/grossmannmartin/received_events","type":"User","site_admin":false},"body":"Okay.","created_at":"2019-07-01T08:39:51Z","updated_at":"2019-07-01T08:39:51Z","html_url":"https://github.com/shopsys/shopsys/pull/1155#discussion_r298936248","pull_request_url":"https://api.github.com/repos/shopsys/shopsys/pulls/1155","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/shopsys/shopsys/pulls/comments/298936248"},"html":{"href":"https://github.com/shopsys/shopsys/pull/1155#discussion_r298936248"},"pull_request":{"href":"https://api.github.com/repos/shopsys/shopsys/pulls/1155"}},"in_reply_to_id":298123785},"pull_request":{"url":"https://api.github.com/repos/shopsys/shopsys/pulls/1155","id":291415149,"node_id":"MDExOlB1bGxSZXF1ZXN0MjkxNDE1MTQ5","html_url":"https://github.com/shopsys/shopsys/pull/1155","diff_url":"https://github.com/shopsys/shopsys/pull/1155.diff","patch_url":"https://github.com/shopsys/shopsys/pull/1155.patch","issue_url":"https://api.github.com/repos/shopsys/shopsys/issues/1155","number":1155,"state":"open","locked":false,"title":"[shopsys] separated backend API from default project-base","user":{"login":"simara-svatopluk","id":1669982,"node_id":"MDQ6VXNlcjE2Njk5ODI=","avatar_url":"https://avatars3.githubusercontent.com/u/1669982?v=4","gravatar_id":"","url":"https://api.github.com/users/simara-svatopluk","html_url":"https://github.com/simara-svatopluk","followers_url":"https://api.github.com/users/simara-svatopluk/followers","following_url":"https://api.github.com/users/simara-svatopluk/following{/other_user}","gists_url":"https://api.github.com/users/simara-svatopluk/gists{/gist_id}","starred_url":"https://api.github.com/users/simara-svatopluk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simara-svatopluk/subscriptions","organizations_url":"https://api.github.com/users/simara-svatopluk/orgs","repos_url":"https://api.github.com/users/simara-svatopluk/repos","events_url":"https://api.github.com/users/simara-svatopluk/events{/privacy}","received_events_url":"https://api.github.com/users/simara-svatopluk/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n|Description, reason for the PR| Not all projects needs backend API, so the backend API is not part of the project-base by default and is easily installable\r\n|New feature| Yes\r\n|[BC breaks](https://github.com/shopsys/shopsys/blob/master/docs/contributing/backward-compatibility-promise.md)| Yes\r\n|Fixes issues| ... <!-- Write \"closes #123\" for the issue to be closed automatically during merge -->\r\n|Have you read and signed our [License Agreement for contributions](https://www.shopsys.com/license-agreement)?| Yes\r\n","created_at":"2019-06-25T07:03:22Z","updated_at":"2019-07-01T08:39:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93d1f5a2fef72034bb146ec4ddcb3e06b461f628","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/shopsys/shopsys/pulls/1155/commits","review_comments_url":"https://api.github.com/repos/shopsys/shopsys/pulls/1155/comments","review_comment_url":"https://api.github.com/repos/shopsys/shopsys/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shopsys/shopsys/issues/1155/comments","statuses_url":"https://api.github.com/repos/shopsys/shopsys/statuses/72194651fd54f4ffb86878792cab0bcdfca2491a","head":{"label":"shopsys:ss-api-separated-from-default-project-base","ref":"ss-api-separated-from-default-project-base","sha":"72194651fd54f4ffb86878792cab0bcdfca2491a","user":{"login":"shopsys","id":17828168,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3ODI4MTY4","avatar_url":"https://avatars3.githubusercontent.com/u/17828168?v=4","gravatar_id":"","url":"https://api.github.com/users/shopsys","html_url":"https://github.com/shopsys","followers_url":"https://api.github.com/users/shopsys/followers","following_url":"https://api.github.com/users/shopsys/following{/other_user}","gists_url":"https://api.github.com/users/shopsys/gists{/gist_id}","starred_url":"https://api.github.com/users/shopsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopsys/subscriptions","organizations_url":"https://api.github.com/users/shopsys/orgs","repos_url":"https://api.github.com/users/shopsys/repos","events_url":"https://api.github.com/users/shopsys/events{/privacy}","received_events_url":"https://api.github.com/users/shopsys/received_events","type":"Organization","site_admin":false},"repo":{"id":119832166,"node_id":"MDEwOlJlcG9zaXRvcnkxMTk4MzIxNjY=","name":"shopsys","full_name":"shopsys/shopsys","private":false,"owner":{"login":"shopsys","id":17828168,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3ODI4MTY4","avatar_url":"https://avatars3.githubusercontent.com/u/17828168?v=4","gravatar_id":"","url":"https://api.github.com/users/shopsys","html_url":"https://github.com/shopsys","followers_url":"https://api.github.com/users/shopsys/followers","following_url":"https://api.github.com/users/shopsys/following{/other_user}","gists_url":"https://api.github.com/users/shopsys/gists{/gist_id}","starred_url":"https://api.github.com/users/shopsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopsys/subscriptions","organizations_url":"https://api.github.com/users/shopsys/orgs","repos_url":"https://api.github.com/users/shopsys/repos","events_url":"https://api.github.com/users/shopsys/events{/privacy}","received_events_url":"https://api.github.com/users/shopsys/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/shopsys/shopsys","description":"Main repository for maintaining Shopsys Framework packages. Open for ISSUES and PULL REQUESTS. ","fork":false,"url":"https://api.github.com/repos/shopsys/shopsys","forks_url":"https://api.github.com/repos/shopsys/shopsys/forks","keys_url":"https://api.github.com/repos/shopsys/shopsys/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shopsys/shopsys/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shopsys/shopsys/teams","hooks_url":"https://api.github.com/repos/shopsys/shopsys/hooks","issue_events_url":"https://api.github.com/repos/shopsys/shopsys/issues/events{/number}","events_url":"https://api.github.com/repos/shopsys/shopsys/events","assignees_url":"https://api.github.com/repos/shopsys/shopsys/assignees{/user}","branches_url":"https://api.github.com/repos/shopsys/shopsys/branches{/branch}","tags_url":"https://api.github.com/repos/shopsys/shopsys/tags","blobs_url":"https://api.github.com/repos/shopsys/shopsys/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shopsys/shopsys/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shopsys/shopsys/git/refs{/sha}","trees_url":"https://api.github.com/repos/shopsys/shopsys/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shopsys/shopsys/statuses/{sha}","languages_url":"https://api.github.com/repos/shopsys/shopsys/languages","stargazers_url":"https://api.github.com/repos/shopsys/shopsys/stargazers","contributors_url":"https://api.github.com/repos/shopsys/shopsys/contributors","subscribers_url":"https://api.github.com/repos/shopsys/shopsys/subscribers","subscription_url":"https://api.github.com/repos/shopsys/shopsys/subscription","commits_url":"https://api.github.com/repos/shopsys/shopsys/commits{/sha}","git_commits_url":"https://api.github.com/repos/shopsys/shopsys/git/commits{/sha}","comments_url":"https://api.github.com/repos/shopsys/shopsys/comments{/number}","issue_comment_url":"https://api.github.com/repos/shopsys/shopsys/issues/comments{/number}","contents_url":"https://api.github.com/repos/shopsys/shopsys/contents/{+path}","compare_url":"https://api.github.com/repos/shopsys/shopsys/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shopsys/shopsys/merges","archive_url":"https://api.github.com/repos/shopsys/shopsys/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shopsys/shopsys/downloads","issues_url":"https://api.github.com/repos/shopsys/shopsys/issues{/number}","pulls_url":"https://api.github.com/repos/shopsys/shopsys/pulls{/number}","milestones_url":"https://api.github.com/repos/shopsys/shopsys/milestones{/number}","notifications_url":"https://api.github.com/repos/shopsys/shopsys/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shopsys/shopsys/labels{/name}","releases_url":"https://api.github.com/repos/shopsys/shopsys/releases{/id}","deployments_url":"https://api.github.com/repos/shopsys/shopsys/deployments","created_at":"2018-02-01T12:21:09Z","updated_at":"2019-06-28T12:38:36Z","pushed_at":"2019-07-01T08:27:17Z","git_url":"git://github.com/shopsys/shopsys.git","ssh_url":"git@github.com:shopsys/shopsys.git","clone_url":"https://github.com/shopsys/shopsys.git","svn_url":"https://github.com/shopsys/shopsys","homepage":"https://www.shopsys.com","size":49229,"stargazers_count":190,"watchers_count":190,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":48,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":151,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":48,"open_issues":151,"watchers":190,"default_branch":"master"}},"base":{"label":"shopsys:8.0","ref":"8.0","sha":"ef87f89a8ecd4185463c294f360fe2e98f1a5635","user":{"login":"shopsys","id":17828168,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3ODI4MTY4","avatar_url":"https://avatars3.githubusercontent.com/u/17828168?v=4","gravatar_id":"","url":"https://api.github.com/users/shopsys","html_url":"https://github.com/shopsys","followers_url":"https://api.github.com/users/shopsys/followers","following_url":"https://api.github.com/users/shopsys/following{/other_user}","gists_url":"https://api.github.com/users/shopsys/gists{/gist_id}","starred_url":"https://api.github.com/users/shopsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopsys/subscriptions","organizations_url":"https://api.github.com/users/shopsys/orgs","repos_url":"https://api.github.com/users/shopsys/repos","events_url":"https://api.github.com/users/shopsys/events{/privacy}","received_events_url":"https://api.github.com/users/shopsys/received_events","type":"Organization","site_admin":false},"repo":{"id":119832166,"node_id":"MDEwOlJlcG9zaXRvcnkxMTk4MzIxNjY=","name":"shopsys","full_name":"shopsys/shopsys","private":false,"owner":{"login":"shopsys","id":17828168,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3ODI4MTY4","avatar_url":"https://avatars3.githubusercontent.com/u/17828168?v=4","gravatar_id":"","url":"https://api.github.com/users/shopsys","html_url":"https://github.com/shopsys","followers_url":"https://api.github.com/users/shopsys/followers","following_url":"https://api.github.com/users/shopsys/following{/other_user}","gists_url":"https://api.github.com/users/shopsys/gists{/gist_id}","starred_url":"https://api.github.com/users/shopsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopsys/subscriptions","organizations_url":"https://api.github.com/users/shopsys/orgs","repos_url":"https://api.github.com/users/shopsys/repos","events_url":"https://api.github.com/users/shopsys/events{/privacy}","received_events_url":"https://api.github.com/users/shopsys/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/shopsys/shopsys","description":"Main repository for maintaining Shopsys Framework packages. Open for ISSUES and PULL REQUESTS. ","fork":false,"url":"https://api.github.com/repos/shopsys/shopsys","forks_url":"https://api.github.com/repos/shopsys/shopsys/forks","keys_url":"https://api.github.com/repos/shopsys/shopsys/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shopsys/shopsys/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shopsys/shopsys/teams","hooks_url":"https://api.github.com/repos/shopsys/shopsys/hooks","issue_events_url":"https://api.github.com/repos/shopsys/shopsys/issues/events{/number}","events_url":"https://api.github.com/repos/shopsys/shopsys/events","assignees_url":"https://api.github.com/repos/shopsys/shopsys/assignees{/user}","branches_url":"https://api.github.com/repos/shopsys/shopsys/branches{/branch}","tags_url":"https://api.github.com/repos/shopsys/shopsys/tags","blobs_url":"https://api.github.com/repos/shopsys/shopsys/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shopsys/shopsys/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shopsys/shopsys/git/refs{/sha}","trees_url":"https://api.github.com/repos/shopsys/shopsys/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shopsys/shopsys/statuses/{sha}","languages_url":"https://api.github.com/repos/shopsys/shopsys/languages","stargazers_url":"https://api.github.com/repos/shopsys/shopsys/stargazers","contributors_url":"https://api.github.com/repos/shopsys/shopsys/contributors","subscribers_url":"https://api.github.com/repos/shopsys/shopsys/subscribers","subscription_url":"https://api.github.com/repos/shopsys/shopsys/subscription","commits_url":"https://api.github.com/repos/shopsys/shopsys/commits{/sha}","git_commits_url":"https://api.github.com/repos/shopsys/shopsys/git/commits{/sha}","comments_url":"https://api.github.com/repos/shopsys/shopsys/comments{/number}","issue_comment_url":"https://api.github.com/repos/shopsys/shopsys/issues/comments{/number}","contents_url":"https://api.github.com/repos/shopsys/shopsys/contents/{+path}","compare_url":"https://api.github.com/repos/shopsys/shopsys/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shopsys/shopsys/merges","archive_url":"https://api.github.com/repos/shopsys/shopsys/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shopsys/shopsys/downloads","issues_url":"https://api.github.com/repos/shopsys/shopsys/issues{/number}","pulls_url":"https://api.github.com/repos/shopsys/shopsys/pulls{/number}","milestones_url":"https://api.github.com/repos/shopsys/shopsys/milestones{/number}","notifications_url":"https://api.github.com/repos/shopsys/shopsys/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shopsys/shopsys/labels{/name}","releases_url":"https://api.github.com/repos/shopsys/shopsys/releases{/id}","deployments_url":"https://api.github.com/repos/shopsys/shopsys/deployments","created_at":"2018-02-01T12:21:09Z","updated_at":"2019-06-28T12:38:36Z","pushed_at":"2019-07-01T08:27:17Z","git_url":"git://github.com/shopsys/shopsys.git","ssh_url":"git@github.com:shopsys/shopsys.git","clone_url":"https://github.com/shopsys/shopsys.git","svn_url":"https://github.com/shopsys/shopsys","homepage":"https://www.shopsys.com","size":49229,"stargazers_count":190,"watchers_count":190,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":48,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":151,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":48,"open_issues":151,"watchers":190,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shopsys/shopsys/pulls/1155"},"html":{"href":"https://github.com/shopsys/shopsys/pull/1155"},"issue":{"href":"https://api.github.com/repos/shopsys/shopsys/issues/1155"},"comments":{"href":"https://api.github.com/repos/shopsys/shopsys/issues/1155/comments"},"review_comments":{"href":"https://api.github.com/repos/shopsys/shopsys/pulls/1155/comments"},"review_comment":{"href":"https://api.github.com/repos/shopsys/shopsys/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shopsys/shopsys/pulls/1155/commits"},"statuses":{"href":"https://api.github.com/repos/shopsys/shopsys/statuses/72194651fd54f4ffb86878792cab0bcdfca2491a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"grossmannmartin"}}