MCPcopy
hub / github.com/gitcoinco/web / org_name

Function org_name

app/git/utils.py:711–724  ·  view source on GitHub ↗

Get the organization name from an issue URL. Args: issue_url (str): The Github issue URL. Returns: str: The Github organization name.

(issue_url)

Source from the content-addressed store, hash-verified

709
710
711def org_name(issue_url):
712 """Get the organization name from an issue URL.
713
714 Args:
715 issue_url (str): The Github issue URL.
716
717 Returns:
718 str: The Github organization name.
719
720 """
721 try:
722 return issue_url.split('/')[3]
723 except IndexError:
724 return ''
725
726
727def repo_name(issue_url):

Callers 15

test_org_nameMethod · 0.90
github_urlMethod · 0.90
github_avatar_urlMethod · 0.90
handle_avatarFunction · 0.90
handleMethod · 0.90
get_relative_urlMethod · 0.90
github_org_nameMethod · 0.90
github_issue_stateMethod · 0.90
org_nameMethod · 0.90
github_org_nameMethod · 0.90

Calls

no outgoing calls

Tested by 1

test_org_nameMethod · 0.72