Skip to content

Commit

Permalink
add method for determining base commit on GitHub actions (#9169)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos authored Sep 26, 2024
1 parent 6d4e655 commit fde7946
Show file tree
Hide file tree
Showing 4 changed files with 352 additions and 14 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions crates/turborepo-ci/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ impl Vendor {
Self::infer().map(|v| v.name)
}

pub fn is(name: &str) -> bool {
Self::infer().map_or(false, |v| v.name == name)
}

pub fn get_constant() -> Option<&'static str> {
Self::infer().map(|v| v.constant)
}
Expand Down
3 changes: 3 additions & 0 deletions crates/turborepo-scm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ globwalk = { path = "../turborepo-globwalk" }
hex = { workspace = true }
ignore = "0.4.20"
nom = "7.1.3"
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
sha1 = "0.10.5"
thiserror = { workspace = true }
tracing = { workspace = true }
turbopath = { workspace = true }
turborepo-ci = { workspace = true }
turborepo-telemetry = { path = "../turborepo-telemetry" }
wax = { workspace = true }
which = { workspace = true }
Expand Down
Loading

0 comments on commit fde7946

Please sign in to comment.