Releases and Tags
hupe13 opened this issue · 2 comments
hupe13 commented
Is it possible to ignore any releases and consider tags only?
YahnisElsts commented
Yes, you can use the vcs_update_detection_strategies
filter to prevent PUC from looking at releases. Try something like this:
use YahnisElsts\PluginUpdateChecker\v5p3\Vcs\GitHubApi;
$updateChecker->addFilter('vcs_update_detection_strategies', function($strategies) {
unset($strategies[GitHubApi::STRATEGY_LATEST_RELEASE]);
return $strategies;
});
hupe13 commented
Thank you very much, it works.