Skip to content

Commit

Permalink
add missing get_file_sha
Browse files Browse the repository at this point in the history
  • Loading branch information
kokal33 committed Oct 25, 2023
1 parent f5e548f commit f4193a6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fplus-lib/src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,17 @@ impl LDNPullRequest {
}
}

pub fn get_file_sha(content: &ContentItems) -> Option<String> {
match content.items.get(0) {
Some(item) => {
let sha = item.sha.clone();
Some(sha)
}
None => None,
}
}


#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit f4193a6

Please sign in to comment.