xtask: Set user-agent string of HTTP client

GitHub doesn't allow to use the REST API without a user-agent set
This commit is contained in:
Kévin Commaille 2024-05-09 13:20:41 +02:00 committed by Kévin Commaille
parent 14d7ec42e7
commit 30701596d0

View File

@ -58,7 +58,7 @@ impl ReleaseTask {
let config = crate::Config::load()?.github; let config = crate::Config::load()?.github;
let http_client = Client::new(); let http_client = Client::builder().user_agent("ruma xtask").build()?;
Ok(Self { metadata, package, version, http_client, config, dry_run }) Ok(Self { metadata, package, version, http_client, config, dry_run })
} }