File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments