Skip to content

Commit 3d5e215

Browse files
committed
Make it so that the API URLs are configurable for testing
1 parent 7a497a0 commit 3d5e215

File tree

5 files changed

+106
-84
lines changed

5 files changed

+106
-84
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

@@ -93,7 +92,7 @@ pub fn to_human(d: DateTime<Utc>) -> String {
9392
#[async_trait]
9493
impl<'a> Action for Step<'a> {
9594
async fn call(&self) -> anyhow::Result<String> {
96-
let gh = GithubClient::new_with_default_token(Client::new());
95+
let gh = GithubClient::new_from_env();
9796

9897
// retrieve all Rust compiler meetings
9998
// from today for 7 days

0 commit comments

Comments
 (0)