Add Hugo
This commit is contained in:
parent
ce66886675
commit
1a90e7d532
1 changed files with 14 additions and 0 deletions
14
modules/Hugo.php
Normal file
14
modules/Hugo.php
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class Hugo extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Hugo Authors', 'Hugo', 'https://gohugo.io/');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://api.github.com/repos/gohugoio/hugo/releases/latest', true))
|
||||||
|
return $this->parse_json('tag_name');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue