hive-forge: defer repo resolution to the accessor, not construction

This commit is contained in:
damocles 2026-09-02 15:18:56 +02:00 committed by mara
commit fe7bf81d4a
14 changed files with 57 additions and 35 deletions

View file

@ -82,7 +82,7 @@ fn resolve_run_id(client: &Client, repo: &str, run_number: u64) -> Result<i64> {
/// download fails (network, or a non-2xx status such as `404` for an
/// unknown artifact name), or if the output path can't be written.
pub fn run(client: &Client, args: Args) -> Result<()> {
let repo = client.repo();
let repo = client.repo()?;
let run_id = resolve_run_id(client, repo, args.run)?;
let url = client.web_url(&format!(
"/{repo}/actions/runs/{run_id}/artifacts/{}",