import re


def issues_repo(pom):
    """
    If this POM record declares GitHub Issues for its issue management,
    return the GitHub (org, repo) pair. Otherwise, return (None, None).
    """
    if pom['issues'] is None: return None, None
    m = re.match('https?://github.com/([^/]+)/([^/]+)/issues', pom['issues'])
    if not m: return None, None # does not use GitHub Issues
    return m.group(1), m.group(2)