import re


def parse_github_url(url):
    """Parse github url into organization and repo name."""
    tokens = re.split('/|:', url.replace('.git', ''))
    repo = tokens.pop()
    organization = tokens.pop()
    return organization, repo