diff --git a/content/changes/2012-12-08-finding-source-and-fork-repos-for-organizations.html b/content/changes/2012-12-08-finding-source-and-fork-repos-for-organizations.html new file mode 100644 index 0000000000..fb3f45caab --- /dev/null +++ b/content/changes/2012-12-08-finding-source-and-fork-repos-for-organizations.html @@ -0,0 +1,22 @@ +--- +kind: change +title: Finding sources and fork repositories for organizations +created_at: 2012-12-08 +author_name: rick +--- + +We've made a couple of changes today to the Organization repositories +listing to bring it a bit closer to the functionality of the GitHub.com +Organization repositories tab. We now let you retrieve repositories +which are forks of another repo, as well as those repositories which +are sources (not forks). + + # Grab all fork Repositories for an Organization + curl "https://api.github.com/orgs/:org/repos?type=forks" + + # Grab all source Repositories for an Organization + curl "https://api.github.com/orgs/:org/repos?type=sources" + +Check out the docs for sorting and filtering options: + +* [Organization Repositories](/v3/repos/#list-organization-repositories) diff --git a/content/v3/repos.md b/content/v3/repos.md index 8a327e8b47..9269f0215e 100644 --- a/content/v3/repos.md +++ b/content/v3/repos.md @@ -50,7 +50,7 @@ List repositories for the specified org. ### Parameters type -: `all`, `public`, `member`, `private`. Default: `all`. +: `all`, `public`, `private`, `forks`, `sources`, `member`. Default: `all`. ### Response diff --git a/lib/resources.rb b/lib/resources.rb index 4b17dffb59..b11846a0fa 100644 --- a/lib/resources.rb +++ b/lib/resources.rb @@ -29,7 +29,8 @@ module Helpers AUTHORS = { :technoweenie => '821395fe70906c8290df7f18ac4ac6cf', :pengwynn => '7e19cd5486b5d6dc1ef90e671ba52ae0', - :pezra => 'f38112009dc16547051c8ac246cee443' + :pezra => 'f38112009dc16547051c8ac246cee443', + :rick => 'a44d5abad6e86cff4e34d9f0839535c9' } DefaultTimeFormat = "%B %-d, %Y".freeze