diff --git a/src/api.rs b/src/api.rs index 3942e08..48b8d51 100644 --- a/src/api.rs +++ b/src/api.rs @@ -79,8 +79,11 @@ pub async fn get_all_prs(repos: Vec) -> Vec { */ pub async fn get_new_prs(old: Vec, repos: Vec) -> ( Vec, Vec ) { + log::info!("Getting all PRs now"); + let data = get_all_prs(repos.clone()).await; let mut new_pulls: Vec = vec![]; + for pull in data.iter() { let mut alr_exists = false; diff --git a/src/main.rs b/src/main.rs index 3b783e3..941cb1b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,6 +70,7 @@ async fn main() { fs::write(".pr-cache", data).await.unwrap(); for pr in new_prs.iter() { + log::info!("Sending message about {} ({})", pr.title, pr.url); bot.send_message(chat.id, format!("New PR\n{} ({}#{}) by {}\n{}", pr.title, pr.head.repo.name, pr.number, pr.user.login, pr.url)).await.unwrap(); bot.send_message(chat.id, "апрувните пж @bleki42 @balistiktw @x3paerz").await.unwrap(); }