Skip to content

Commit f69453e

Browse files
committed
Make it so that the API URLs are configurable for testing
1 parent 6b67e16 commit f69453e

File tree

5 files changed

+93
-70
lines changed

5 files changed

+93
-70
lines changed

src/actions.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use std::collections::HashMap;
33
use std::sync::Arc;
44

55
use async_trait::async_trait;
6-
use reqwest::Client;
76
use serde::{Deserialize, Serialize};
87
use tera::{Context, Tera};
98

@@ -87,7 +86,7 @@ pub fn to_human(d: DateTime<Utc>) -> String {
8786
#[async_trait]
8887
impl<'a> Action for Step<'a> {
8988
async fn call(&self) -> anyhow::Result<String> {
90-
let gh = GithubClient::new_with_default_token(Client::new());
89+
let gh = GithubClient::new_from_env();
9190

9291
// retrieve all Rust compiler meetings
9392
// from today for 7 days

0 commit comments

Comments
 (0)