forked from mirrors/kingfisher
JSON output was missing committer name and email
This commit is contained in:
parent
81750ad6f0
commit
2280bee6e2
4 changed files with 13 additions and 2 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [1.19.0]
|
||||
- JSON output was missing committer name and email
|
||||
|
||||
## [1.18.1]
|
||||
- Restored --version cli argument
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ publish = false
|
|||
|
||||
[package]
|
||||
name = "kingfisher"
|
||||
version = "1.18.1"
|
||||
version = "1.19.0"
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
license.workspace = true
|
||||
|
|
@ -159,7 +159,7 @@ rand = "0.9.1"
|
|||
percent-encoding = "2.3.1"
|
||||
trust-dns-resolver = { version = "0.23.2", default-features = false, features = ["tokio-runtime"] }
|
||||
atty = "0.2.14"
|
||||
self_update = { version = "0.42.0", default-features = false, features = ["rustls"] }
|
||||
self_update = { version = "0.42.0", default-features = false, features = ["rustls", "archive-tar", "archive-zip", "compression-flate2"] }
|
||||
semver = "1.0.26"
|
||||
|
||||
[dependencies.tikv-jemallocator]
|
||||
|
|
|
|||
|
|
@ -80,6 +80,10 @@ impl DetailsReporter {
|
|||
"id": cmd.commit_id.to_string(),
|
||||
"url": format!("{}/commit/{}", repo_url, cmd.commit_id),
|
||||
"date": atime,
|
||||
"committer": {
|
||||
"name": String::from_utf8_lossy(&cmd.committer_name),
|
||||
"email": String::from_utf8_lossy(&cmd.committer_email),
|
||||
},
|
||||
// "author": {
|
||||
// "name": String::from_utf8_lossy(&cmd.author_name),
|
||||
// "email": String::from_utf8_lossy(&cmd.author_email),
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@ use wiremock::{
|
|||
Mock, MockServer, ResponseTemplate,
|
||||
};
|
||||
|
||||
use flate2::{write::GzEncoder, Compression};
|
||||
use tar::Builder;
|
||||
use tempfile::tempdir;
|
||||
use std::fs::{self, File};
|
||||
|
||||
#[tokio::test]
|
||||
async fn no_update_when_flag_set() {
|
||||
let args = GlobalArgs { no_update_check: true, ..Default::default() };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue