PatchBot/modules/CoreDNS.php
2020-03-28 14:42:42 +01:00

14 lines
325 B
PHP

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