mirror of
https://github.com/hannobraun/Fornjot
synced 2025-03-01 10:35:54 +00:00
Refactor to improve clarity
This commit is contained in:
parent
784a53f8f1
commit
3f137ba822
@ -21,10 +21,11 @@ pub async fn run() -> anyhow::Result<()> {
|
|||||||
.context("Failed to create release announcement")?;
|
.context("Failed to create release announcement")?;
|
||||||
}
|
}
|
||||||
Args::Sponsors(args) => {
|
Args::Sponsors(args) => {
|
||||||
|
let min_dollars = 8;
|
||||||
let sponsors = Sponsors::query(&octocrab)
|
let sponsors = Sponsors::query(&octocrab)
|
||||||
.await
|
.await
|
||||||
.context("Failed to query sponsors")?
|
.context("Failed to query sponsors")?
|
||||||
.as_markdown(8, args.for_readme)
|
.as_markdown(min_dollars, args.for_readme)
|
||||||
.context("Failed to format sponsors")?;
|
.context("Failed to format sponsors")?;
|
||||||
|
|
||||||
println!("{sponsors}");
|
println!("{sponsors}");
|
||||||
|
Loading…
Reference in New Issue
Block a user