{"action":"created","comment":{"url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls/comments/193121485","pull_request_review_id":126030893,"id":193121485,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzEyMTQ4NQ==","diff_hunk":"@@ -1,33 +1,78 @@\n-# my-component\n+# Orchestrator Trigger\n \n-{\n-  \"parameters\": {\n-    \"#kbcToken\": \"STORAGE_API_TOKEN\",\n-    \"kbcUrl\": \"STORAGE_API_URL\",\n-    \"orchestrationId\": \"ORCHESTRATION_ID\",\n-    \"waitUntilFinish\": true\n-  }\n-}\n+[![Build Status](https://travis-ci.com/keboola/app-orchestrator-trigger.svg?branch=master)](https://travis-ci.com/keboola/app-orchestrator-trigger)\n+\n+This application allows run orchestration across different Keboola Connection projects.\n+\n+**Trigger has two modes:**\n+1) Only trigger external orchestration. Application ends when a new orchestration job is enqueued.\n+2) Wait until finish mode. Application waits until enqueued job is finished and check job for _success_ status.\n \n # Usage\n \n-> fill in usage instructions\n+First, create a new token in the KBC project with your orchestration. The token should have granted access for Orchestrator configurations.\n+Setup an comprehensible description for the token, like _\"Orchestration Trigger - Orchestration name\"_ etc.\n+\n+```\n+curl -X POST \\\n+     --header \"Content-Type: application/x-www-form-urlencoded\" \\\n+     --header \"X-StorageApi-Token: **STORAGE_API_TOKEN**\" \\\n+     --data-binary \"description=**NEW_TOKEN_DESCRIPTION**&componentAccess[]=orchestrator\" \\\n+'https://connection.keboola.com/v2/storage/tokens'\n+```\n+\n+Then you can setup the Orchestrator Trigger app.\n+\n+### Configuration options\n+\n+- `#kbcToken` - KBC Storage API token\n+- `kbcUrl` - KBC Storage API endpoint\n+    - https://connection.keboola.com for `US` stack\n+    - https://connection.eu-central-1.keboola.com for `EU` stack\n+- `orchestrationId` _(integer)_ - ID of triggered orchestration\n+- `waitUntilFinish` _(boolean, default false false)_ - Wait for job finish and check jobs status\n+\n+\n+\n+https://connection.keboola.com/admin/projects/{PROJECT_ID}/applications/keboola.app-orchestrator-trigger\n+\n \n ## Development\n- \n-Clone this repository and init the workspace with following command:\n+\n+- Clone this repository:\n+\n+```\n+git clone https://github.com/keboola/app-orchestrator-trigger.git\n+cd app-orchestrator-trigger\n+```\n+\n+- Create `.env` file an fill variables:\n+\n+```\n+TEST_STORAGE_API_TOKEN=\n+TEST_STORAGE_API_URL=\n+\n+TEST_COMPONENT_ID=\n+TEST_COMPONENT_CONFIG_ID=\n+```\n+\n+`TEST_COMPONENT_ID` and `TEST_COMPONENT_CONFIG_ID` variables are because Orchestrator requires least one task configured in orchestration for run.","path":"README.md","position":71,"original_position":71,"commit_id":"7f8479fe468122766d13d5d02872684625c129f6","original_commit_id":"7f8479fe468122766d13d5d02872684625c129f6","user":{"login":"pivnicek","id":569139,"node_id":"MDQ6VXNlcjU2OTEzOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/569139?v=4","gravatar_id":"","url":"https://api.github.com/users/pivnicek","html_url":"https://github.com/pivnicek","followers_url":"https://api.github.com/users/pivnicek/followers","following_url":"https://api.github.com/users/pivnicek/following{/other_user}","gists_url":"https://api.github.com/users/pivnicek/gists{/gist_id}","starred_url":"https://api.github.com/users/pivnicek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pivnicek/subscriptions","organizations_url":"https://api.github.com/users/pivnicek/orgs","repos_url":"https://api.github.com/users/pivnicek/repos","events_url":"https://api.github.com/users/pivnicek/events{/privacy}","received_events_url":"https://api.github.com/users/pivnicek/received_events","type":"User","site_admin":false},"body":"Orchestration requires at least one configured task in order to run.","created_at":"2018-06-05T15:39:30Z","updated_at":"2018-06-05T15:41:35Z","html_url":"https://github.com/keboola/app-orchestrator-trigger/pull/2#discussion_r193121485","pull_request_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls/comments/193121485"},"html":{"href":"https://github.com/keboola/app-orchestrator-trigger/pull/2#discussion_r193121485"},"pull_request":{"href":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls/2","id":192045835,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMDQ1ODM1","html_url":"https://github.com/keboola/app-orchestrator-trigger/pull/2","diff_url":"https://github.com/keboola/app-orchestrator-trigger/pull/2.diff","patch_url":"https://github.com/keboola/app-orchestrator-trigger/pull/2.patch","issue_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/issues/2","number":2,"state":"open","locked":false,"title":"Init","user":{"login":"ErikZigo","id":1726727,"node_id":"MDQ6VXNlcjE3MjY3Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1726727?v=4","gravatar_id":"","url":"https://api.github.com/users/ErikZigo","html_url":"https://github.com/ErikZigo","followers_url":"https://api.github.com/users/ErikZigo/followers","following_url":"https://api.github.com/users/ErikZigo/following{/other_user}","gists_url":"https://api.github.com/users/ErikZigo/gists{/gist_id}","starred_url":"https://api.github.com/users/ErikZigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErikZigo/subscriptions","organizations_url":"https://api.github.com/users/ErikZigo/orgs","repos_url":"https://api.github.com/users/ErikZigo/repos","events_url":"https://api.github.com/users/ErikZigo/events{/privacy}","received_events_url":"https://api.github.com/users/ErikZigo/received_events","type":"User","site_admin":false},"body":"První verze připravená podle https://github.com/keboola/app-orchestrator-trigger/issues\r\n\r\n- [x] Dopsat README\r\n- [x] Dodat JSON SCHEMA\r\n- [x] Propagovat KBC_RUNID","created_at":"2018-06-01T14:09:08Z","updated_at":"2018-06-05T15:41:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6a75748138a1349c6c0c455632061cb14a6051a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls/2/commits","review_comments_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls/2/comments","review_comment_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/issues/2/comments","statuses_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/statuses/7f8479fe468122766d13d5d02872684625c129f6","head":{"label":"keboola:erik-init","ref":"erik-init","sha":"7f8479fe468122766d13d5d02872684625c129f6","user":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"repo":{"id":135571424,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU1NzE0MjQ=","name":"app-orchestrator-trigger","full_name":"keboola/app-orchestrator-trigger","owner":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/keboola/app-orchestrator-trigger","description":null,"fork":false,"url":"https://api.github.com/repos/keboola/app-orchestrator-trigger","forks_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/forks","keys_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/teams","hooks_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/hooks","issue_events_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/issues/events{/number}","events_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/events","assignees_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/assignees{/user}","branches_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/branches{/branch}","tags_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/tags","blobs_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/git/refs{/sha}","trees_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/statuses/{sha}","languages_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/languages","stargazers_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/stargazers","contributors_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/contributors","subscribers_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/subscribers","subscription_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/subscription","commits_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/commits{/sha}","git_commits_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/git/commits{/sha}","comments_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/comments{/number}","issue_comment_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/issues/comments{/number}","contents_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/contents/{+path}","compare_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/merges","archive_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/downloads","issues_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/issues{/number}","pulls_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls{/number}","milestones_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/milestones{/number}","notifications_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/labels{/name}","releases_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/releases{/id}","deployments_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/deployments","created_at":"2018-05-31T10:52:29Z","updated_at":"2018-06-01T14:53:51Z","pushed_at":"2018-06-05T15:17:17Z","git_url":"git://github.com/keboola/app-orchestrator-trigger.git","ssh_url":"git@github.com:keboola/app-orchestrator-trigger.git","clone_url":"https://github.com/keboola/app-orchestrator-trigger.git","svn_url":"https://github.com/keboola/app-orchestrator-trigger","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"keboola:master","ref":"master","sha":"4330f4101a3e2b8fcec66884b8f3dd2ccad6edbe","user":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"repo":{"id":135571424,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU1NzE0MjQ=","name":"app-orchestrator-trigger","full_name":"keboola/app-orchestrator-trigger","owner":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/keboola/app-orchestrator-trigger","description":null,"fork":false,"url":"https://api.github.com/repos/keboola/app-orchestrator-trigger","forks_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/forks","keys_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/teams","hooks_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/hooks","issue_events_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/issues/events{/number}","events_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/events","assignees_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/assignees{/user}","branches_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/branches{/branch}","tags_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/tags","blobs_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/git/refs{/sha}","trees_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/statuses/{sha}","languages_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/languages","stargazers_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/stargazers","contributors_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/contributors","subscribers_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/subscribers","subscription_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/subscription","commits_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/commits{/sha}","git_commits_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/git/commits{/sha}","comments_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/comments{/number}","issue_comment_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/issues/comments{/number}","contents_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/contents/{+path}","compare_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/merges","archive_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/downloads","issues_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/issues{/number}","pulls_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls{/number}","milestones_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/milestones{/number}","notifications_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/labels{/name}","releases_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/releases{/id}","deployments_url":"https://api.github.com/repos/keboola/app-orchestrator-trigger/deployments","created_at":"2018-05-31T10:52:29Z","updated_at":"2018-06-01T14:53:51Z","pushed_at":"2018-06-05T15:17:17Z","git_url":"git://github.com/keboola/app-orchestrator-trigger.git","ssh_url":"git@github.com:keboola/app-orchestrator-trigger.git","clone_url":"https://github.com/keboola/app-orchestrator-trigger.git","svn_url":"https://github.com/keboola/app-orchestrator-trigger","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls/2"},"html":{"href":"https://github.com/keboola/app-orchestrator-trigger/pull/2"},"issue":{"href":"https://api.github.com/repos/keboola/app-orchestrator-trigger/issues/2"},"comments":{"href":"https://api.github.com/repos/keboola/app-orchestrator-trigger/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/keboola/app-orchestrator-trigger/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/keboola/app-orchestrator-trigger/statuses/7f8479fe468122766d13d5d02872684625c129f6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"pivnicek"}}