From 76c499df5182c20407557c4fddc1fe5ee4bbb7fb Mon Sep 17 00:00:00 2001 From: Vincent Jacques Date: Fri, 7 Sep 2012 23:52:28 +0200 Subject: [PATCH] Generate TODOs from git://github.com/github/developer.github.com.git Some of them are already covered by issues #65, #67, #68 and #69 --- codegen/generate_reference_of_apis.py | 3 +- doc/ReferenceOfApis.md | 73 +++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 1 deletion(-) diff --git a/codegen/generate_reference_of_apis.py b/codegen/generate_reference_of_apis.py index b74f349b..7c46da18 100755 --- a/codegen/generate_reference_of_apis.py +++ b/codegen/generate_reference_of_apis.py @@ -41,6 +41,7 @@ for fileName in developerDotGithubDotComContentFiles: "/repos/:user/:repo/git/trees/:sha?recursive=1", "/repos/octocat/Hello-World/git/refs/heads/feature-a", "/repos/octocat/Hello-World/git/refs/tags/v1.0", + "/repos/:user/:repo/git/refs/heads/skunkworkz/featureA", ]: continue @@ -70,6 +71,6 @@ for url in sorted( verbsByUrl.keys() ): if ( url, verb ) in functionsByUrlVerb: function = functionsByUrlVerb[ ( url, verb ) ] else: - function = "(TOTO)" + function = "(TODO)" print "* " + verb + ": " + function print diff --git a/doc/ReferenceOfApis.md b/doc/ReferenceOfApis.md index f2d14624..193cbe06 100644 --- a/doc/ReferenceOfApis.md +++ b/doc/ReferenceOfApis.md @@ -123,16 +123,36 @@ API `/orgs/:org/teams` * GET: `Organization.get_teams` * POST: `Organization.create_team` +API `/rate_limit` +================= +* GET: (TODO) + API `/repos/:user/:repo` ======================== * GET: `AuthenticatedUser.get_repo`, `NamedUser.get_repo` or `Organization.get_repo` * PATCH: `Repository.edit` * DELETE: `Repository.delete` +API `/repos/:user/:repo/:archive_format/:ref` +============================================= +* GET: (TODO) + +API `/repos/:user/:repo/assignees` +================================== +* GET: (TODO) + +API `/repos/:user/:repo/assignees/:assignee` +============================================ +* GET: (TODO) + API `/repos/:user/:repo/branches` ================================= * GET: `Repository.get_branches` +API `/repos/:user/:repo/branches/:branch` +========================================= +* GET: (TODO) + API `/repos/:user/:repo/collaborators` ====================================== * GET: `Repository.get_collaborators` @@ -170,6 +190,10 @@ API `/repos/:user/:repo/compare/:base...:head` ============================================== * GET: `Repository.compare` +API `/repos/:user/:repo/contents/:path` +======================================= +* GET: (TODO) + API `/repos/:user/:repo/contributors` ===================================== * GET: `Repository.get_contributors` @@ -321,6 +345,10 @@ API `/repos/:user/:repo/languages` ================================== * GET: `Repository.get_languages` +API `/repos/:user/:repo/merges` +=============================== +* POST: (TODO) + API `/repos/:user/:repo/milestones` =================================== * GET: `Repository.get_milestones` @@ -370,6 +398,23 @@ API `/repos/:user/:repo/pulls/comments/:number` * PATCH: `PullRequestComment.edit` * DELETE: `PullRequestComment.delete` +API `/repos/:user/:repo/readme` +=============================== +* GET: (TODO) + +API `/repos/:user/:repo/stargazers` +=================================== +* GET: (TODO) + +API `/repos/:user/:repo/statuses/:sha` +====================================== +* GET: (TODO) +* POST: (TODO) + +API `/repos/:user/:repo/subscribers` +==================================== +* GET: (TODO) + API `/repos/:user/:repo/tags` ============================= * GET: `Repository.get_tags` @@ -453,6 +498,26 @@ API `/user/repos` * GET: `AuthenticatedUser.get_repos` * POST: `AuthenticatedUser.create_repo` +API `/user/starred` +=================== +* GET: (TODO) + +API `/user/starred/:user/:repo` +=============================== +* GET: (TODO) +* PUT: (TODO) +* DELETE: (TODO) + +API `/user/subscriptions` +========================= +* GET: (TODO) + +API `/user/subscriptions/:user/:repo` +===================================== +* GET: (TODO) +* PUT: (TODO) +* DELETE: (TODO) + API `/user/watched` =================== * GET: `AuthenticatedUser.get_watched` @@ -508,6 +573,14 @@ API `/users/:user/repos` ======================== * GET: `NamedUser.get_repos` +API `/users/:user/starred` +========================== +* GET: (TODO) + +API `/users/:user/subscriptions` +================================ +* GET: (TODO) + API `/users/:user/watched` ========================== * GET: `NamedUser.get_watched`