From 38873de734b5c0e9413e1a9db90d009a2d92c45a Mon Sep 17 00:00:00 2001 From: Vincent Jacques Date: Sun, 12 Feb 2012 22:22:54 +0100 Subject: [PATCH] Repository.edit --- Reference.md | 2 +- github/GithubObjects.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Reference.md b/Reference.md index 04b426c3..2aef7832 100644 --- a/Reference.md +++ b/Reference.md @@ -102,7 +102,7 @@ /repos/:user/:repo ================== - GET: `` (TODO) - - PATCH: `` (TODO) + - PATCH: `Repository.edit( ... )` /repos/:user/:repo/branches =========================== diff --git a/github/GithubObjects.py b/github/GithubObjects.py index 39aab606..bf3b2881 100644 --- a/github/GithubObjects.py +++ b/github/GithubObjects.py @@ -67,6 +67,7 @@ Repository = GithubObject( ExtendedListAttribute( "collaborators", NamedUser ), ExtendedListAttribute( "contributors", NamedUser ), ExtendedListAttribute( "watchers", NamedUser ), + Editable( [ "name" ], [ "description", "homepage", "public", "has_issues", "has_wiki", "has_downloads" ] ), ) Repository._addAttributePolicy( ExtendedScalarAttribute( "parent", Repository ) ) Repository._addAttributePolicy( ExtendedScalarAttribute( "source", Repository ) )