public function getList($owner, $repo, $sha = '', $ref = '', $task = '', $environment = '', $page = 0, $limit = 0)
	{
		// Build the request path.
		$path = "/repos/$owner/$repo/deployments";

		$uri = new Uri($this->fetchUrl($path, $page, $limit));

		if ($sha)
		{
			$uri->setVar('sha', $sha);
		}

		if ($ref)
		{
			$uri->setVar('ref', $ref);
		}

		if ($task)
		{
			$uri->setVar('task', $task);
		}

		if ($environment)
		{
			$uri->setVar('environment', $environment);
		}

		return $this->processResponse($this->client->get($uri));
	}