mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Organization.edit
This commit is contained in:
@@ -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" )
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@
|
||||
/orgs/:org
|
||||
==========
|
||||
- GET: `Github.get_organization( login )`: `Organization`
|
||||
- PATCH: `` (TODO)
|
||||
- PATCH: `Organization.edit( ... )`
|
||||
|
||||
/orgs/:org/events
|
||||
=================
|
||||
|
||||
@@ -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 ) )
|
||||
|
||||
Reference in New Issue
Block a user