You are here

protected function BitbucketManager::getPipelinesApiPath in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x modules/build_hooks_bitbucket/src/BitbucketManager.php \Drupal\build_hooks_bitbucket\BitbucketManager::getPipelinesApiPath()

Get the full URL for the pipelines api call.

Parameters

array $settings: The configuration for this environment.

Return value

string The api endpoint we should hit.

2 calls to BitbucketManager::getPipelinesApiPath()
BitbucketManager::getBuildHookDetailsForPluginConfiguration in modules/build_hooks_bitbucket/src/BitbucketManager.php
Converts hook configuration into an api call.
BitbucketManager::retrieveLatestBuilds in modules/build_hooks_bitbucket/src/BitbucketManager.php
Get the latest builds from bitbucket pipelines.

File

modules/build_hooks_bitbucket/src/BitbucketManager.php, line 54

Class

BitbucketManager
Service for managing BitBucket connection details.

Namespace

Drupal\build_hooks_bitbucket

Code

protected function getPipelinesApiPath(array $settings) {
  return self::API_PREFIX . $settings['repo']['workspace'] . '/' . $settings['repo']['slug'] . self::PIPELINES_PATH;
}