PatchBot/modules/WinMerge.php

14 lines
354 B
PHP

<?php
class WinMerge extends PatchBase {
function __construct() {
parent::__construct('WinMerge Development Team', 'WinMerge', 'https://winmerge.org/downloads/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/winmerge/winmerge/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>