Separate fetch and fetch_json helper funcs
This commit is contained in:
parent
4a613a0d3b
commit
62a9f6f0c8
56 changed files with 63 additions and 58 deletions
|
|
@ -6,7 +6,7 @@ class TreeSheets extends PatchBase {
|
|||
$this->patch->setBranch('Continuous');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://api.github.com/repos/aardappel/treesheets/releases/latest', true))
|
||||
if ($this->fetch_json('https://api.github.com/repos/aardappel/treesheets/releases/latest'))
|
||||
return $this->parse_json('target_commitish', '/(.{7})/');
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue