{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls/comments/41850426","id":41850426,"diff_hunk":"@@ -258,8 +258,10 @@ module.exports = function(gulp, config) {\n \t\t}\n \n \t\tdemosConfig.demos.forEach(function(demoConfig) {\n-\t\t\t// Extend an empty object to avoid changing the value of defaultDemoConfig\n-\t\t\tdemos.push(extend(true, {}, defaultDemoConfig, demosConfig.demosDefaults || demosConfig.options, demoConfig));\n+\t\t\tif (!config.buildDemo || (config.buildDemo && config.buildDemo === demoConfig.name)) {","path":"lib/tasks/demo.js","position":6,"original_position":6,"commit_id":"bba778d827aefafdca239ab3ac70ccf3cd14e4d0","original_commit_id":"bba778d827aefafdca239ab3ac70ccf3cd14e4d0","user":{"login":"triblondon","id":1735391,"avatar_url":"https://avatars.githubusercontent.com/u/1735391?v=3","gravatar_id":"","url":"https://api.github.com/users/triblondon","html_url":"https://github.com/triblondon","followers_url":"https://api.github.com/users/triblondon/followers","following_url":"https://api.github.com/users/triblondon/following{/other_user}","gists_url":"https://api.github.com/users/triblondon/gists{/gist_id}","starred_url":"https://api.github.com/users/triblondon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triblondon/subscriptions","organizations_url":"https://api.github.com/users/triblondon/orgs","repos_url":"https://api.github.com/users/triblondon/repos","events_url":"https://api.github.com/users/triblondon/events{/privacy}","received_events_url":"https://api.github.com/users/triblondon/received_events","type":"User","site_admin":false},"body":"Not sure on the naming (sorry). `buildDemo` feels like an action or a task to me, not a config option.\r\n\r\nAll OBT options are global, right, not scoped to their task?  Could we call it `demoFilter`, maybe?\r\n\r\nAlso needs adding to README.\r\n","created_at":"2015-10-13T10:28:36Z","updated_at":"2015-10-13T10:28:36Z","html_url":"https://github.com/Financial-Times/origami-build-tools/pull/321#discussion_r41850426","pull_request_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls/321","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls/comments/41850426"},"html":{"href":"https://github.com/Financial-Times/origami-build-tools/pull/321#discussion_r41850426"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls/321"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls/321","id":47287911,"html_url":"https://github.com/Financial-Times/origami-build-tools/pull/321","diff_url":"https://github.com/Financial-Times/origami-build-tools/pull/321.diff","patch_url":"https://github.com/Financial-Times/origami-build-tools/pull/321.patch","issue_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/321","number":321,"state":"open","locked":false,"title":"Adds support for only building one demo so the build service can use it","user":{"login":"AlbertoElias","id":913117,"avatar_url":"https://avatars.githubusercontent.com/u/913117?v=3","gravatar_id":"","url":"https://api.github.com/users/AlbertoElias","html_url":"https://github.com/AlbertoElias","followers_url":"https://api.github.com/users/AlbertoElias/followers","following_url":"https://api.github.com/users/AlbertoElias/following{/other_user}","gists_url":"https://api.github.com/users/AlbertoElias/gists{/gist_id}","starred_url":"https://api.github.com/users/AlbertoElias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlbertoElias/subscriptions","organizations_url":"https://api.github.com/users/AlbertoElias/orgs","repos_url":"https://api.github.com/users/AlbertoElias/repos","events_url":"https://api.github.com/users/AlbertoElias/events{/privacy}","received_events_url":"https://api.github.com/users/AlbertoElias/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-09T15:47:49Z","updated_at":"2015-10-13T10:28:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d22c2a54fdd73a39336b07d5de252e4836e4c787","assignee":{"login":"triblondon","id":1735391,"avatar_url":"https://avatars.githubusercontent.com/u/1735391?v=3","gravatar_id":"","url":"https://api.github.com/users/triblondon","html_url":"https://github.com/triblondon","followers_url":"https://api.github.com/users/triblondon/followers","following_url":"https://api.github.com/users/triblondon/following{/other_user}","gists_url":"https://api.github.com/users/triblondon/gists{/gist_id}","starred_url":"https://api.github.com/users/triblondon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triblondon/subscriptions","organizations_url":"https://api.github.com/users/triblondon/orgs","repos_url":"https://api.github.com/users/triblondon/repos","events_url":"https://api.github.com/users/triblondon/events{/privacy}","received_events_url":"https://api.github.com/users/triblondon/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls/321/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls/321/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/321/comments","statuses_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/statuses/bba778d827aefafdca239ab3ac70ccf3cd14e4d0","head":{"label":"Financial-Times:demo-config","ref":"demo-config","sha":"bba778d827aefafdca239ab3ac70ccf3cd14e4d0","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":17434992,"name":"origami-build-tools","full_name":"Financial-Times/origami-build-tools","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/origami-build-tools","description":"Standard Origami component development tools.","fork":false,"url":"https://api.github.com/repos/Financial-Times/origami-build-tools","forks_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/forks","keys_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/teams","hooks_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/events","assignees_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/tags","blobs_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/subscription","commits_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/merges","archive_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/downloads","issues_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/releases{/id}","created_at":"2014-03-05T09:34:19Z","updated_at":"2015-10-12T15:36:25Z","pushed_at":"2015-10-09T15:47:51Z","git_url":"git://github.com/Financial-Times/origami-build-tools.git","ssh_url":"git@github.com:Financial-Times/origami-build-tools.git","clone_url":"https://github.com/Financial-Times/origami-build-tools.git","svn_url":"https://github.com/Financial-Times/origami-build-tools","homepage":null,"size":2757,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":24,"forks":5,"open_issues":24,"watchers":16,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"0b1ae8782a0b30bd2853355481b869ce35516316","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":17434992,"name":"origami-build-tools","full_name":"Financial-Times/origami-build-tools","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/origami-build-tools","description":"Standard Origami component development tools.","fork":false,"url":"https://api.github.com/repos/Financial-Times/origami-build-tools","forks_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/forks","keys_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/teams","hooks_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/events","assignees_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/tags","blobs_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/subscription","commits_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/merges","archive_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/downloads","issues_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/releases{/id}","created_at":"2014-03-05T09:34:19Z","updated_at":"2015-10-12T15:36:25Z","pushed_at":"2015-10-09T15:47:51Z","git_url":"git://github.com/Financial-Times/origami-build-tools.git","ssh_url":"git@github.com:Financial-Times/origami-build-tools.git","clone_url":"https://github.com/Financial-Times/origami-build-tools.git","svn_url":"https://github.com/Financial-Times/origami-build-tools","homepage":null,"size":2757,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":24,"forks":5,"open_issues":24,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls/321"},"html":{"href":"https://github.com/Financial-Times/origami-build-tools/pull/321"},"issue":{"href":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/321"},"comments":{"href":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/321/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls/321/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls/321/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/origami-build-tools/statuses/bba778d827aefafdca239ab3ac70ccf3cd14e4d0"}}}}