Skip to content

Commit 19ef6ad

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 0f5d96c commit 19ef6ad

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
@@ -536,9 +536,12 @@ fn find_matching_revs(
536536
}
537537

538538
pub fn find_head() -> Result<String> {
539+
debug!("Finding HEAD");
539540
// If GITHUB_EVENT_PATH is set, try to extract PR head SHA from the event payload
540541
if let Ok(event_path) = std::env::var("GITHUB_EVENT_PATH") {
542+
debug!("Finding HEAD from event path: {}", event_path);
541543
if let Ok(content) = std::fs::read_to_string(&event_path) {
544+
debug!("Finding HEAD from event path content: {}", content);
542545
if let Some(pr_head_sha) = extract_pr_head_sha_from_event(&content) {
543546
debug!(
544547
"Using GitHub Actions PR head SHA from event payload: {}",

0 commit comments

Comments
 (0)