YahnisElsts/plugin-update-checker

Releases and Tags

hupe13 opened this issue · 2 comments

Is it possible to ignore any releases and consider tags only?

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;
});

Thank you very much, it works.