MCPcopy
hub / github.com/donnemartin/gitsome / edit

Method edit

gitsome/lib/github3/orgs.py:414–436  ·  view source on GitHub ↗

Edit this organization. :param str billing_email: (optional) Billing email address (private) :param str company: (optional) :param str email: (optional) Public email address :param str location: (optional) :param str name: (optional) :returns: bool

(self, billing_email=None, company=None, email=None, location=None,
             name=None)

Source from the content-addressed store, hash-verified

412
413 @requires_auth
414 def edit(self, billing_email=None, company=None, email=None, location=None,
415 name=None):
416 """Edit this organization.
417
418 :param str billing_email: (optional) Billing email address (private)
419 :param str company: (optional)
420 :param str email: (optional) Public email address
421 :param str location: (optional)
422 :param str name: (optional)
423 :returns: bool
424 """
425 json = None
426 data = {'billing_email': billing_email, 'company': company,
427 'email': email, 'location': location, 'name': name}
428 self._remove_none(data)
429
430 if data:
431 json = self._json(self._patch(self._api, data=dumps(data)), 200)
432
433 if json:
434 self._update_attributes(json)
435 return True
436 return False
437
438 def is_member(self, username):
439 """Check if the user named ``username`` is a member.

Callers

nothing calls this directly

Calls 5

_update_attributesMethod · 0.95
dumpsFunction · 0.90
_remove_noneMethod · 0.80
_jsonMethod · 0.80
_patchMethod · 0.80

Tested by

no test coverage detected