PatchBot/modules/Prometheus.php
2019-08-19 14:01:00 +02:00

14 lines
347 B
PHP

<?php
class Prometheus extends PatchBase {
function __construct() {
parent::__construct('Prometheus Authors', 'Prometheus', 'https://prometheus.io/');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/prometheus/prometheus/releases/latest', true))
return $this->parse_json('tag_name');
return false;
}
}
?>