File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,20 @@ public function find($keyword, array $params)
37
37
return $ this ->get ('legacy/repos/search/ ' .urlencode ($ keyword ), array_merge (array ('start_page ' => 1 ), $ params ));
38
38
}
39
39
40
+ /**
41
+ * List all repositories for an organization
42
+ * @link http://developer.github.com/v3/repos/#list-organization-repositories
43
+ *
44
+ * @param string $organization the name of the organization
45
+ * @param array $params
46
+ *
47
+ * @return array list of organization repositories
48
+ */
49
+ public function org ($ organization , array $ params = array ())
50
+ {
51
+ return $ this ->get ('orgs/ ' .$ organization .'/repos ' , array_merge (array ('start_page ' => 1 ), $ params ));
52
+ }
53
+
40
54
/**
41
55
* Get extended information about a repository by its username and repository name
42
56
* @link http://developer.github.com/v3/repos/
You can’t perform that action at this time.
0 commit comments