Skip to content

Commit 91b9643

Browse files
committed
Merge pull request github#180 from github/org-repos-sources-and-forks
Changes article about new 'sources'/'forks' org repo listing functionality
2 parents 9af37a5 + cae12e2 commit 91b9643

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
kind: change
3+
title: Finding sources and fork repositories for organizations
4+
created_at: 2012-12-08
5+
author_name: rick
6+
---
7+
8+
We've made a couple of changes today to the Organization repositories
9+
listing to bring it a bit closer to the functionality of the GitHub.com
10+
Organization repositories tab. We now let you retrieve repositories
11+
which are forks of another repo, as well as those repositories which
12+
are sources (not forks).
13+
14+
# Grab all fork Repositories for an Organization
15+
curl "https://api.github.com/orgs/:org/repos?type=forks"
16+
17+
# Grab all source Repositories for an Organization
18+
curl "https://api.github.com/orgs/:org/repos?type=sources"
19+
20+
Check out the docs for sorting and filtering options:
21+
22+
* [Organization Repositories](/v3/repos/#list-organization-repositories)

content/v3/repos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ List repositories for the specified org.
5050
### Parameters
5151

5252
type
53-
: `all`, `public`, `member`, `private`. Default: `all`.
53+
: `all`, `public`, `private`, `forks`, `sources`, `member`. Default: `all`.
5454

5555
### Response
5656

lib/resources.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ module Helpers
2929
AUTHORS = {
3030
:technoweenie => '821395fe70906c8290df7f18ac4ac6cf',
3131
:pengwynn => '7e19cd5486b5d6dc1ef90e671ba52ae0',
32-
:pezra => 'f38112009dc16547051c8ac246cee443'
32+
:pezra => 'f38112009dc16547051c8ac246cee443',
33+
:rick => 'a44d5abad6e86cff4e34d9f0839535c9'
3334
}
3435

3536
DefaultTimeFormat = "%B %-d, %Y".freeze

0 commit comments

Comments
 (0)