Skip to content

Commit

Permalink
add indicator for PR and issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Busch committed Mar 20, 2023
1 parent 26a6584 commit c010797
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,14 @@ fn render_issues<'a>(issues: &Vec<ApiResponseItem>, selected_issue_index: Option
} else {
Color::White
};

let indicator;
if i.is_pr {
indicator = "🔗";
} else {
indicator = "📄";
}
ListItem::new(Spans::from(vec![
Span::styled(format!("{: <4} | {: <20}", i.number, i.title), Style::default().fg(color)),
Span::styled(format!("{: <4} | {: <1} |{: <20}", i.number, indicator, i.title), Style::default().fg(color)),
]))
})
.collect();
Expand Down

0 comments on commit c010797

Please sign in to comment.