Highlight nodes with S-waiting-on-review label

This commit is contained in:
Jack Grigg 2023-01-23 21:00:54 +00:00
parent be5b6e694d
commit 3cbca70645
2 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,9 @@
/* Material Blue 700 */
fill: #1976d2;
}
svg .node.needs-review polygon {
fill: #d29b19;
}
svg .node.closed polygon {
fill: #cf6b66;
}

View File

@ -103,6 +103,7 @@ class GitHubIssue:
self.title = data['title']
self.is_pr = 'merged' in data
self.is_committed = 'S-committed' in labels
self.waiting_on_review = 'S-waiting-on-review' in labels
self.url = data['url']
self.state = 'closed' if data['state'] in ['CLOSED', 'MERGED'] else 'open'
if 'milestone' in data and data['milestone']:
@ -309,6 +310,9 @@ def main():
if n.state == 'closed':
attrs['class'] = 'closed'
attrs['fillcolor'] = '#fad8c7'
elif n.waiting_on_review:
attrs['class'] = 'needs-review'
attrs['fillcolor'] = '#dfc150'
elif n.is_committed:
attrs['class'] = 'committed'
attrs['fillcolor'] = '#a6cfff'