Skip to content

Commit 75d4792

Browse files
runningcodeclaude
andcommitted
Add debug logging to find_head function
- Add debug logs to trace HEAD finding process - Log event path when GITHUB_EVENT_PATH is set - Log event file content for debugging - This helps troubleshoot why SHA detection message isn't appearing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f5fa54a commit 75d4792

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/vcs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,12 @@ fn find_matching_revs(
551551
}
552552

553553
pub fn find_head() -> Result<String> {
554+
debug!("Finding HEAD");
554555
// If GITHUB_EVENT_PATH is set, try to extract PR head SHA from the event payload
555556
if let Ok(event_path) = std::env::var("GITHUB_EVENT_PATH") {
557+
debug!("Finding HEAD from event path: {}", event_path);
556558
if let Ok(content) = std::fs::read_to_string(&event_path) {
559+
debug!("Finding HEAD from event path content: {}", content);
557560
if let Some(pr_head_sha) = extract_pr_head_sha_from_event(&content) {
558561
debug!(
559562
"Using GitHub Actions PR head SHA from event payload: {}",

0 commit comments

Comments
 (0)