Skip to content

Commit d33005b

Browse files
committed
debug: inspect payload structure
1 parent c5a0da2 commit d33005b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ const fetchCommits = async (
4747
console.log(
4848
`Page ${page}: ${pushEvents.length} PushEvents from ${username}`,
4949
);
50-
// Debug: print first 3 PushEvents dates
50+
// Debug: print first 3 PushEvents details
5151
for (const pe of pushEvents.slice(0, 3)) {
5252
console.log(
53-
` push: repo=${pe.repo.name} created_at=${pe.created_at} fromDate=${fromDate.toISOString()} passes=${new Date(pe.created_at) > fromDate}`,
53+
` push: repo=${pe.repo.name} created_at=${pe.created_at} passes_date=${new Date(pe.created_at) > fromDate} has_commits=${!!pe.payload.commits} is_array=${Array.isArray(pe.payload.commits)} payload_keys=${JSON.stringify(Object.keys(pe.payload))}`,
5454
);
5555
}
5656

0 commit comments

Comments
 (0)