PatchBot/modules/TreeSheets.php
2020-10-09 21:32:28 +02:00

15 lines
418 B
PHP

<?php
class TreeSheets extends PatchBase {
function __construct() {
parent::__construct('Wouter van Oortmerssen', 'TreeSheets', 'http://strlen.com/treesheets/');
$this->patch->setBranch('Continuous');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/aardappel/treesheets/releases/latest', true))
return $this->parse_json('target_commitish', '/(.{7})/');
return false;
}
}
?>