PatchBot/modules/Grafana.php
2019-08-19 14:00:45 +02:00

14 lines
327 B
PHP

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