Make function name more specific

This commit is contained in:
Hanno Braun 2023-07-04 11:47:06 +02:00
parent 881300ee39
commit 5efcd16b12
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ use super::util;
pub async fn create_release_announcement( pub async fn create_release_announcement(
octocrab: &Octocrab, octocrab: &Octocrab,
) -> anyhow::Result<()> { ) -> anyhow::Result<()> {
let date = util::date(); let date = util::now_ymd();
let pull_requests_since_last_release = let pull_requests_since_last_release =
PullRequestsSinceLastRelease::fetch(octocrab).await?; PullRequestsSinceLastRelease::fetch(octocrab).await?;

View File

@ -4,7 +4,7 @@ use anyhow::Context;
use chrono::{Datelike, Utc}; use chrono::{Datelike, Utc};
use tokio::fs::{self, File}; use tokio::fs::{self, File};
pub fn date() -> String { pub fn now_ymd() -> String {
let now = Utc::now(); let now = Utc::now();
format!("{}-{:02}-{:02}", now.year(), now.month(), now.day()) format!("{}-{:02}-{:02}", now.year(), now.month(), now.day())
} }