Ejemplo n.º 1
0
def _issue(type_, number, **kwargs):
    text = str(number)
    if kwargs.get("backported", False):
        text += " backported"
    if kwargs.get("major", False):
        text += " major"
    if kwargs.get("line", None):
        text += " (%s+)" % kwargs["line"]
    app = kwargs.get("app", None)
    return issues_role(name=type_, rawtext="", text=text, lineno=None, inliner=_inliner(app=app))[0][0]
Ejemplo n.º 2
0
def _issue(type_, number, **kwargs):
    text = str(number)
    if kwargs.get('backported', False):
        text += " backported"
    if kwargs.get('major', False):
        text += " major"
    return issues_role(
        name=type_,
        rawtext='',
        text=text,
        lineno=None,
        inliner=_inliner(),
    )[0][0]
Ejemplo n.º 3
0
def issue(type_, number, **kwargs):
    text = str(number)
    if kwargs.get("backported", False):
        text += " backported"
    if kwargs.get("major", False):
        text += " major"
    if kwargs.get("spec", None):
        text += " (%s)" % kwargs["spec"]
    app = kwargs.get("app", None)
    return issues_role(
        name=type_,
        rawtext="",
        text=text,
        lineno=None,
        inliner=inliner(app=app),
    )[0][0]
Ejemplo n.º 4
0
def issue(type_, number, **kwargs):
    text = str(number)
    if kwargs.get('backported', False):
        text += " backported"
    if kwargs.get('major', False):
        text += " major"
    if kwargs.get('spec', None):
        text += " (%s)" % kwargs['spec']
    app = kwargs.get('app', None)
    return issues_role(
        name=type_,
        rawtext='',
        text=text,
        lineno=None,
        inliner=inliner(app=app),
    )[0][0]
Ejemplo n.º 5
0
def _issue(type_, number, **kwargs):
    text = str(number)
    if kwargs.get('backported', False):
        text += " backported"
    if kwargs.get('major', False):
        text += " major"
    if kwargs.get('line', None):
        text += " (%s+)" % kwargs['line']
    app = kwargs.get('app', None)
    return issues_role(
        name=type_,
        rawtext='',
        text=text,
        lineno=None,
        inliner=_inliner(app=app),
    )[0][0]