Skip to content

Commit

Permalink
Merge pull request rust-lang#1764 from ehuss/configurable-url
Browse files Browse the repository at this point in the history
Make it so that the API URLs are configurable for testing
  • Loading branch information
jackh726 authored Jan 22, 2024
2 parents 7a497a0 + 3d5e215 commit 2f00d26
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 84 deletions.
3 changes: 1 addition & 2 deletions src/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::collections::HashMap;
use std::sync::Arc;

use async_trait::async_trait;
use reqwest::Client;
use serde::{Deserialize, Serialize};
use tera::{Context, Tera};

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

// retrieve all Rust compiler meetings
// from today for 7 days
Expand Down
Loading

0 comments on commit 2f00d26

Please sign in to comment.