Пример #1
0
def write_issue(issue):
    title      = issue["title"]
    labels_str = ",".join([l["name"] for l in issue["labels"]])
    body       = issue["body"]

    fmt.h2(title + " -- " + labels_str)
    fmt.paragraph(body)
    fmt.rule()
Пример #2
0
def write_milestone(milestone):
    due = milestone['due']
    due = due.split('T')[0] if due else 'LATER'
    title = milestone['title'] + ' ' + '<span style="float: right; font-size: 75%">(Due: ' + due + ')</span>'
    description = milestone['description']

    fmt.h2(title)
    fmt.paragraph(description)
    write_issues(milestone['issues'])
    fmt.rule()
Пример #3
0
def write_milestone(milestone):
    due = milestone['due']
    due = due.split('T')[0] if due else 'LATER'
    title = milestone[
        'title'] + ' ' + '<span style="float: right; font-size: 75%">(Due: ' + due + ')</span>'
    description = milestone['description']

    fmt.h2(title)
    fmt.paragraph(description)
    write_issues(milestone['issues'])
    fmt.rule()