Simplify function name

This commit is contained in:
Hanno Braun 2022-09-06 10:52:19 +02:00
parent f14e95a0dd
commit e328fc5e58
2 changed files with 5 additions and 6 deletions

View File

@ -18,11 +18,10 @@ pub async fn create_release_announcement(
let year = now.year(); let year = now.year();
let week = now.iso_week().week(); let week = now.iso_week().week();
let pull_requests = let pull_requests = PullRequestsSinceLastRelease::fetch()
PullRequestsSinceLastRelease::fetch_since_last_release() .await?
.await? .pull_requests
.pull_requests .into_values();
.into_values();
let mut file = create_file(year, week).await?; let mut file = create_file(year, week).await?;
generate_announcement(week, version, pull_requests, &mut file).await?; generate_announcement(week, version, pull_requests, &mut file).await?;

View File

@ -12,7 +12,7 @@ pub struct PullRequestsSinceLastRelease {
} }
impl PullRequestsSinceLastRelease { impl PullRequestsSinceLastRelease {
pub async fn fetch_since_last_release() -> anyhow::Result<Self> { pub async fn fetch() -> anyhow::Result<Self> {
let mut pull_requests = BTreeMap::new(); let mut pull_requests = BTreeMap::new();
let mut page = 1u32; let mut page = 1u32;