Gitness: next generation of Drone
This commit is contained in:
parent
acd742b08c
commit
2b61466db1
2 changed files with 14 additions and 14 deletions
|
|
@ -1,14 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
class Drone extends PatchBase {
|
|
||||||
function __construct() {
|
|
||||||
parent::__construct('Drone.IO', 'Drone', 'https://drone.io/');
|
|
||||||
}
|
|
||||||
function check() : bool {
|
|
||||||
if ($this->fetch_json('https://api.github.com/repos/drone/drone/tags'))
|
|
||||||
return $this->parse_json('name');
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
14
modules/Gitness.php
Normal file
14
modules/Gitness.php
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class Gitness extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Harness Inc.', 'Gitness', 'https://gitness.com/');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch_json('https://api.github.com/repos/harness/gitness/releases/latest'))
|
||||||
|
return $this->parse_json('tag_name');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue