Add lazygit

This commit is contained in:
Steffen Lange 2021-11-22 13:30:44 +01:00
parent 0f1af32234
commit 0517948ad6

14
modules/Lazygit.php Normal file
View file

@ -0,0 +1,14 @@
<?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;
}
}
?>