From 46e2871e17677745ef6d11e7e3d50014d6da1e1d Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 4 Jun 2024 08:23:06 +0100 Subject: [PATCH] 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. --- crates/forge-github/src/commit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/forge-github/src/commit.rs b/crates/forge-github/src/commit.rs index c1dcbf7..433a380 100644 --- a/crates/forge-github/src/commit.rs +++ b/crates/forge-github/src/commit.rs @@ -15,7 +15,7 @@ pub async fn status(github: &github::Github, commit: &git::Commit) -> git::forge use secrecy::ExposeSecret; let token = api_token.expose_secret(); 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()