Get the organization name from an issue URL. Args: issue_url (str): The Github issue URL. Returns: str: The Github organization name.
(issue_url)
| 709 | |
| 710 | |
| 711 | def 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 | |
| 727 | def repo_name(issue_url): |
no outgoing calls