Skip to content

Commit 13c9d22

Browse files
runningcodeclaude
andcommitted
style: apply rust formatting
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3c01224 commit 13c9d22

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/utils/vcs.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,11 @@ fn extract_pr_head_sha_from_event(json_content: &str) -> Option<String> {
555555
for (i, line) in lines.iter().enumerate() {
556556
if line.contains("\"head\":") {
557557
// Look for "sha" in the next few lines after finding "head"
558-
for line in lines.iter().take(std::cmp::min(i + 10, lines.len())).skip(i) {
558+
for line in lines
559+
.iter()
560+
.take(std::cmp::min(i + 10, lines.len()))
561+
.skip(i)
562+
{
559563
if let Some(sha) = extract_sha_from_line(line) {
560564
return Some(sha);
561565
}

0 commit comments

Comments
 (0)