Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion content/v3/repos.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion lib/resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ module Helpers
AUTHORS = {
:technoweenie => '821395fe70906c8290df7f18ac4ac6cf',
:pengwynn => '7e19cd5486b5d6dc1ef90e671ba52ae0',
:pezra => 'f38112009dc16547051c8ac246cee443'
:pezra => 'f38112009dc16547051c8ac246cee443',
:rick => 'a44d5abad6e86cff4e34d9f0839535c9'
}

DefaultTimeFormat = "%B %-d, %Y".freeze
Expand Down