PatchBot/modules/Loki.php
2021-07-01 22:07:30 +02:00

14 lines
321 B
PHP

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