Duplicity: parse Gitlab releases
This commit is contained in:
parent
53cea337ba
commit
57058539c7
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ class Duplicity extends PatchBase {
|
||||||
parent::__construct('Kenneth Loafman', 'Duplicity', 'http://duplicity.gitlab.io/duplicity-web/');
|
parent::__construct('Kenneth Loafman', 'Duplicity', 'http://duplicity.gitlab.io/duplicity-web/');
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch_json('https://gitlab.com/api/v4/projects/12450835/repository/tags'))
|
if ($this->fetch_json('https://gitlab.com/api/v4/projects/12450835/releases'))
|
||||||
return $this->parse_json('name', '/rel\.(.+)/');
|
return $this->parse_json('tag_name', '/rel\.(.+)/');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue