diff --git a/fplus-lib/src/core/mod.rs b/fplus-lib/src/core/mod.rs index c55b2d42..70508cc9 100644 --- a/fplus-lib/src/core/mod.rs +++ b/fplus-lib/src/core/mod.rs @@ -789,6 +789,17 @@ impl LDNPullRequest { } } +pub fn get_file_sha(content: &ContentItems) -> Option { + match content.items.get(0) { + Some(item) => { + let sha = item.sha.clone(); + Some(sha) + } + None => None, + } +} + + #[cfg(test)] mod tests { use super::*;