Skip to content

Commit a69afe8

Browse files
committed
bump git-bot-feedback to 0.8.1
pulls in fix for `LocalClient::get_changed_files()` where `ignore_index` does not show commit details via `git show`
1 parent 89dde4e commit a69afe8

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cpp-linter/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ thiserror = { workspace = true }
3232
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
3333

3434
[dependencies.git-bot-feedback]
35-
version = "0.8.0"
35+
version = "0.8.1"
3636
features = ["file-changes"]
3737
# path = "../../git-bot-feedback"
3838
# git = "https://github.com/2bndy5/git-bot-feedback"

cpp-linter/src/git.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ mod test {
8585
env::set_var("CI", "false");
8686
}
8787
let rest_api_client = RestClient::new().unwrap();
88+
assert_eq!(rest_api_client.client_kind(), "local");
8889
let file_filter = FileFilter::new(&["target"], extensions, None);
8990
set_current_dir(tmp).unwrap();
9091
let base_diff = if ignore_staged {

cpp-linter/src/rest_client.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ impl RestClient {
5454
Ok(Self { client })
5555
}
5656

57+
/// Returns the kind of client being used.
58+
///
59+
/// Supported options include "local", "github" and "gitea".
60+
pub fn client_kind(&self) -> String {
61+
self.client.client_kind()
62+
}
63+
5764
/// Is this a pull request event?
5865
pub fn is_pr(&self) -> bool {
5966
self.client.is_pr_event()

0 commit comments

Comments
 (0)