Skip to content

Commit

Permalink
hosting pre/postdeploy hooks now obey targeting (#1842)
Browse files Browse the repository at this point in the history
  • Loading branch information
driannaude authored and Alex Memering committed Dec 4, 2019
1 parent 04c8996 commit 0c7b5b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Fixes an issue where all multi-site pre- and post-deploy hooks trigger for targeted deploys (#1160).
2 changes: 1 addition & 1 deletion src/deploy/lifecycleHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function getReleventConfigs(target, options) {
});

return targetConfigs.filter(function(config) {
return _.includes(onlyTargets, config.target) || config;
return !config.target || _.includes(onlyTargets, config.target);
});
}

Expand Down

0 comments on commit 0c7b5b8

Please sign in to comment.