PatchBot/modules/Gitea.php
2019-07-15 22:27:48 +02:00

14 lines
320 B
PHP

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