diff --git a/tools/automator/src/announcement.rs b/tools/automator/src/announcement.rs index 42eda3fac..def1bfa2d 100644 --- a/tools/automator/src/announcement.rs +++ b/tools/automator/src/announcement.rs @@ -18,11 +18,10 @@ pub async fn create_release_announcement( let year = now.year(); let week = now.iso_week().week(); - let pull_requests = - PullRequestsSinceLastRelease::fetch_since_last_release() - .await? - .pull_requests - .into_values(); + let pull_requests = PullRequestsSinceLastRelease::fetch() + .await? + .pull_requests + .into_values(); let mut file = create_file(year, week).await?; generate_announcement(week, version, pull_requests, &mut file).await?; diff --git a/tools/automator/src/pull_requests.rs b/tools/automator/src/pull_requests.rs index bca8f93ce..4421fc154 100644 --- a/tools/automator/src/pull_requests.rs +++ b/tools/automator/src/pull_requests.rs @@ -12,7 +12,7 @@ pub struct PullRequestsSinceLastRelease { } impl PullRequestsSinceLastRelease { - pub async fn fetch_since_last_release() -> anyhow::Result { + pub async fn fetch() -> anyhow::Result { let mut pull_requests = BTreeMap::new(); let mut page = 1u32;