octogit
octogit copied to clipboard
Refactor get_username_and_repo func.
We use regex expressions to parse the other use-cases as well, which allows us to remove the get_parent_repository() function, along with the URL constant for github repositories.
I also added some minor docstrings to the function in this module.