Skip to content

Commit 0bcf594

Browse files
committed
generate green labels
1 parent 8f269e6 commit 0bcf594

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mdbook-goals/src/updates.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ pub async fn updates(
8080
let status_badge = match issue.state {
8181
ExistingIssueState::Open => {
8282
format!(
83-
"![Status: Complete](https://img.shields.io/badge/Status-{}%25-yellow)",
84-
completed * 100 / total
83+
"![Status: {percent}%](https://img.shields.io/badge/Status-{percent}%25-green)",
84+
percent = completed * 100 / total
8585
)
8686
}
8787
ExistingIssueState::Closed if completed == total => {
@@ -118,7 +118,7 @@ pub async fn updates(
118118
let updates: String = comments.iter().map(|c| format!("\n{}\n", c.body)).collect();
119119
let summary = llm.query(&prompt, &updates).await?;
120120
writeln!(output)?;
121-
writeln!(output, "UPDATE: {}", summary)?;
121+
writeln!(output, "{}", summary)?;
122122
} else {
123123
writeln!(output)?;
124124
writeln!(output, "No updates in this period.")?;

0 commit comments

Comments
 (0)