Add a bit of issue metadata (#386)

* Add a bit of issue metadata

* Immediately install
This commit is contained in:
Ana Hobden 2023-03-29 10:24:34 -07:00 committed by GitHub
parent f95ed913f6
commit 5b9cb16c94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,9 @@ use nix_installer::cli::CommandExecute;
async fn main() -> eyre::Result<ExitCode> {
color_eyre::config::HookBuilder::default()
.issue_url(concat!(env!("CARGO_PKG_REPOSITORY"), "/issues/new"))
.add_issue_metadata("version", env!("CARGO_PKG_VERSION"))
.add_issue_metadata("os", std::env::consts::OS)
.add_issue_metadata("arch", std::env::consts::ARCH)
.theme(if !atty::is(atty::Stream::Stderr) {
color_eyre::config::Theme::new()
} else {