def github_issue(name, rawtext, text, lineno, inliner,
                 options=None, content=None):
    """ Link to a github issue """
    options = options or {}
    content = content or []
    try:
        issue = int(text)
    except ValueError:
        msg = inliner.reporter.error(
            "Invalid Github Issue '%s', must be an integer" % text,
            line=lineno)
        problem = inliner.problematic(rawtext, rawtext, msg)
        return [problem], [msg]
    app = inliner.document.settings.env.app
    node = make_node(rawtext, app, 'issues', str(issue), options)
    return [node], []
dataset/ETHPy150Open mathcamp/pypicloud/doc/extensions/github.py/github_issue/original