Skip to content

Commit f082186

Browse files
Added documentation for the activity() method.
1 parent db1995b commit f082186

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/repos.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,11 @@ To include non GitHub users, add a third parameter to true:
230230
```php
231231
$contributors = $client->api('repo')->contributors('ornicar', 'php-github-api', true);
232232
```
233+
234+
### Get the commit activity of a repository
235+
236+
```php
237+
$activity = $client->api('repo')->activity('ornicar', 'php-github-api');
238+
```
239+
240+
Returns an array of commit activity group by week.

0 commit comments

Comments
 (0)