From 7ec42b5edafcce3f160e6c564bfc5ac616d82ad7 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 9 Aug 2021 21:23:08 +0100 Subject: [PATCH] pick-ui: show nomination type in the UI Signed-off-by: Eric Engestrom Reviewed-by: Dylan Baker Cc: mesa-stable Part-of: --- bin/pick/ui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/pick/ui.py b/bin/pick/ui.py index babb71cdc0d..b9a1c44db67 100644 --- a/bin/pick/ui.py +++ b/bin/pick/ui.py @@ -66,7 +66,8 @@ class CommitWidget(urwid.Text): _selectable = True def __init__(self, ui: 'UI', commit: 'core.Commit'): - super().__init__(f'{commit.sha[:10]} {commit.description}') + reason = commit.nomination_type.name.ljust(6) + super().__init__(f'{reason} {commit.sha[:10]} {commit.description}') self.ui = ui self.commit = commit