mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-10-29 11:02:30 +01:00
Client - Added connections for new API requesters
+ Added a connection to the new Tags API requester + Added a connection to the new Branches API requester
This commit is contained in:
@ -9,8 +9,10 @@ use Gitea\Models\Repository;
|
||||
use Gitea\Models\Tag;
|
||||
use Gitea\Models\Branch;
|
||||
|
||||
use Gitea\Api\Repositories;
|
||||
use Gitea\Api\Organizations;
|
||||
use Gitea\Api\Repositories;
|
||||
use Gitea\Api\Branches;
|
||||
use Gitea\Api\Tags;
|
||||
|
||||
use \JsonSerializable;
|
||||
|
||||
@ -132,6 +134,30 @@ class Client {
|
||||
return new Repositories($this, $this->getAuthToken());
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the Branches api object
|
||||
*
|
||||
* @author Benjamin Blake (sitelease.ca)
|
||||
*
|
||||
* @return Branches
|
||||
*/
|
||||
public function branches()
|
||||
{
|
||||
return new Branches($this, $this->getAuthToken());
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the Tags api object
|
||||
*
|
||||
* @author Benjamin Blake (sitelease.ca)
|
||||
*
|
||||
* @return Tags
|
||||
*/
|
||||
public function tags()
|
||||
{
|
||||
return new Tags($this, $this->getAuthToken());
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the Repositories api object
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user