Turn the issue keys into hyperlinks when listing issues in compact mode
This commit is contained in:
parent
086dbb8af0
commit
7af1f40188
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
use crate::term::hyperlink;
|
use crate::term::hyperlink;
|
||||||
use crossterm::style::Stylize;
|
use crossterm::style::{Color, Stylize};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
|
@ -131,7 +131,10 @@ pub fn display_issues_compact(issues: &[JiraIssue]) -> Result<(), Box<dyn std::e
|
||||||
writeln!(
|
writeln!(
|
||||||
tw,
|
tw,
|
||||||
"{}:\t{}",
|
"{}:\t{}",
|
||||||
issue.key.clone().blue(),
|
hyperlink(
|
||||||
|
&issue.href,
|
||||||
|
&issue.key.clone().blue().underline(Color::Blue).to_string()
|
||||||
|
),
|
||||||
issue.fields.summary.clone().green()
|
issue.fields.summary.clone().green()
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue