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
{
38
38
return $ this ->get ('legacy/repos/search/ ' .rawurlencode ($ keyword ), array_merge (array ('start_page ' => 1 ), $ params ));
39
39
}
40
+
41
+ /**
42
+ * Get contributor commit statistics for a repository
43
+ * @link http://developer.github.com/v3/repos/statistics/#contributors
44
+ *
45
+ * @param string $username the user who owns the repository
46
+ * @param string $repository the name of the repository
47
+ *
48
+ * @return array list of contributors and their commit statistics
49
+ */
50
+ public function statistics ($ username , $ repository )
51
+ {
52
+ return $ this ->get ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/stats/contributors ' );
53
+ }
40
54
41
55
/**
42
56
* List all repositories for an organization
You can’t perform that action at this time.
0 commit comments