diff --git a/IntegrationTest.py b/IntegrationTest.py index b7978016..219a316d 100644 --- a/IntegrationTest.py +++ b/IntegrationTest.py @@ -43,3 +43,6 @@ dumpRepository( g.get_user( "nvie" ).get_repos()[ 0 ] ) # print "Bio before:", u.bio # u.edit( bio = u.bio + "(Edited by PyGithub)" ) # print "Bio after:", u.bio + +# o = g.get_organization( "BeaverSoftware" ) +# o.edit( location = "Paris, France" ) diff --git a/Reference.md b/Reference.md index 84c5d0ef..04b426c3 100644 --- a/Reference.md +++ b/Reference.md @@ -64,7 +64,7 @@ /orgs/:org ========== - GET: `Github.get_organization( login )`: `Organization` - - PATCH: `` (TODO) + - PATCH: `Organization.edit( ... )` /orgs/:org/events ================= diff --git a/github/GithubObjects.py b/github/GithubObjects.py index 427d4dfd..39aab606 100644 --- a/github/GithubObjects.py +++ b/github/GithubObjects.py @@ -45,6 +45,7 @@ Organization = GithubObject( ), ExtendedListAttribute( "public_members", NamedUser ), ExtendedListAttribute( "members", NamedUser ), + Editable( [], [ "billing_email", "blog", "company", "email", "location", "name" ] ), ) AuthenticatedUser._addAttributePolicy( ExtendedListAttribute( "orgs", Organization ) )