Skip to content

Commit c1a3207

Browse files
committed
Added $params arg to Repositories:all
closes #65
1 parent 07e869f commit c1a3207

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
88
### Added:
99
- Implemented [Pipeline] support. ( *thanks to @marco_veenendaal* )
1010

11+
### Changed:
12+
- Added $params arg to Repositories:all method (issue #65)
13+
1114
[Pipeline]: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pipelines
1215

1316

lib/Bitbucket/API/Repositories.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,21 @@ class Repositories extends Api
2626
* - If `$owner` is omitted, will return a list of all public repositories on Bitbucket.
2727
*
2828
* @access public
29-
* @param string $owner The account of the repo owner.
29+
* @param string $owner The account of the repo owner.
30+
* @param array $params Additional parameters
3031
* @return MessageInterface
3132
*
3233
* @api 2.0
3334
* @since Method available since 0.2.0
3435
*/
35-
public function all($owner = null)
36+
public function all($owner = null, array $params = array())
3637
{
3738
$endpoint = 'repositories';
3839

3940
if (!is_null($owner)) {
4041
$endpoint = sprintf('repositories/%s', $owner);
4142
}
4243

43-
return $this->getClient()->setApiVersion('2.0')->get($endpoint);
44+
return $this->getClient()->setApiVersion('2.0')->get($endpoint, $params);
4445
}
4546
}

0 commit comments

Comments
 (0)