mirror of
https://github.com/hannobraun/Fornjot
synced 2025-03-01 02:25:59 +00:00
Make function name more specific
This commit is contained in:
parent
881300ee39
commit
5efcd16b12
@ -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?;
|
||||||
|
@ -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())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user