We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd9624d commit 49636a1Copy full SHA for 49636a1
src/tools/tidy/src/lib.rs
@@ -126,6 +126,10 @@ pub fn git_diff<S: AsRef<OsStr>>(base_commit: &str, extra_arg: S) -> Option<Stri
126
127
/// Returns true if any modified file matches the predicate, if we are in CI, or if unable to list modified files.
128
pub fn files_modified(ci_info: &CiInfo, pred: impl Fn(&str) -> bool) -> bool {
129
+ if CiEnv::is_ci() {
130
+ // assume everything is modified on CI because we really don't want false positives there.
131
+ return true;
132
+ }
133
let Some(base_commit) = &ci_info.base_commit else {
134
eprintln!("No base commit, assuming all files are modified");
135
return true;
0 commit comments