PatchBot/modules/Lazygit.php
2021-11-22 13:30:44 +01:00

14 lines
354 B
PHP

<?php
class Lazygit extends PatchBase {
function __construct() {
parent::__construct('Jesse Duffield', 'lazygit', 'https://github.com/jesseduffield/lazygit');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/jesseduffield/lazygit/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>