From 318a8ed91a4366e651b16469388c4baa3abba58f Mon Sep 17 00:00:00 2001 From: Rick Bradley Date: Sat, 8 Dec 2012 14:05:48 -0600 Subject: [PATCH 1/3] Add myself to the authors hash --- lib/resources.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From 5e862fcf141528640f9242e66b372c88e5fddbf6 Mon Sep 17 00:00:00 2001 From: Rick Bradley Date: Sat, 8 Dec 2012 14:20:42 -0600 Subject: [PATCH 2/3] Draft changes article re: fork/source org repos --- ...urce-and-fork-repos-for-organizations.html | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 content/changes/2012-12-08-finding-source-and-fork-repos-for-organizations.html 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) From cae12e2c64cb96e6bb9d85c86db41f45d93168c8 Mon Sep 17 00:00:00 2001 From: Rick Bradley Date: Sat, 8 Dec 2012 14:30:35 -0600 Subject: [PATCH 3/3] Add sources and forks to /orgs/:org/repos docs --- content/v3/repos.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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