We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f3a34d commit ee45d48Copy full SHA for ee45d48
doc/repos.md
@@ -238,3 +238,14 @@ $activity = $client->api('repo')->activity('ornicar', 'php-github-api');
238
```
239
240
Returns an array of commit activity group by week.
241
+
242
+### `Moved` repositories
243
+Github repositories can be moved to another org/user, but it remains the `id`.
244
+In case if you can't no more find repo, you can retrieve it by `id`:
245
246
+```php
247
+use Github\HttpClient\Message\ResponseMediator;
248
249
+$data = $client->getHttpClient()->get('/repositories/24560307');
250
+$repo = ResponseMediator::getContent($data);
251
+```
0 commit comments