Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cpp-linter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ thiserror = { workspace = true }
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

[dependencies.git-bot-feedback]
version = "0.6.1"
version = "0.8.1"
features = ["file-changes"]
# path = "../../git-bot-feedback"
# git = "https://github.com/2bndy5/git-bot-feedback"
Expand Down
1 change: 1 addition & 0 deletions cpp-linter/src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ mod test {
env::set_var("CI", "false");
}
let rest_api_client = RestClient::new().unwrap();
assert_eq!(rest_api_client.client_kind(), "local");
let file_filter = FileFilter::new(&["target"], extensions, None);
set_current_dir(tmp).unwrap();
let base_diff = if ignore_staged {
Expand Down
7 changes: 7 additions & 0 deletions cpp-linter/src/rest_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ impl RestClient {
Ok(Self { client })
}

/// Returns the kind of client being used.
///
/// Supported options include "local", "github" and "gitea".
pub fn client_kind(&self) -> String {
self.client.client_kind()
}

/// Is this a pull request event?
pub fn is_pr(&self) -> bool {
self.client.is_pr_event()
Expand Down
1 change: 1 addition & 0 deletions cspell.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ words:
- esac
- Falsey
- fontawesome
- gitea
- gitmodules
- gnueabi
- gnueabihf
Expand Down
Loading