{"action":"created","issue":{"url":"https://api.github.com/repos/orchestrator/orchestrator/issues/12","labels_url":"https://api.github.com/repos/orchestrator/orchestrator/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/orchestrator/orchestrator/issues/12/comments","events_url":"https://api.github.com/repos/orchestrator/orchestrator/issues/12/events","html_url":"https://github.com/orchestrator/orchestrator/issues/12","id":25216081,"number":12,"title":"Can you pass param from one task to another","user":{"login":"popomore","id":360661,"avatar_url":"https://avatars.githubusercontent.com/u/360661?v=3","gravatar_id":"","url":"https://api.github.com/users/popomore","html_url":"https://github.com/popomore","followers_url":"https://api.github.com/users/popomore/followers","following_url":"https://api.github.com/users/popomore/following{/other_user}","gists_url":"https://api.github.com/users/popomore/gists{/gist_id}","starred_url":"https://api.github.com/users/popomore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/popomore/subscriptions","organizations_url":"https://api.github.com/users/popomore/orgs","repos_url":"https://api.github.com/users/popomore/repos","events_url":"https://api.github.com/users/popomore/events{/privacy}","received_events_url":"https://api.github.com/users/popomore/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orchestrator/orchestrator/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/orchestrator/orchestrator/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-01-08T04:53:25Z","updated_at":"2015-05-05T22:55:24Z","closed_at":"2014-01-12T03:30:15Z","body":"```\r\nvar Orchestrator = require('orchestrator');\r\nvar orchestrator = new Orchestrator();\r\n\r\norchestrator.add('task_a', function() {\r\n  return 'a';\r\n});\r\n\r\norchestrator.add('task_b', function(callback) {\r\n  callback(null, 'b');\r\n});\r\n\r\norchestrator.add('task_c', ['task_a', 'task_b'], function(callback, results) {\r\n  // results is ['a', 'b']\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/orchestrator/orchestrator/issues/comments/99254810","html_url":"https://github.com/orchestrator/orchestrator/issues/12#issuecomment-99254810","issue_url":"https://api.github.com/repos/orchestrator/orchestrator/issues/12","id":99254810,"user":{"login":"andrew-aladev","id":941925,"avatar_url":"https://avatars.githubusercontent.com/u/941925?v=3","gravatar_id":"","url":"https://api.github.com/users/andrew-aladev","html_url":"https://github.com/andrew-aladev","followers_url":"https://api.github.com/users/andrew-aladev/followers","following_url":"https://api.github.com/users/andrew-aladev/following{/other_user}","gists_url":"https://api.github.com/users/andrew-aladev/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew-aladev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew-aladev/subscriptions","organizations_url":"https://api.github.com/users/andrew-aladev/orgs","repos_url":"https://api.github.com/users/andrew-aladev/repos","events_url":"https://api.github.com/users/andrew-aladev/events{/privacy}","received_events_url":"https://api.github.com/users/andrew-aladev/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T22:55:24Z","updated_at":"2015-05-05T22:55:24Z","body":"```\r\ngulp.task(\"a\", function(callback) {\r\n    callback(null, 1);\r\n});\r\ngulp.task(\"default\", [\"a\"], function (callback) {\r\n    console.log(arguments);\r\n});\r\n```\r\n\r\nThe result is `{ 0 : function (err) { finish(err, 'callback'); } }`. There are no results available. The author of this \"orchestrator\" advises to use variable from parent scope to share these results. Please stop the planet - I'm going out.\r\n\r\n![facepalm](http://i.imgur.com/prmVSf7.gif)"}}