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 ) )