Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CHANGE LOG
* Fixed the current user workspaces endpoint
* Added the current user workspaces API
* Added the workspace pull requests endpoint for a selected user
* Added repository pipelines config subresources
* Documented Bitbucket API migration paths
* Deprecated current user workspaces pass-through methods
* Deprecated the top-level pull requests pass-through method
Expand Down
18 changes: 18 additions & 0 deletions src/Api/Repositories/Workspaces/PipelinesConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

namespace Bitbucket\Api\Repositories\Workspaces;

use Bitbucket\Api\Repositories\Workspaces\PipelinesConfig\BuildNumber;
use Bitbucket\Api\Repositories\Workspaces\PipelinesConfig\Schedules;
use Bitbucket\Api\Repositories\Workspaces\PipelinesConfig\Ssh;
use Bitbucket\Api\Repositories\Workspaces\PipelinesConfig\Variables;
use Bitbucket\HttpClient\Util\UriBuilder;

Expand All @@ -23,6 +26,21 @@
*/
class PipelinesConfig extends AbstractWorkspacesApi
{
public function buildNumber(): BuildNumber
{
return new BuildNumber($this->getClient(), $this->workspace, $this->repo);
}

public function schedules(): Schedules
{
return new Schedules($this->getClient(), $this->workspace, $this->repo);
}

public function ssh(): Ssh
{
return new Ssh($this->getClient(), $this->workspace, $this->repo);
}

public function variables(): Variables
{
return new Variables($this->getClient(), $this->workspace, $this->repo);
Expand Down