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 05621c1 commit f03cc37Copy full SHA for f03cc37
src/utils/vcs.rs
@@ -571,7 +571,11 @@ fn extract_pr_head_sha_from_event(json_content: &str) -> Option<String> {
571
for (i, line) in lines.iter().enumerate() {
572
if line.contains("\"head\":") {
573
// Look for "sha" in the next few lines after finding "head"
574
- for line in lines.iter().take(std::cmp::min(i + 10, lines.len())).skip(i) {
+ for line in lines
575
+ .iter()
576
+ .take(std::cmp::min(i + 10, lines.len()))
577
+ .skip(i)
578
+ {
579
if let Some(sha) = extract_sha_from_line(line) {
580
return Some(sha);
581
}
0 commit comments