fix: github: use correct url to check CI status

There was a stray $ in the string interpolation (blame working on
Typescript for other projects) and the wrong query path.
This commit is contained in:
Paul Campbell 2024-06-04 08:23:06 +01:00
parent 8609652928
commit 46e2871e17

View file

@ -15,7 +15,7 @@ pub async fn status(github: &github::Github, commit: &git::Commit) -> git::forge
use secrecy::ExposeSecret; use secrecy::ExposeSecret;
let token = api_token.expose_secret(); let token = api_token.expose_secret();
let url = network::NetUrl::new(format!( let url = network::NetUrl::new(format!(
"https://api.github.com/repos/${repo_path}/commits/{commit}/check-runs" "https://api.github.com/repos/{repo_path}/commits/{commit}/statuses"
)); ));
let headers = network::NetRequestHeaders::new() let headers = network::NetRequestHeaders::new()