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()
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()
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()